I have a question for below command
–hive-table H_order_items \
. when i execute this it get below error
Encountered IOException running import job: org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory hdfs://nn01.itversity.com:8020/user/rajeshvaasudevan/order_items already exists
I understand above error, it states that :file already exist". But in above sqoop import command I have mentioned DB name as " rajeshvaasudevan_sqoop_hive_import". My question is,
- why it is importing table to this location "/user/rajeshvaasudevan/order_items"
I have specified my own created DB name "–hive-database rajeshvaasudevan_sqoop_hive_import "
If table to imported to this newly created DB in which no table exist then why this error occurs?
where I have specified this location in my code and
2)"–hive-table H_order_items " , what does this line of code mean?
I understand that table which we are importing to Hive should be named as "H_order_items ".
if it is of this new then error should not occur right?
Please correct my understanding.