I don't know where I am going wrong, but my Sqoop export command from HDFS to MySQL fails everytime.
sqoop export --connect "jdbc:mysql://quickstart.cloudera:3306/streaming"
--username root --password cloudera --table pd_count --update-key id
--update-mode allowinsert --export-dir /user/cloudera/input/* -m 1 --batch
There is only 1 folder in the export directory, and it contains 3 files namely,
- part-m-00000
- part-m-00001
- part-m-00002
I have updated last file so as to learn about --update argument. But, the job fails, no matter how many permutations I try.
- I export data into MySQL without incremental update and data gets exported successfully.
- I import the data into HDFS with "incremental append", it's a sucess.
- But when I try to export data into MySQL with "update-key", and "update mode", it doesn't transfer and fails.
Above mentioned command was the last used command.
Following is the recent error log at this link , Please do help me.
Thanks in advance.