Sqoop java lang RuntimeException Could not load db driver class com mysql jdbc Driver

0 votes

I have a create a SQL table and I am trying to import it in Sqoop. But when I run sqoop import command, I am getting the following error:

Got exception running Sqoop: java.lang.RuntimeException: Could not load db driver class: com.mysql.jdbc.Driver
Jan 29, 2019 in Big Data Hadoop by Veronica
7,519 views

3 answers to this question.

0 votes

Seems like you don't have MySQL connector installed on your system. To make sqoop interact with MySQL, you have to install MySQL connector. You can install the drivers using the following command:

sudo apt-get install mysql-connector-java*
answered Jan 29, 2019 by Omkar
• 69,220 points
0 votes

Hi,

It seems you did not copy the mysql-connector jar file. You just download it and paste it to the sqoop/lib folder.

It will work.

Thanks

answered Jan 22, 2020 by MD
• 95,460 points
0 votes

I add mysql driver for sqoop and it running :

$ sudo cp mysql-connector-java-version/mysql-connector-java-version-bin.jar /var/lib/sqoop/

Download :  http://www.mysql.com/downloads/connector/j/5.1.html

Reference: https://docs.cloudera.com/documentation/enterprise/5-4-x/topics/cdh_ig_jdbc_driver_install.html 

answered Mar 1, 2020 by Manh Quang
• 180 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Sqoop could not load db driver class

Hello, Have you tried to put the both ...READ MORE

answered Dec 13, 2019 in Big Data Hadoop by Alexandru
• 510 points
3,190 views
0 votes
2 answers

Sqoop: Could not load mysql driver exception.

I add mysql driver for sqoop and it ...READ MORE

answered Mar 1, 2020 in Big Data Hadoop by Manh Quang
• 180 points
3,815 views
0 votes
1 answer

Hadoop MacOS: formatting namenode: Could not find or load main class

You need to point the HADOOP_PREFIX to ...READ MORE

answered Nov 13, 2018 in Big Data Hadoop by Omkar
• 69,220 points
1,315 views
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
11,027 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
2,534 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
108,828 views
–1 vote
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
4,611 views
0 votes
1 answer

Hadoop Mapreduce: Error: Could not find or load main class com.sun.tools.javac.Main

You have to add HADOOP_CLASSPATH environment parameter: expor ...READ MORE

answered Oct 30, 2018 in Big Data Hadoop by Omkar
• 69,220 points
3,650 views
0 votes
1 answer

Hadoop: Error: Could not find or load main class com.sun.tools.javac.Main

It looks like the path is not ...READ MORE

answered Nov 30, 2018 in Big Data Hadoop by Omkar
• 69,220 points
5,467 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP