Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

ERROR org.apache.sqoop.tool.BaseSqoopTool - Unrecognized argument

Highlighted

ERROR org.apache.sqoop.tool.BaseSqoopTool - Unrecognized argument

Hello all, I keep getting "ERROR org.apache.sqoop.tool.BaseSqoopTool - Unrecognized argument" for each arg below in my oozie job. Would anyone please help me with these errors? I could not find how to fix this error. Please help.

<action name="sqoop-node">

<sqoop xmlns="uri:oozie:sqoop-action:0.2">

<job-tracker>${jobTracker}</job-tracker>

<name-node>${nameNode}</name-node>

<prepare>

<delete path="hdfs://localhost/test-oozie/examples/output-data/sqoop"/>

<mkdir path="hdfs://localhost/test-oozie/examples/output-data"/> </prepare>

<configuration>

<property> <name>mapred.job.queue.name</name>

<value>${queueName}</value> </property> </configuration>

<arg>import</arg>

<arg>--connect</arg>

<arg>jdbc:oracle:thin:</arg>

<arg>--username</arg>

<arg>user</arg>

<arg>--password</arg>

<arg>pwd</arg>

<arg>--query</arg>

<arg>SELECT * FROM MYTASK WHERE STARTTIME BETWEEN TO_DATE('2017-06-08 14:00:00', 'YYYY-MM-DD HH24:MI:SS') AND TO_DATE('2017-06-08 14:10:59','YYYY-MM-DD HH24:MI:SS') AND $CONDITIONS)</arg>

<arg>--hive-import</arg>

<arg>--hive-drop-import-delims</arg>

<arg>--hive-overwrite</arg>

<arg>--hive-table</arg>

<arg>test_tmp</arg>

<arg>--target-dir</arg>

<arg>/apps/hive/warehouse/test</arg>

<arg>-m</arg>

<arg>1</arg>

Many Thanks

JT Ng

Don't have an account?
Coming from Hortonworks? Activate your account here