gpt4 book ai didi

hadoop - Amazon EMR服务的Sqoop导入错误 “Could not load db driver class”

转载 作者:行者123 更新时间:2023-12-02 19:15:41 29 4
gpt4 key购买 nike

I have created a EMR cluster with hadoop,Sqoop and Spark configuration. I am trying Sqoop Import but getting error "Could not load db driver class: com.mysql.jdbc.Driver" . My question is which location do we put the Mysql Driver ?


I have tried putting the Jar at path 
1. /etc/sqoop/conf/
2. /etc/sqoop/lib/ (after creating the lib folder)

sqoop import --connect jdbc:mysql://--.--.--.--:3306/xyz --table sample_submission --target-dir /home/sqoop7 --username x --password y -m 1;

最佳答案

放入 jar 的 jar 在lib中的SQOOP_HOME目录下

完整路径:/usr/lib/sqoop/lib/

关于hadoop - Amazon EMR服务的Sqoop导入错误 “Could not load db driver class”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55356667/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com