简体   繁体   English

Pentaho DI无法连接到AWS Redshift - Amazon Error 100021

[英]Pentaho DI can't connect to AWS Redshift - Amazon Error 100021

Referring to Pentaho's Doc , we should be using RedshiftJDBC4.jar instead of version 4.1. 参考Pentaho的Doc ,我们应该使用RedshiftJDBC4.jar而不是4.1版。 I have downloaded the driver and placed it in the lib/ directory. 我已下载驱动程序并将其放在lib /目录中。 Relaunched spoon.sh and I noticed it is no longer complaining about not able to find the com.amazon.redshift.jdbc4 class driver as I was using the 4.1 driver earlier. 重新启动spoon.sh,我注意到它不再抱怨无法找到com.amazon.redshift.jdbc4类驱动程序,因为我之前使用的是4.1驱动程序。 However, it still could not establish the connection. 但是,它仍然无法建立连接。

Error connecting to database [aws_redshift] : org.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect to the database 连接到数据库时出错[aws_redshift]:org.pentaho.di.core.exception.KettleDatabaseException:尝试连接数据库时出错

Error connecting to database: (using class com.amazon.redshift.jdbc4.Driver) Amazon Error setting default driver property values. 连接到数据库时出错:(使用类com.amazon.redshift.jdbc4.Driver)Amazon Error设置默认驱动程序属性值。

Can anyone help on this? 任何人都可以帮忙吗?

On the flip side, I can connect to my endpoint using SQLWorkbench/J, a SQL client tool. 另一方面,我可以使用SQL客户端工具SQLWorkbench / J连接到我的端点。

Somehow I managed to get it working. 不知怎的,我设法让它工作。 It seems that downloading AWS Redshift drivers version 4, 4.1, or 4.2 and placing them in the lib/ directory did not work for me for each version by choosing Redshift as connection type (in Database Connection setup). 通过选择Redshift作为连接类型(在数据库连接设置中),似乎下载AWS Redshift驱动程序版本4,4.1或4.2并将它们放在lib /目录中并不适用于每个版本。

Instead, I chose PostgreSQL using JDBC. 相反,我选择了使用JDBC的PostgreSQL。 In host name field, I included the endpoint WITHOUT port number 5439 at the end. 在主机名字段中,我在端部包含了端口号为5439的端点。 So, the endpoint should just end with ...amazonaws.com. 因此,端点应该以... amazonaws.com结束。 Fill in database name, port number of 5439, and username and password. 填写数据库名称,端口号5439,以及用户名和密码。 If this did not work, try downloading the latest PostgreSQL JDBC driver and placing it in lib/ directory and try again. 如果这不起作用,请尝试下载最新的PostgreSQL JDBC驱动程序并将其放在lib /目录中,然后重试。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM