I want to copy data from HDFS
to hive
table. I tried below code but it doesn't throw any error and data is also not copied in mentioned hive table. Below is my code:
sqoop import --connect jdbc:mysql://localhost/sampleOne \
--username root \
--password root \
--external-table-dir "/WithFields" \
--hive-import \
--hive-table "sampleone.customers"
where sampleone
is database in hive and customers
is newly created table in hive and --external-table-dir
is the HDFS path from where I want to load data in hive table. What else I am missing in this above code ??