gpt4 book ai didi

mysql - pentaho 设置到 AWS Aurora ( mysql ) 堡垒

转载 作者:行者123 更新时间:2023-11-29 16:13:41 26 4
gpt4 key购买 nike

我正在尝试设置 pentaho Spoon 以连接到 AWS 中的 VPN 上的 AWS auora。我可以通过堡垒服务器访问AWS auora(mysql)。它与 mysql 工作台和一个简单的 java 程序一起使用。

Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/estimates", "root", "xxxxxxx");
Statement stmt = conn.createStatement();
String strSelect = "select first from test_name";

ResultSet rset = stmt.executeQuery(strSelect);
int rowCount = 0;
while (rset.next()) {
String first = rset.getString("first");
System.out.println(first);
++rowCount;
}

使用 pentaho 时出现此错误:

Error connecting to database [t1] : org.pentaho.di.core.exception.KettleDatabaseException: 
Error occured while trying to connect to the database

Exception while loading class
org.gjt.mm.mysql.Driver


org.pentaho.di.core.exception.KettleDatabaseException:
Error occured while trying to connect to the database

Exception while loading class
org.gjt.mm.mysql.Driver


at org.pentaho.di.core.database.Database.normalConnect(Database.java:366)
at org.pentaho.di.core.database.Database.connect(Database.java:315)
at org.pentaho.di.core.database.Database.connect(Database.java:277)
at org.pentaho.di.core.database.Database.connect(Database.java:267)
at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:86)

我已经在..\data-integration\lib中加载了jdbc驱动程序。

我可能会错过什么?还是这个版本的pentaho 4.4.0-stable有问题?

最佳答案

我使用了较旧的 jdbc 驱动程序,它可以与此版本的 pentaho 配合使用

https://downloads.mysql.com/archives/c-j/

关于mysql - pentaho 设置到 AWS Aurora ( mysql ) 堡垒,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55027867/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com