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 :

  1. used .jclassloader()$setdebug(1l) full debug info of jar
    load - showed path checking
  2. downloaded latest jar amazon s3 (manually not r)
  3. moved latest jar path being checked in a)
  4. used real redshift instance being used team credentials

voila worked !


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

image - python get coordinates (pixels) of corresponding points from clicks -