<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: --target-dir in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134291#M96953</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt;&lt;P&gt;Please pass arguments in &amp;lt;arg&amp;gt; &amp;lt;/arg&amp;gt; tag.&lt;/P&gt;&lt;P&gt;Please refer - &lt;A href="http://alvincjin.blogspot.in/2014/06/create-sqoop-action-in-oozie-using-hue.html" target="_blank"&gt;http://alvincjin.blogspot.in/2014/06/create-sqoop-action-in-oozie-using-hue.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 06 May 2016 12:47:50 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2016-05-06T12:47:50Z</dc:date>
    <item>
      <title>ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: --target-dir</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134290#M96952</link>
      <description>&lt;P&gt;I am trying to run a sqoop command through oozie and it says :&lt;/P&gt;&lt;PRE&gt;Unrecognized argument: --target-dir&lt;/PRE&gt;&lt;P&gt;in oozie launcher logs. &lt;/P&gt;&lt;P&gt;This is what my command looks like:&lt;/P&gt;&lt;PRE&gt;import-all-tables --driver com.mysql.jdbc.Driver --connect jdbc:mysql://warehouse.swtched.com/erp --username hive --password hive -m 1 --target-dir sblDW&lt;/PRE&gt;&lt;P&gt;The target-dir attribute works just fine when I am running in through command line. How do I fix this?&lt;/P&gt;&lt;P&gt;error:&lt;/P&gt;&lt;PRE&gt;&amp;gt;&amp;gt;&amp;gt; Invoking Sqoop command line now &amp;gt;&amp;gt;&amp;gt;

2893 [main] WARN  org.apache.sqoop.tool.SqoopTool  - $SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
2016-05-06 11:11:34,741 WARN  [main] tool.SqoopTool (SqoopTool.java:loadPluginsFromConfDir(177)) - $SQOOP_CONF_DIR has not been set in the environment. Cannot check for additional configuration.
2941 [main] INFO  org.apache.sqoop.Sqoop  - Running Sqoop version: 1.4.6.2.4.0.0-169
2016-05-06 11:11:34,789 INFO  [main] sqoop.Sqoop (Sqoop.java:&amp;lt;init&amp;gt;(97)) - Running Sqoop version: 1.4.6.2.4.0.0-169
2965 [main] WARN  org.apache.sqoop.tool.BaseSqoopTool  - Setting your password on the command-line is insecure. Consider using -P instead.
2016-05-06 11:11:34,813 WARN  [main] tool.BaseSqoopTool (BaseSqoopTool.java:applyCredentialsOptions(1026)) - Setting your password on the command-line is insecure. Consider using -P instead.
2967 [main] ERROR org.apache.sqoop.tool.BaseSqoopTool  - Error parsing arguments for import-all-tables:
2016-05-06 11:11:34,815 ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(304)) - Error parsing arguments for import-all-tables:
2967 [main] ERROR org.apache.sqoop.tool.BaseSqoopTool  - Unrecognized argument: --target-dir
2016-05-06 11:11:34,815 ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: --target-dir
2967 [main] ERROR org.apache.sqoop.tool.BaseSqoopTool  - Unrecognized argument: sblDW
2016-05-06 11:11:34,815 ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: sblDW
Intercepting System.exit(1)&lt;/PRE&gt;</description>
      <pubDate>Fri, 06 May 2016 12:43:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134290#M96952</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-06T12:43:42Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: --target-dir</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134291#M96953</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt;&lt;P&gt;Please pass arguments in &amp;lt;arg&amp;gt; &amp;lt;/arg&amp;gt; tag.&lt;/P&gt;&lt;P&gt;Please refer - &lt;A href="http://alvincjin.blogspot.in/2014/06/create-sqoop-action-in-oozie-using-hue.html" target="_blank"&gt;http://alvincjin.blogspot.in/2014/06/create-sqoop-action-in-oozie-using-hue.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 12:47:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134291#M96953</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-05-06T12:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: --target-dir</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134292#M96954</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; : Are you sure that --target-dir works with import-all-tables?&lt;/P&gt;&lt;P&gt;As this link says, it does not.&lt;/P&gt;&lt;P&gt;Also, what should be the command to import all tables in hive without having to create the tables first in hive?&lt;/P&gt;&lt;P&gt;&lt;A href="https://groups.google.com/forum/#!msg/chennaihug/hWAKeO9Lnh0/y7RBYtti6AgJ"&gt;https://groups.google.com/forum/#!msg/chennaihug/hWAKeO9Lnh0/y7RBYtti6AgJ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 12:57:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134292#M96954</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-06T12:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: --target-dir</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134293#M96955</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/6243/simrankauradept.html" nodeid="6243"&gt;@simran kaur&lt;/A&gt; - As per your comment "The target-dir attribute works just fine when I am running in through command line. How do I fix this?" &lt;/P&gt;&lt;P&gt;If it is working via command line then it should work via oozie. &lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 13:13:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134293#M96955</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-05-06T13:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: --target-dir</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134294#M96956</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;Oh, I forgot to mention that it was only single table import that i had tried through command line. Also, could you please clarify how do I import all tables in a particular directory?&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 13:22:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134294#M96956</guid>
      <dc:creator>sim6</dc:creator>
      <dc:date>2016-05-06T13:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR [main] tool.BaseSqoopTool (BaseSqoopTool.java:hasUnrecognizedArgs(307)) - Unrecognized argument: --target-dir</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134295#M96957</link>
      <description>&lt;P&gt;Try replacing --target-dir with --warehouse-dir. Table t1 will be imported into directory warehouse-dir/t1. Regarding Hive, add --hive-import, the very first time use --create-hive-table, and after that use --hive-overwrite. If troubles continue, test your Oozie Sqoop action on a single table import into hdfs, just to make sure you have the right syntax. After that retry import-all-tables.&lt;/P&gt;</description>
      <pubDate>Fri, 06 May 2016 13:24:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ERROR-main-tool-BaseSqoopTool-BaseSqoopTool-java/m-p/134295#M96957</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-05-06T13:24:01Z</dc:date>
    </item>
  </channel>
</rss>

