Sqoop export command not working

Hi, I am facing the below issue when using the export command in hive :

hive (sqoop_import)> sqoop export
–connect “jdbc:mysql://quickstart.cloudera:3306/retail_db”
–username=retail_dba
–password=cloudera
–table order_items_export
–export-dir /user/hive/warehouse/sqoop_import.db/order_items
–input-fields-terminated-by ‘|’
–input-lines-terminated-by ‘\n’
–batch
–outdir java_files;
NoViableAltException(26@[])
at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1028)
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:201)
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:462)
at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1276)
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1393)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1205)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1195)
at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:220)
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:172)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:383)
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:775)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:693)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:628)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
FAILED: ParseException line 1:0 cannot recognize input near ‘sqoop’ ‘export’ ‘’

sqoop export is not hive command. You have to run it from linux CLI!!!

Thanks for the response.
Apologies for putting the wrong error.Below is the issues I am facing during running sqoop export.Please help :
[cloudera@quickstart ~]$ sqoop export \

–connect “jdbc:mysql://quickstart.cloudera:3306/retail_db”
–username=retail_dba
–password=cloudera
–table order_items_export
–export-dir /user/hive/warehouse/sqoop_import.db/order_items
–input-fields-terminated-by ‘|’
–input-lines-terminated-by ‘\n’
–batch
–outdir java_files
Warning: /usr/lib/sqoop/…/accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
17/05/20 23:43:10 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.10.0
17/05/20 23:43:10 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
17/05/20 23:43:15 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
17/05/20 23:43:15 INFO tool.CodeGenTool: Beginning code generation
17/05/20 23:43:19 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM order_items_export AS t LIMIT 1
17/05/20 23:43:20 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM order_items_export AS t LIMIT 1
17/05/20 23:43:20 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/lib/hadoop-mapreduce
Note: /tmp/sqoop-cloudera/compile/2b8cc73f2708d1eabc21b4f6d3fe7d1d/order_items_export.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
17/05/20 23:43:53 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-cloudera/compile/2b8cc73f2708d1eabc21b4f6d3fe7d1d/order_items_export.jar
17/05/20 23:43:54 INFO mapreduce.ExportJobBase: Beginning export of order_items_export
17/05/20 23:43:54 INFO Configuration.deprecation: mapred.job.tracker is deprecated. Instead, use mapreduce.jobtracker.address
17/05/20 23:43:59 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar
17/05/20 23:43:59 INFO Configuration.deprecation: mapred.map.max.attempts is deprecated. Instead, use mapreduce.map.maxattempts
17/05/20 23:44:18 INFO Configuration.deprecation: mapred.reduce.tasks.speculative.execution is deprecated. Instead, use mapreduce.reduce.speculative
17/05/20 23:44:18 INFO Configuration.deprecation: mapred.map.tasks.speculative.execution is deprecated. Instead, use mapreduce.map.speculative
17/05/20 23:44:18 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps
17/05/20 23:44:20 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032
17/05/20 23:44:40 INFO input.FileInputFormat: Total input paths to process : 4
17/05/20 23:44:40 INFO input.FileInputFormat: Total input paths to process : 4
17/05/20 23:44:41 WARN hdfs.DFSClient: Caught exception
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.lang.Thread.join(Thread.java:1281)
at java.lang.Thread.join(Thread.java:1355)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.closeResponder(DFSOutputStream.java:951)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.endBlock(DFSOutputStream.java:689)
at org.apache.hadoop.hdfs.DFSOutputStream$DataStreamer.run(DFSOutputStream.java:878)
17/05/20 23:44:41 INFO mapreduce.JobSubmitter: number of splits:3
17/05/20 23:44:41 INFO Configuration.deprecation: mapred.map.tasks.speculative.execution is deprecated. Instead, use mapreduce.map.speculative
17/05/20 23:44:44 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1495344833549_0001
17/05/20 23:44:50 INFO impl.YarnClientImpl: Submitted application application_1495344833549_0001
17/05/20 23:44:51 INFO mapreduce.Job: The url to track the job: http://quickstart.cloudera:8088/proxy/application_1495344833549_0001/
17/05/20 23:44:51 INFO mapreduce.Job: Running job: job_1495344833549_0001
17/05/20 23:45:53 INFO mapreduce.Job: Job job_1495344833549_0001 running in uber mode : false
17/05/20 23:45:53 INFO mapreduce.Job: map 0% reduce 0%
17/05/20 23:46:40 INFO mapreduce.Job: map 100% reduce 0%
17/05/20 23:46:41 INFO mapreduce.Job: Job job_1495344833549_0001 failed with state FAILED due to: Task failed task_1495344833549_0001_m_000001
Job failed as tasks failed. failedMaps:1 failedReduces:0

17/05/20 23:46:42 INFO mapreduce.Job: Counters: 8
Job Counters
Failed map tasks=3
Launched map tasks=3
Data-local map tasks=3
Total time spent by all maps in occupied slots (ms)=128339
Total time spent by all reduces in occupied slots (ms)=0
Total time spent by all map tasks (ms)=128339
Total vcore-seconds taken by all map tasks=128339
Total megabyte-seconds taken by all map tasks=131419136
17/05/20 23:46:42 WARN mapreduce.Counters: Group FileSystemCounters is deprecated. Use org.apache.hadoop.mapreduce.FileSystemCounter instead
17/05/20 23:46:42 INFO mapreduce.ExportJobBase: Transferred 0 bytes in 143.0636 seconds (0 bytes/sec)
17/05/20 23:46:42 WARN mapreduce.Counters: Group org.apache.hadoop.mapred.Task$Counter is deprecated. Use org.apache.hadoop.mapreduce.TaskCounter instead
17/05/20 23:46:42 INFO mapreduce.ExportJobBase: Exported 0 records.
17/05/20 23:46:42 ERROR tool.ExportTool: Error during export:
Export job failed!
at org.apache.sqoop.mapreduce.ExportJobBase.runExport(ExportJobBase.java:442)
at org.apache.sqoop.manager.SqlManager.exportTable(SqlManager.java:931)
at org.apache.sqoop.tool.ExportTool.exportTable(ExportTool.java:81)
at org.apache.sqoop.tool.ExportTool.run(ExportTool.java:100)
at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:218)
at org.apache.sqoop.Sqoop.runTool(Sqoop.java:227)
at org.apache.sqoop.Sqoop.main(Sqoop.java:236)