CDH3 Error while importing data from Sqoop


1 Answer(s)


hi,

Can you confirm if the mysqlj driver has been downloaded and copied to "lib" location of Sqoop. without that Sqoop will not be able to connect to the target database. Once the mysqlj connector is in place, execute the command as below

sqoop import --connect jdbc:mysql://localhost:3306/employees --username root --password password123 --table departments --target-dir employees_data2

Thanks