<?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 Can sqoop be used to directly import data into an ORC table? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104356#M25467</link>
    <description>&lt;P&gt;Right now, we use a 2 step process to import data from sqoop to ORC tables. &lt;/P&gt;&lt;P&gt;Step 1: Use sqoop to import raw text (in text format) into Hive tables. &lt;/P&gt;&lt;P&gt;Step 2: Use insert overwrite as select to write this into a hive table that is of type ORC. &lt;/P&gt;&lt;P&gt;Now, with this approach, we have to manually create ORC backed tables that Step 2 writes into. This also ends up with raw data in text format that we don't really need. Is there a way to directly write into hive tables as ORC format? Also, is there a way to not manually create ORC backed tables from text file backed tables? &lt;/P&gt;</description>
    <pubDate>Mon, 18 Apr 2016 22:04:37 GMT</pubDate>
    <dc:creator>ravi1</dc:creator>
    <dc:date>2016-04-18T22:04:37Z</dc:date>
    <item>
      <title>Can sqoop be used to directly import data into an ORC table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104356#M25467</link>
      <description>&lt;P&gt;Right now, we use a 2 step process to import data from sqoop to ORC tables. &lt;/P&gt;&lt;P&gt;Step 1: Use sqoop to import raw text (in text format) into Hive tables. &lt;/P&gt;&lt;P&gt;Step 2: Use insert overwrite as select to write this into a hive table that is of type ORC. &lt;/P&gt;&lt;P&gt;Now, with this approach, we have to manually create ORC backed tables that Step 2 writes into. This also ends up with raw data in text format that we don't really need. Is there a way to directly write into hive tables as ORC format? Also, is there a way to not manually create ORC backed tables from text file backed tables? &lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 22:04:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104356#M25467</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-04-18T22:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Can sqoop be used to directly import data into an ORC table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104357#M25468</link>
      <description>&lt;P&gt;Yes, check out this doc page, for example: &lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_dataintegration/content/incrementally-updating-hive-table-with-sqoop-and-ext-table.html"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_dataintegration/content/incrementally-updating-hive-table-with-sqoop-and-ext-table.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 22:07:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104357#M25468</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2016-04-18T22:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can sqoop be used to directly import data into an ORC table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104358#M25469</link>
      <description>&lt;P&gt;That topic is mostly around Change Data Capture. We use similar techniques in that usecase. My question was not related to that. Most of our cases are full data loads. We are looking to make this process easier since we have hundreds of tables. Sqoop has a good way to create table metadata which we are using. But this ends up as textfiles and we have to create another set of tables manually to write as ORC files. &lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2016 23:07:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104358#M25469</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-04-18T23:07:01Z</dc:date>
    </item>
    <item>
      <title>Re: Can sqoop be used to directly import data into an ORC table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104359#M25470</link>
      <description>&lt;P&gt;Ravi, you can use Sqoop to import tables and store them directly as ORC. They key option is --hcatalog-storage-stanza.&lt;/P&gt;&lt;P&gt;Check out the documentation in Sqoop&lt;/P&gt;&lt;P&gt;&lt;A href="http://sqoop.apache.org/docs/1.4.5/SqoopUserGuide.html#_importing_data_into_hive"&gt;http://sqoop.apache.org/docs/1.4.5/SqoopUserGuide.html#_importing_data_into_hive&lt;/A&gt;&lt;/P&gt;&lt;P&gt;And review 22.3 Automatic Table Creation&lt;/P&gt;&lt;H3&gt;&lt;STRONG&gt;Example:&lt;/STRONG&gt;&lt;/H3&gt;&lt;H3&gt;&lt;STRONG&gt;$ &lt;/STRONG&gt;&lt;STRONG&gt;sqoop import --connect jdbc:mysql://localhost/employees --username hive --password hive --table departments &lt;/STRONG&gt;&lt;STRONG&gt;--hcatalog-database default --hcatalog-table my_table_orc --create-hcatalog-table --hcatalog-storage-stanza "stored as orcfile"&lt;/STRONG&gt;&lt;/H3&gt;</description>
      <pubDate>Tue, 19 Apr 2016 02:07:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104359#M25470</guid>
      <dc:creator>bhagan</dc:creator>
      <dc:date>2016-04-19T02:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can sqoop be used to directly import data into an ORC table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104360#M25471</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/355/bhagan.html" nodeid="355"&gt;@bhagan&lt;/A&gt;. If you can move this to answer, I will accept it as an answer. I am planning to add few of my learnings on this into an article here soon. &lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2016 04:58:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104360#M25471</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-04-26T04:58:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can sqoop be used to directly import data into an ORC table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104361#M25472</link>
      <description>&lt;H1&gt;ERROR tool.ImportTool: Error during import: Import job failed!&lt;/H1&gt;&lt;P&gt;Trying to import Oracle tables using Sqoop. Getting error during the import job failed. I have attached the logs. Any thoughts!!&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/3713-mapreduce-import-failed.txt"&gt;mapreduce-import-failed.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please let me know your suggestions..&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2016 00:43:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104361#M25472</guid>
      <dc:creator>fnu_rasool</dc:creator>
      <dc:date>2016-04-27T00:43:48Z</dc:date>
    </item>
    <item>
      <title>Re: Can sqoop be used to directly import data into an ORC table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104362#M25473</link>
      <description>&lt;P&gt;Hello Bhagan,&lt;/P&gt;&lt;P&gt;In the above sqoop script, how does the compiler understand that the table has to be created in hive. As sqoop hcatalog does not support "Hive-import".&lt;/P&gt;&lt;P&gt;Please help me understand.&lt;/P&gt;</description>
      <pubDate>Sat, 27 May 2017 01:17:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104362#M25473</guid>
      <dc:creator>varunjoshi</dc:creator>
      <dc:date>2017-05-27T01:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can sqoop be used to directly import data into an ORC table?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104363#M25474</link>
      <description>&lt;H3&gt;&lt;STRONG&gt;"--create-hcatalog-table " This tells hive to create table.&lt;/STRONG&gt;&lt;/H3&gt;</description>
      <pubDate>Tue, 06 Jun 2017 23:26:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-sqoop-be-used-to-directly-import-data-into-an-ORC-table/m-p/104363#M25474</guid>
      <dc:creator>mevivekbhagat</dc:creator>
      <dc:date>2017-06-06T23:26:39Z</dc:date>
    </item>
  </channel>
</rss>

