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 28 in Big Data Hadoop by Veronica
301 views

1 answer 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 28 by Omkar
• 67,660 points

Related Questions In Big Data Hadoop

0 votes
0 answers

Sqoop could not load db driver class

I am trying to connect postgres with ...READ MORE

Oct 25 in Big Data Hadoop by Ritu
• 120 points

edited Oct 25 by Ritu 48 views
0 votes
1 answer

Sqoop: Could not load mysql driver exception.

You need database driver in 'SQOOP' classpath ...READ MORE

answered Oct 8, 2018 in Big Data Hadoop by Frankie
• 9,810 points
870 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
• 67,660 points
133 views
0 votes
1 answer

Hadoop: Error: Could not find or load main class org.apache.hadoop.util.VersionInfo

This seems like a path issue. Add the ...READ MORE

answered Nov 16, 2018 in Big Data Hadoop by Omkar
• 67,660 points
2,450 views
0 votes
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
• 10,710 points
3,302 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
• 10,710 points
391 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,253 views
0 votes
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,260 points
1,185 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: export ...READ MORE

answered Oct 30, 2018 in Big Data Hadoop by Omkar
• 67,660 points
467 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 29, 2018 in Big Data Hadoop by Omkar
• 67,660 points
680 views