记一次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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值