首页 > 解决方案 > pentaho 设置到 AWS Aurora ( mysql ) 堡垒

问题描述

我正在尝试设置 pentaho 勺子以连接到 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有问题?

标签: mysqlamazon-web-servicesjdbcpentaho-spoon

解决方案


我使用了一个较旧的 jdbc 驱动程序,它适用于这个版本的 pentaho

https://downloads.mysql.com/archives/cj/


推荐阅读