36792/sqoop-runtimeexception-could-driver-class-mysql-jdbc-driver
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
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*
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
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
Hello, Have you tried to put the both ...READ MORE
I add mysql driver for sqoop and it ...READ MORE
Hi, @premkumar, ideally, you should be using hdfs dfs ...READ MORE
You need to point the HADOOP_PREFIX to ...READ MORE
Firstly you need to understand the concept ...READ MORE
org.apache.hadoop.mapred is the Old API org.apache.hadoop.mapreduce is the ...READ MORE
Hi, You can create one directory in HDFS ...READ MORE
In your case there is no difference ...READ MORE
You have to add HADOOP_CLASSPATH environment parameter: expor ...READ MORE
It looks like the path is not ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.