???? ????????
------------------ ???????? ------------------ ??????: "user-zh" <samyang31...@gmail.com>; ????????: 2020??7??27??(??????) ????5:47 ??????: "user-zh"<user-zh@flink.apache.org>; ????: Re: sql-client ??jdbc?????? ?? yarn ?????? job ???????????????? sql-client ?????????????????????????????????????????? bin/flink, bin/yarn-session.sh, conf/flink-conf.yaml ?????????? bin/sql-client.sh, conf/sql-client-defaults.yaml ?????? ???????????????????????????????????????????????????? sql-client.sh ?????????????? op <520075...@qq.com> ??2020??7??27?????? ????5:29?????? > ?????? > &nbsp; ????????????????????????????yarn??????????????,sql-client??????????????1.11.0???? > ------------------&nbsp;????????&nbsp;------------------ > ??????: > "user-zh" > < > samyang31...@gmail.com&gt;; > ????????:&nbsp;2020??7??27??(??????) ????5:25 > ??????:&nbsp;"user-zh"<user-zh@flink.apache.org&gt;; > > ????:&nbsp;Re: sql-client ??jdbc?????? > > > > hi, > > ???????????? class path ???? mysql-connector-java-5.1.38.jar ???????????????????????????????? > > op <520075...@qq.com&gt; ??2020??7??27?????? ????2:45?????? > > &gt; ??????????????????jdbc???? > &gt; > &gt; > &gt; CREATE TABLE mvp_dim_anticheat_args_all ( > &gt; &amp;nbsp; &amp;nbsp; id BIGINT, > &gt; &amp;nbsp; &amp;nbsp; dt STRING, > &gt; &amp;nbsp; &amp;nbsp; cnt_7d INT, > &gt; &amp;nbsp; &amp;nbsp;cnt_30d INT, > &gt; &amp;nbsp; PRIMARY KEY (id) NOT ENFORCED > &gt; ) WITH ( > &gt; &amp;nbsp; &amp;nbsp;'connector' = 'jdbc', > &gt; &amp;nbsp; &amp;nbsp;'driver'='com.mysql.jdbc.Driver', > &gt; &amp;nbsp; &amp;nbsp;'url' = 'jdbc:mysql://localhost:3306/huyou_oi', > &gt; &amp;nbsp; &amp;nbsp;'table-name' = 'mvp_dim_ll', > &gt; &amp;nbsp; &amp;nbsp;'username' = 'huy_oi', > &gt; &amp;nbsp; &amp;nbsp;'password' = '420123' > &gt; ); > &gt; > &gt; > &gt; > &gt; ????????????&amp;nbsp; > &gt; [ERROR] Could not execute SQL statement. Reason: > &gt; java.lang.ClassNotFoundException: com.mysql.jdbc.Driver > &gt; > &gt; > &gt; > &gt; > &gt; > &gt; ????????????lib??????&amp;nbsp;flink-connector-jdbc_2.11-1.11.0.jar > &gt; ??&amp;nbsp;mysql-connector-java-5.1.38.jar ???????????????????????? > &gt; ????