[英]RJDBC Connection to Amazon Redshift in R
I tried to create JDBC connection with Amazon Redshift in R. Following the instruction under https://aws.amazon.com/blogs/big-data/connecting-r-with-amazon-redshift/ , I created the following: 我试图在R中与Amazon Redshift创建JDBC连接。按照https://aws.amazon.com/blogs/big-data/connecting-r-with-amazon-redshift/下的说明,我创建了以下内容:
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 that the last row gave me the error message of the 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 for base name com.amazon.dsi.core.impl.JDBCMessages, locale en .jcall(drv @ jdrv,“ Ljava / sql / Connection;”,“ connect”,as.character(url)[1]中的错误:java.sql.SQLNonTransientConnectionException:找不到错误消息:CONNECTION_REFUSED。找不到基本名称com.amazon.dsi.core.impl.JDBCMessages的语言包,语言环境
Any thoughts? 有什么想法吗?
I had the error but got it working. 我有错误,但可以正常工作。 Things I did included : 我所做的事情包括:
Voila it worked ! 瞧,它奏效了!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.