SQOOP Incremental import -Error parsing arguments for import ( solved --please ignore this post)

sqoop

#1

I am not sure why the below sqoop incremental import is not working(geting err - Error parsing arguments for import).Can you please help me in this regard ?

sqoop import
–connect jdbc:mysql://ms.itversity.com:3306/retail_db
–username retail_user
–password itversity
–target-dir /user/sushital1997/sqoop_import/retail_db/orders
–num-mappers 2
–table orders
–incremental append
–check-column order_date
–last-value ‘2014-02-28’

ERR MESSAGE -
Warning: /usr/hdp/2.5.0.0-1245/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
18/07/31 14:44:26 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6.2.5.0.0-1245
18/07/31 14:44:26 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
18/07/31 14:44:26 ERROR tool.BaseSqoopTool: Error parsing arguments for import:
18/07/31 14:44:26 ERROR tool.BaseSqoopTool: Unrecognized argument: append
18/07/31 14:44:26 ERROR tool.BaseSqoopTool: Unrecognized argument: --check-column
18/07/31 14:44:26 ERROR tool.BaseSqoopTool: Unrecognized argument: order_date
18/07/31 14:44:26 ERROR tool.BaseSqoopTool: Unrecognized argument: --last-value
18/07/31 14:44:26 ERROR tool.BaseSqoopTool: Unrecognized argument: 2014-02-28


#2

@sushital1997 Try below command.

sqoop import --connect jdbc:mysql://ms.itversity.com:3306/retail_db --username retail_user --password itversity --table orders --target-dir /user/sushital1997/sqoop_import/retail_db/orders --num-mappers 2 --check-column order_date --incremental append --last-value ‘2014-02-28’