java - RJDBC Connection to Amazon Redshift in R -
i tried create jdbc connection amazon redshift in r. following instruction under https://aws.amazon.com/blogs/big-data/connecting-r-with-amazon-redshift/, created following:
driver <- jdbc("com.amazon.redshift.jdbc42.driver", "redshiftjdbc42-1.2.1.1001.jar", identifier.quote="`") url <- "jdbc:redshift://xxxxxx.us-east-1.redshift.amazonaws.com :5439/user=xxx&password=xxx" conn <- dbconnect(driver, url)
everything works except last row gave me error message of following:
error in .jcall(drv@jdrv, "ljava/sql/connection;", "connect", as.character(url)[1], : java.sql.sqlnontransientconnectionexception: error message not found: connection_refused. can't find bundle base name com.amazon.dsi.core.impl.jdbcmessages, locale en
any thoughts?
i had error got working. things did included :
- used .jclassloader()$setdebug(1l) full debug info of jar
load - showed path checking - downloaded latest jar amazon s3 (manually not r)
- moved latest jar path being checked in a)
- used real redshift instance being used team credentials
voila worked !
Comments
Post a Comment