flink 读取mysql中的数据作为datastream的消息源,在idea上可以执行(maven package包),但是比提交到flink上报错。
提交命令:
./bin/flink run -c xuwei.tech.tsl.TestFace …/FlinkExample-1.0-SNAPSHOT-jar-with-dependencies.jar
报错:
Caused by: java.sql.SQLException: No suitable driver found for jdbc:mysql://192.168.101.237:3306
没有找到驱动,试了几种方法都不行,麻烦哪位大神知道怎么解决这个问题,感谢!!