Re: flink run jar throw java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2019-10-30 Thread Alex Wang
Hello Yang, Frank Thank you for your reply. Frank I have created a fat jar called flink-sql-submit.jar , the file size is 8.2M . You can create a fat jar (also called Uber jar) that includes all > dependencies in your application jar. > > I would avoid to put things in the Flink lib directory as

Re: flink run jar throw java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2019-10-30 Thread vino yang
Hi Franke, >From the information provided by Alex: >> mvn build jar include com.mysql.jdbc.Driver. it seems he has packaged a fat jar? Best, Vino Jörn Franke 于2019年10月30日周三 下午2:47写道: > > > You can create a fat jar (also called Uber jar) that includes all > dependencies in your application ja

Re: flink run jar throw java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2019-10-29 Thread Jörn Franke
You can create a fat jar (also called Uber jar) that includes all dependencies in your application jar. I would avoid to put things in the Flink lib directory as it can make maintenance difficult. Eg deployment is challenging, upgrade of flink, providing it on new nodes etc. > Am 30.10.2019

flink run jar throw java.lang.ClassNotFoundException: com.mysql.jdbc.Driver

2019-10-29 Thread Alex Wang
Hello everyone, I am a newbie. I am learning the flink-sql-submit project. From @Jark Wu : https://github.com/wuchong/flink-sql-submit My local environment is: 1. flink1.9.0 standalone 2. kafka_2.11-2.2.0 single I configured Flink Connectors and Formats jars to $FLINK_HOME/lib . Reference: https