<?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 importing data from MySQL to HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185431#M61708</link>
    <description>&lt;P&gt;You can't.  Sqoop can only be used to import from RDBMS to HDFS (and vice versa).  It does not work with other file system interfaces.&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 01:18:18 GMT</pubDate>
    <dc:creator>egarelnabi</dc:creator>
    <dc:date>2017-05-25T01:18:18Z</dc:date>
    <item>
      <title>Error importing data from MySQL to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185426#M61703</link>
      <description>&lt;P&gt;Hi guys I'm using sqoop to import the data from MySQL to HDFS with the option import-all-tables as below:&lt;/P&gt;&lt;P&gt;sqoop import-all-tables --connect jdbc:mysql://master/poc --username root --target-dir /user/hdfs/mysql --mysql-delimiters -m 1&lt;/P&gt;&lt;P&gt;My problem is that i got an error messages regarding the parameter --target-dir is wrong but i have checked the documentation and it's correct , when i run the same but pointing in a local path using --warehouse-dir that works. could someone tell me where I'm wrong? thanks error attached&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15742-sqoop-error.png" style="width: 984px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18888iAE0FC87B5EAC2D4E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15742-sqoop-error.png" alt="15742-sqoop-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:22:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185426#M61703</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2019-08-18T08:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Error importing data from MySQL to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185427#M61704</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;"import-all-tables" does not support "--target-dir".  As you've discovered, "--warehouse-dir" should be used instead. Data for each table will be put in a subfolder in the designated warehouse-dir path.&lt;/P&gt;&lt;P&gt;As always, if you find this post helpful, don't forget to "accept" answer.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2017 23:00:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185427#M61704</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-05-24T23:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error importing data from MySQL to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185428#M61705</link>
      <description>&lt;P style="margin-left: 40px;"&gt;thanks so much &lt;A rel="user" href="https://community.cloudera.com/users/445/egarelnabi.html" nodeid="445"&gt;@Eyad Garelnabi&lt;/A&gt; let me ask you something so if i need to move all tables to HDFS i need to move them first to local and then to HDFS or create one sqoop job by table?? OMG thanks&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 00:40:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185428#M61705</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2017-05-25T00:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error importing data from MySQL to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185429#M61706</link>
      <description>&lt;P&gt;I have found that both statements refers to HDFS , so what can i use to put data in local paths, out from HDFS&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="15747-sqoop.png" style="width: 586px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/18887iD363D100AD721B36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="15747-sqoop.png" alt="15747-sqoop.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:22:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185429#M61706</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2019-08-18T08:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error importing data from MySQL to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185430#M61707</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;Neither.  Just use the "--warehouse-dir" flag with "import-all-tables".  The directory you specify does not need to be a Hive warehouse directory.  It can be anything and anywhere you specify in HDFS.&lt;/P&gt;&lt;P&gt;The reason you're unable to use "--target-dir" is because that option is only available when all the imported data is to be placed in the one particular folder, whereas "import-all-tables" needs to create subfolders for each table.  The "--warehouse-dir" flag only indicates the parent folder where you want all the data to go, and "import-all-tables" would be able to create subdirectories for each table brought in.&lt;/P&gt;&lt;P&gt;I've assumed with the above that you want to import all tables.  However, if you only want to import a few tables then your best bet is to write a (shell/perl/python/etc...) script that runs multiple Sqoop commands, with each one importing a table.&lt;/P&gt;&lt;P&gt;Does that clarify things?&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 01:04:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185430#M61707</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-05-25T01:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error importing data from MySQL to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185431#M61708</link>
      <description>&lt;P&gt;You can't.  Sqoop can only be used to import from RDBMS to HDFS (and vice versa).  It does not work with other file system interfaces.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 01:18:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185431#M61708</guid>
      <dc:creator>egarelnabi</dc:creator>
      <dc:date>2017-05-25T01:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: Error importing data from MySQL to HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185432#M61709</link>
      <description>&lt;P&gt;No sr, thanks so much for your help &lt;A rel="user" href="https://community.cloudera.com/users/445/egarelnabi.html" nodeid="445"&gt;@Eyad Garelnabi&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 23:54:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-importing-data-from-MySQL-to-HDFS/m-p/185432#M61709</guid>
      <dc:creator>AndresUrrego</dc:creator>
      <dc:date>2017-05-25T23:54:23Z</dc:date>
    </item>
  </channel>
</rss>

