Sqoop import to hive table


#1

I am using below command to import data to hive but after the command execution there is no data in the hive table, please tell me what is wrong with the command
sqoop import
–connect “jdbc:mysql://nn01.itversity.com:3306/retail_db”
–username retail_dba
–password itversity
–table departments
–hive-home /apps/hive/warehouse
–hive-import
–hive-overwrite
–hive-table sqoop_importarp.db\departments


#2

modify your command

by chainging to --hive-table sqoop_importarp.departments