kafka connect中连接oracle出错:No suitable driver found for

在实现kafka connector 的功能连接Oracle时出现了下面这个错误:

"error_code":400,"message":"Connector configuration is invalid and contains the following 2 error(s):\nInvalid value java.sql.SQLException: No suitable driver found for jdbc:oracle。。。。。

出现这个问题是因为oracle的jdbc.jar应该要和oracle与jdk的版本相匹配,之前用的是ojdbc6.jar,后来改为ojdbc7.jar,错误就解决了。

猜你喜欢

转载自blog.csdn.net/QYHuiiQ/article/details/89104344