[英]Sqoop exec job - : java.lang.ClassNotFoundException: com.mysql..jdbc.Driver
sqoop executive the job:sqoop job --skip-dist-cache --exec sqoop_full_bi_fact_autoloan_contract The following error: enter image description here sqoop 执行作业:sqoop job --skip-dist-cache --exec sqoop_full_bi_fact_autoloan_contract 以下错误:在此处输入图像描述
and sqoop libs like : enter image description here和 sqoop 库,如:在此处输入图像描述
So, why does the sqoop job fail那么,为什么sqoop作业会失败
1- go to this website : https://ftp.jaist.ac.jp/pub/mysql/Downloads/Connector-J/ 1-去这个网站: https ://ftp.jaist.ac.jp/pub/mysql/Downloads/Connector-J/
2- download a version of the connector (5.1.49.tar.gz is working fine for me) 2-下载连接器的一个版本(5.1.49.tar.gz 对我来说工作正常)
3- extract the tar file using command : tar -zxf mysql-connector-java-5.1.49.tar.gz 3- 使用命令解压 tar 文件:tar -zxf mysql-connector-java-5.1.49.tar.gz
4- put the extracted jar file in SQOOP_HOME/lib (SQOOP_HOME is where you have installed sqoop) 4-将提取的jar文件放入SQOOP_HOME/lib(SQOOP_HOME是你安装sqoop的地方)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.