Linux服務器運行kettle轉換報錯:Driver class 'org.gjt.mm.mysql.Driver' could not be found

報錯關鍵字:

2019/07/10 17:01:12 - user_identity_card表輸入.0 - org.gjt.mm.mysql.Driver
2019/07/10 17:01:12 - 插入 / 更新.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : An error occurred during initialization, processing will be stopped: 
2019/07/10 17:01:12 - 插入 / 更新.0 - Error occurred while trying to connect to the database
2019/07/10 17:01:12 - 插入 / 更新.0 - 
2019/07/10 17:01:12 - 插入 / 更新.0 - Driver class 'org.gjt.mm.mysql.Driver' could not be found, make sure the 'MySQL' driver (jar file) is installed.
2019/07/10 17:01:12 - 插入 / 更新.0 - org.gjt.mm.mysql.Driver
2019/07/10 17:01:12 - 插入 / 更新.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Error initializing step [插入 / 更新]
2019/07/10 17:01:12 - userbasic_info - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Something went wrong while trying to safe stop the transformation: 
2019/07/10 17:01:12 - userbasic_info - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException: 
2019/07/10 17:01:12 - userbasic_info - Unable to get database metadata from this database connection
2019/07/10 17:01:12 - userbasic_info -  at java.lang.Thread.run (Thread.java:748)

這是kettle缺少數據庫連接jar包所致, 上傳即可~

這裏我用的jar包是:mysql-connector-java-5.1.47.jar,使用flashFXP上傳至服務器上kettle文件夾下的lib文件夾下

上傳完成後,查看lib包jar包 

 cd /usr/local/kettle/lib 

 

完美解決~ 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章