Sqoop Practice
Sqoop Practice
HDFS------------------------------------------------------------------------------
--I created a EMP table in mysql without primary key ,I am trying to import data
from mysql to hdfs ,so i am running below command on Edgenode.
sqoop import --connect jdbc:mysql://localhost/zeyobron_analytics --username root
--password cloudera --table EMP --target-dir /user/cloudera/import1;
--to avoid already exists(getting error becasue we run the cammand earlier ) error,
added --append
--in order to overcome the above error used --split-by column name (given integer
column name )