mysql - 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有问题?
解决方案
我使用了一个较旧的 jdbc 驱动程序,它适用于这个版本的 pentaho
推荐阅读
- javascript - chrome 控制台点击功能在特定网站上没有任何作用
- azure - 压缩多个 Azure Blob 存储文件并获取其 zip 链接
- android - 应用程序在启动时崩溃:libc.so(缺失)、libjsc.so(缺失)
- java - 使用标签表进行 QueryDSL 过滤
- java - 如何在java中显示对象?
- java - 没有 google-java-format 插件的代码样式格式
- javascript - 如何在 Vue 中设置自定义 CoreUI 列名?
- css - React Carbon 模态定位
- python - 为什么在这里使用嵌套循环时 python 打印奇怪的结果?
- google-cloud-platform - 在 GKE 上重新创建服务时如何避免重新创建入口?