<?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: Hive Imports in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/1221#M4</link>
    <description>&lt;P&gt;got the answer from&amp;nbsp;&lt;SPAN style="line-height: 14px;"&gt;Chris -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 14px;"&gt;Systems Engineer - Cloudera&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"--table" will refer to the Oracle schema and tablename&lt;/P&gt;&lt;P&gt;"--hive-table" will be the name of the database and table you are creating in Hive. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you aren't using a database other than the default database, then this value will be just the name of the table you are trying to create in Hive. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[cghosh@usmbg-lcldpoct1 ~]$ sqoop import \&lt;/P&gt;&lt;P&gt;&amp;gt; --connect jdbc:oracle:thin:@usmbg-lcpmdbt1.amer.exel-intra.net:1592:CPMDWDEV \&lt;/P&gt;&lt;P&gt;&amp;gt; --username obaw \&lt;/P&gt;&lt;P&gt;&amp;gt; --password oracle \&lt;/P&gt;&lt;P&gt;&amp;gt; --table EDW.XXOB_GL_ACCOUNT_HIER_WIDS -m 1 \&lt;/P&gt;&lt;P&gt;&amp;gt; --hive-import \&lt;/P&gt;&lt;P&gt;&amp;gt; --hive-table XXOB_GL_ACCOUNT_HIER_WIDS \&lt;/P&gt;&lt;P&gt;&amp;gt; --target-dir /user/cghosh/sqoopimport/DWDEV/TEST&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Sep 2013 20:19:10 GMT</pubDate>
    <dc:creator>cghosh</dc:creator>
    <dc:date>2013-09-03T20:19:10Z</dc:date>
    <item>
      <title>Hive Imports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/123#M1</link>
      <description>&lt;P&gt;Is there a way to create a table in hive and get it to read in the headers from the input file instead of listing out all of the headers and field types?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:46:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/123#M1</guid>
      <dc:creator>RWBalt8091</dc:creator>
      <dc:date>2022-09-16T08:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Imports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/153#M2</link>
      <description>&lt;P&gt;Not directly, no. Hive uses MapReduce InputFormat implementations under the hood that aren't aware of header records. Also, if it did respect headers, you run the risk of having two files in a directory with differing "schemas." Unless you do a fair bit of custom development, you'll need to create the table definition with CREATE TABLE and remove the header record from the file(s).&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2013 21:34:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/153#M2</guid>
      <dc:creator>esammer</dc:creator>
      <dc:date>2013-08-01T21:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Imports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/1219#M3</link>
      <description>&lt;P&gt;Eric,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;i am connecting as a user user1 and have select privillage on a table from a user id user2&lt;/SPAN&gt;&lt;BR /&gt;in hive not sure how it will find the table under the user2 id while i am connecting as user1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Oracle Database name “CPMDWDEV” , Table owner user id - “edw” and Connected id –“obaw”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[cghosh@usmbg-lcldpoct1 ~]$ sqoop import \&lt;BR /&gt;&amp;gt; --connect jdbc:oracle:thin:@usmbg-lcpmdbt1.amer.exel-intra.net:1592:CPMDWDEV \&lt;BR /&gt;&amp;gt; --username obaw \&lt;BR /&gt;&amp;gt; --password xxxxxx \&lt;BR /&gt;&amp;gt; --table EDW.XXOB_GL_ACCOUNT_HIER_WIDS -m 1 \&lt;BR /&gt;&amp;gt; --hive-import \&lt;BR /&gt;&amp;gt; --hive-table EDW.XXOB_GL_ACCOUNT_HIER_WIDS \&lt;BR /&gt;&amp;gt; --target-dir /user/cghosh/sqoopimport/DWDEV/TEST&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error&lt;/P&gt;&lt;P&gt;13/09/03 14:45:46 INFO hive.HiveImport: FAILED: Error in metadata&amp;amp;colon; Invalid table name: CPMDWDEV.EDW.XXOB_GL_ACCOUNT_HIER_WIDS&lt;BR /&gt;13/09/03 14:45:46 INFO hive.HiveImport: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask&lt;BR /&gt;13/09/03 14:45:46 ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Hive exited with status 1&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 20:10:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/1219#M3</guid>
      <dc:creator>cghosh</dc:creator>
      <dc:date>2013-09-03T20:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Imports</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/1221#M4</link>
      <description>&lt;P&gt;got the answer from&amp;nbsp;&lt;SPAN style="line-height: 14px;"&gt;Chris -&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="line-height: 14px;"&gt;Systems Engineer - Cloudera&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;"--table" will refer to the Oracle schema and tablename&lt;/P&gt;&lt;P&gt;"--hive-table" will be the name of the database and table you are creating in Hive. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you aren't using a database other than the default database, then this value will be just the name of the table you are trying to create in Hive. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[cghosh@usmbg-lcldpoct1 ~]$ sqoop import \&lt;/P&gt;&lt;P&gt;&amp;gt; --connect jdbc:oracle:thin:@usmbg-lcpmdbt1.amer.exel-intra.net:1592:CPMDWDEV \&lt;/P&gt;&lt;P&gt;&amp;gt; --username obaw \&lt;/P&gt;&lt;P&gt;&amp;gt; --password oracle \&lt;/P&gt;&lt;P&gt;&amp;gt; --table EDW.XXOB_GL_ACCOUNT_HIER_WIDS -m 1 \&lt;/P&gt;&lt;P&gt;&amp;gt; --hive-import \&lt;/P&gt;&lt;P&gt;&amp;gt; --hive-table XXOB_GL_ACCOUNT_HIER_WIDS \&lt;/P&gt;&lt;P&gt;&amp;gt; --target-dir /user/cghosh/sqoopimport/DWDEV/TEST&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 14px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2013 20:19:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Hive-Imports/m-p/1221#M4</guid>
      <dc:creator>cghosh</dc:creator>
      <dc:date>2013-09-03T20:19:10Z</dc:date>
    </item>
  </channel>
</rss>

