Incremental import not working

I am unable to implement incremental upload as shown in your youtube playlist video
this what i am getting

sqoop import \

– connect “jdbc:mysql://”
– username retail_dba
– password itversity
– table departments \
Warning: /usr/hdp/ does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
17/02/27 13:18:44 INFO sqoop.Sqoop: Running Sqoop version:
–table or --query is required for import. (Or use sqoop import-all-tables.)
Try --help for usage instructions.
[ajinkyasaraf13@gw01 ~]$ – target-dir /user/ajinkyasaraf13/sqoop_import/departments
– append
– where “department_id > 7”
– outdir java_files
bash: --: command not found…

Try to execute the command in full proper way.


btw this code worked

sqoop import
–connect “jdbc:mysql://”
–table departments_export1
–target-dir /user/ajinkyasaraf13/sqoop_import/departments
–where “department_id > 7”
–outdir java_files