<?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 metastore question in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125083#M39102</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use the "default" database in Hive without any issue.  It is a fairly common approach.&lt;/P&gt;&lt;P&gt;The error you are seeing could be related to sqoop having access problems to the PATRON database in Oracle.&lt;/P&gt;&lt;P&gt;You can pass the --hive-table parameter to specify the name of the hive table into which you want to store the data.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://sqoop.apache.org/docs/1.4.2/SqoopUserGuide.html#_literal_sqoop_create_hive_table_literal"&gt;https://sqoop.apache.org/docs/1.4.2/SqoopUserGuide.html#_literal_sqoop_create_hive_table_literal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try adding "--hive-table default.tab1" to the command.&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2016 02:01:15 GMT</pubDate>
    <dc:creator>myoung</dc:creator>
    <dc:date>2016-08-30T02:01:15Z</dc:date>
    <item>
      <title>HIVE metastore question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125082#M39101</link>
      <description>&lt;P&gt;I am unable to import a table into HIVE , I am getting error "database doesn't exist" , googling Iam seeing people reporting that  for Cloudera hive metastore needs to be set in "remote" mode.  is there something I have to do in Horton works also? &lt;/P&gt;&lt;P&gt;can I use the "default" database that comes with the postgres Hive database or do I have to  create a new one if I want to use HIVE?&lt;/P&gt;&lt;P&gt; below is the command I am giving and the error generated , I am not sure why is the command looking for a database called "PATRON"  ? &lt;/P&gt;&lt;PRE&gt;sqoop import --connect "jdbc:oracle:thin:@(description=(address=(protocol=tcp)(host=patronQA)(port=1526))(connect_data=(service_name=patron)))" --username PATRON --password xxxx --table PATRON.TAB1 --split-by TAB1.ACCT_NUM --hive-import --create-hive-table

FAILED: SemanticException [Error 10072]: Database does not exist: PATRON

&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Aug 2016 01:56:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125082#M39101</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-08-30T01:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE metastore question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125083#M39102</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use the "default" database in Hive without any issue.  It is a fairly common approach.&lt;/P&gt;&lt;P&gt;The error you are seeing could be related to sqoop having access problems to the PATRON database in Oracle.&lt;/P&gt;&lt;P&gt;You can pass the --hive-table parameter to specify the name of the hive table into which you want to store the data.&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://sqoop.apache.org/docs/1.4.2/SqoopUserGuide.html#_literal_sqoop_create_hive_table_literal"&gt;https://sqoop.apache.org/docs/1.4.2/SqoopUserGuide.html#_literal_sqoop_create_hive_table_literal&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try adding "--hive-table default.tab1" to the command.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:01:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125083#M39102</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-08-30T02:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE metastore question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125084#M39103</link>
      <description>&lt;P&gt;use -- --schema option to specify the additional information about the source schema&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:08:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125084#M39103</guid>
      <dc:creator>njayakumar</dc:creator>
      <dc:date>2016-08-30T02:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE metastore question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125085#M39104</link>
      <description>&lt;P&gt;oh yes that was it , it fixed the issue . but for my understanding , do we have to specify a local table always ? &lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:14:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125085#M39104</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-08-30T02:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE metastore question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125086#M39105</link>
      <description>&lt;P&gt;hi njay apparently the --schema option is not needed if I use the --hive-table option.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:15:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125086#M39105</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-08-30T02:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE metastore question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125087#M39106</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt; &lt;/P&gt;&lt;P&gt;When you say "local table", do you mean like "default.tab1"?&lt;/P&gt;&lt;P&gt;It's always a good idea to be as specific as possible about where you want to store the data in Hive.  If you create a new database called "test" and you ran your original command, how would Sqoop and Hive know where to write the table?  By specifying "default.tab1" or "test.tab1", you remove the unknowns.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:25:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125087#M39106</guid>
      <dc:creator>myoung</dc:creator>
      <dc:date>2016-08-30T02:25:45Z</dc:date>
    </item>
    <item>
      <title>Re: HIVE metastore question</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125088#M39107</link>
      <description>&lt;P&gt;ok Sami. it is better to provide schema so that we dont need to prefix the hive tables with 'default.'&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2016 02:35:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HIVE-metastore-question/m-p/125088#M39107</guid>
      <dc:creator>njayakumar</dc:creator>
      <dc:date>2016-08-30T02:35:29Z</dc:date>
    </item>
  </channel>
</rss>

