Import oracle table to a hive table using sqoop

We are trying to import oracle table to a hive table using sqoop

sqoop import --connect jdbc:oracle:thin:@:1521: --username --password --table --hive-import --hive-table -m 1
But we are getting error

2018-12-24 12:45:32,825 ERROR tool.ImportTool: Import failed: org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory hdfs://localhost:9000/user/ already exists

What is wrong here? Please suggest.

Tagged:
Sign In or Register to comment.