记一次kettle报错No suitable driver found for jdbc

1.报错信息

2021/07/23 14:28:52 - 查询接口参数.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : A database error occurred, stopping everything:
2021/07/23 14:28:52 - 查询接口参数.0 - Error occurred while trying to connect to the database
2021/07/23 14:28:52 - 查询接口参数.0 - No suitable driver found for jdbc:mysql://10.252.18.4:3306/zfs_sys?useSSL=true&useUnicode=true&characterEncoding=UTF-8
2021/07/23 14:28:52 - 查询接口参数.0 - 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:
2021/07/23 14:28:52 - 查询接口参数.0 - Error occurred while trying to connect to the database
2021/07/23 14:28:52 - 查询接口参数.0 - No suitable driver found for jdbc:mysql://10.252.18.4:3306/zfs_sys?useSSL=true&useUnicode=true&characterEncoding=UTF-8
2021/07/23 14:28:52 - 查询接口参数.0 -
2021/07/23 14:28:52 - 查询接口参数.0 -  at org.pentaho.di.core.database.Database.normalConnect(Database.java:472)
2021/07/23 14:28:52 - 查询接口参数.0 -  at org.pentaho.di.core.database.Database.connect(Database.java:370)
2021/07/23 14:28:52 - 查询接口参数.0 -  at org.pentaho.di.core.database.Database.connect(Database.java:341)
2021/07/23 14:28:52 - 查询接口参数.0 -  at org.pentaho.di.trans.steps.databasejoin.DatabaseJoin.init(DatabaseJoin.java:220)
2021/07/23 14:28:52 - 查询接口参数.0 -  at org.pentaho.di.trans.step.StepInitThread.run(StepInitThread.java:69)
2021/07/23 14:28:52 - 查询接口参数.0 -  at java.lang.Thread.run(Thread.java:748)
2021/07/23 14:28:52 - 查询接口参数.0 - Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://**.***.**.*:3306/zfs_sys?useSSL=true&useUnicode=true&characterEncoding=UTF-8
2021/07/23 14:28:52 - 查询接口参数.0 -  at java.sql.DriverManager.getConnection(DriverManager.java:689)
2021/07/23 14:28:52 - 查询接口参数.0 -  at java.sql.DriverManager.getConnection(DriverManager.java:247)
2021/07/23 14:28:52 - 查询接口参数.0 -  at org.osjava.sj.loader.SJDataSource.getConnection(SJDataSource.java:101)
2021/07/23 14:28:52 - 查询接口参数.0 -  at org.osjava.sj.loader.SJDataSource.getConnection(SJDataSource.java:81)
2021/07/23 14:28:52 - 查询接口参数.0 -  at org.pentaho.di.core.database.Database.normalConnect(Database.java:431)
2021/07/23 14:28:52 - 查询接口参数.0 -  ... 5 more
2021/07/23 14:28:52 - 查询接口参数.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 [查询接口参数]
2021/07/23 14:28:52 - 华云盾系统获取token - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Step [查询接口参数.0] failed to initialize!
2021/07/23 14:28:52 - 华云盾系统获取token - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Errors detected!
2021/07/23 14:28:52 - 华云盾系统获取token - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Errors detected!
2021-07-23 14:28:52.312  INFO 17749 --- [io-28094-exec-4] org.mongodb.driver.connection            : Opened connection [connectionId{localValue:4}] to 10.252.18.49:8635

2.解决方法

放一个符合mysql版本的加载器mysql-connector-java

猜你喜欢

转载自blog.csdn.net/weixin_40455437/article/details/119034099