<?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: Sqoop Import-all-tables not working with target-dir option. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219065#M180966</link>
    <description>&lt;P&gt;Hi Ramya&lt;/P&gt;&lt;P&gt;To import all tables in particular directory, Use --warehouse-dir &amp;lt;directory&amp;gt; instead of --target-dir &amp;lt;directory&amp;gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;sqoop import --connect jdbc:mysql://localhost/test --table test1 --username xxxxx -P --warehouse-dir /home/user/Desktop/sqoopdump -m 1&lt;/P&gt;</description>
    <pubDate>Tue, 22 Aug 2017 11:20:56 GMT</pubDate>
    <dc:creator>rockstar_nandis</dc:creator>
    <dc:date>2017-08-22T11:20:56Z</dc:date>
    <item>
      <title>Sqoop Import-all-tables not working with target-dir option.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219060#M180961</link>
      <description>&lt;P&gt;While trying to use import-all-tables if i specify the target-dir , i'm getting the below error.&lt;/P&gt;&lt;PRE&gt;$ sqoop import-all-tables --connect jdbc:mysql://localhost/db --username root --target-dir 'alltables/data' -m 1 

17/08/14 14:08:07 ERROR tool.BaseSqoopTool: Error parsing arguments for import-all-tables:

17/08/14 14:08:07 ERROR tool.BaseSqoopTool: Unrecognized argument: --target-dir 

17/08/14 14:08:07 ERROR tool.BaseSqoopTool: Unrecognized argument: alltables/data 

17/08/14 14:08:07 ERROR tool.BaseSqoopTool: Unrecognized argument: -m 

17/08/14 14:08:07 ERROR tool.BaseSqoopTool: Unrecognized argument: 1&lt;/PRE&gt;&lt;P&gt;Appreciate any help.!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 06:23:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219060#M180961</guid>
      <dc:creator>rmy1712</dc:creator>
      <dc:date>2017-08-16T06:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Import-all-tables not working with target-dir option.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219061#M180962</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/30206/rmy1712.html" nodeid="30206"&gt;@Ramya&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;A href="https://sqoop.apache.org/docs/1.4.5/SqoopUserGuide.html#_literal_sqoop_import_all_tables_literal"&gt;Please follow this official documentation of Sqoop.&lt;/A&gt;&lt;/P&gt;&lt;P&gt;--target-dir is not a valid option when using import-all-tables. Thus you cannot use this.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Aug 2017 06:26:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219061#M180962</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-08-16T06:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Import-all-tables not working with target-dir option.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219062#M180963</link>
      <description>&lt;P&gt;Checking the official documentation link &lt;A href="https://sqoop.apache.org/docs/1.4.6/SqoopUserGuide.html#_example_invocations_2"&gt; here&lt;/A&gt;.  they suggest that each table will create automatically a separate folder for the outcome to store the data in the default HDFS path for the user who perform the operation.&lt;/P&gt;&lt;PRE&gt;$ sqoop import-all-tables --connect jdbc:mysql://db.foo.com/corp

$ hadoop fs -ls
Found 4 items
drwxr-xr-x   - someuser somegrp       0 2010-04-27 17:15 /user/someuser/EMPLOYEES
drwxr-xr-x   - someuser somegrp       0 2010-04-27 17:15 /user/someuser/PAYCHECKS
drwxr-xr-x   - someuser somegrp       0 2010-04-27 17:15 /user/someuser/DEPARTMENTS
drwxr-xr-x   - someuser somegrp       0 2010-04-27 17:15 /user/someuser/OFFICE_SUPPLIES&lt;/PRE&gt;</description>
      <pubDate>Wed, 16 Aug 2017 23:00:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219062#M180963</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2017-08-16T23:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Import-all-tables not working with target-dir option.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219063#M180964</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17410/ingenieroandresangel.html" nodeid="17410"&gt;@Andres Urrego&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thank you..!!&lt;/P&gt;&lt;P&gt;Yes. But when we are using only 'Import' instead of 'Import-all-tables', we can specify where to store the table, instead of the default HDFS path using --target-dir . &lt;/P&gt;&lt;P&gt;As per below code, the data is imported to the target directory specified. &lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:mysql://localhost/my_db --table EMP --username root --target-dir 'sqoopdata/emp' -m 1&lt;/PRE&gt;</description>
      <pubDate>Thu, 17 Aug 2017 00:12:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219063#M180964</guid>
      <dc:creator>rmy1712</dc:creator>
      <dc:date>2017-08-17T00:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Import-all-tables not working with target-dir option.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219064#M180965</link>
      <description>&lt;P&gt;yes exactly you right but this is only in import as --export-dir for export operation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; this how that works&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2017 00:39:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219064#M180965</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2017-08-17T00:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Import-all-tables not working with target-dir option.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219065#M180966</link>
      <description>&lt;P&gt;Hi Ramya&lt;/P&gt;&lt;P&gt;To import all tables in particular directory, Use --warehouse-dir &amp;lt;directory&amp;gt; instead of --target-dir &amp;lt;directory&amp;gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;sqoop import --connect jdbc:mysql://localhost/test --table test1 --username xxxxx -P --warehouse-dir /home/user/Desktop/sqoopdump -m 1&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2017 11:20:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219065#M180966</guid>
      <dc:creator>rockstar_nandis</dc:creator>
      <dc:date>2017-08-22T11:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop Import-all-tables not working with target-dir option.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219066#M180967</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/38180/rockstarnandish.html" nodeid="38180"&gt;@Nandish B Naidu&lt;/A&gt;..!!&lt;/P&gt;&lt;P&gt;The solution worked.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Aug 2017 02:49:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Sqoop-Import-all-tables-not-working-with-target-dir-option/m-p/219066#M180967</guid>
      <dc:creator>rmy1712</dc:creator>
      <dc:date>2017-08-29T02:49:30Z</dc:date>
    </item>
  </channel>
</rss>

