在使用 kettle 时,报错如下
org.pentaho.di.core.exception.KettleDatabaseException: Error occurred while trying to connect to the databaseDriver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed.org.gjt.mm.mysql.Driverat org.pentaho.di.core.database.Database.normalConnect(Database.java:497)at org.pentaho.di.core.database.Database.connect(Database.java:389)at org.pentaho.di.core.database.Database.connect(Database.java:360)at org.pentaho.di.core.database.Database.connect(Database.java:350)at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestReport(DatabaseFactory.java:85)at org.pentaho.di.core.database.DatabaseFactory.getConnectionTestResults(DatabaseFactory.java:115)at org.pentaho.di.core.database.DatabaseMeta.testConnectionSuccess(DatabaseMeta.java:2859)at org.pentaho.ui.database.event.DataHandler.testDatabaseConnection(DataHandler.java:659)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method).............
这是因为 kettle 缺少MySQL数据库连接的驱动 jar 包所致。
解决方法:
下载 mysql-connector-java,官网下载地址:https://mvnrepository.com/artifact/mysql/mysql-connector-java
然后把这个包放在软件目录的 \data-integration\lib 下
重启kettle即可
来源地址:https://blog.csdn.net/xch_yang/article/details/123615521