<?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: How can I set primary key and reference foreign keys while creating a table / external table in hive? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122210#M17506</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt;&lt;P&gt;It's not there yet but eventually we will get there.&lt;/P&gt;&lt;P&gt;See this &lt;A target="_blank" href="https://issues.apache.org/jira/browse/HIVE-6905"&gt;https://issues.apache.org/jira/browse/HIVE-6905&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 03 Feb 2016 01:30:36 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2016-02-03T01:30:36Z</dc:date>
    <item>
      <title>How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122207#M17503</link>
      <description>&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/1736-external-table-error.png"&gt;external-table-error.png&lt;/A&gt;I'm getting the following error:&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 01:25:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122207#M17503</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-03T01:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122208#M17504</link>
      <description>&lt;P&gt;Thanks in advance for your time and suggestions. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 01:26:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122208#M17504</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-03T01:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122209#M17505</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt; hive is not a replacement for EDW or RDBMS there is no concept of&lt;A href="https://issues.apache.org/jira/browse/HIVE-6905"&gt; foreign key&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 01:27:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122209#M17505</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T01:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122210#M17506</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt;&lt;P&gt;It's not there yet but eventually we will get there.&lt;/P&gt;&lt;P&gt;See this &lt;A target="_blank" href="https://issues.apache.org/jira/browse/HIVE-6905"&gt;https://issues.apache.org/jira/browse/HIVE-6905&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 01:30:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122210#M17506</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-03T01:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122211#M17507</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; duplicate link dude&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 01:30:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122211#M17507</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T01:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122212#M17508</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; -- do you have any suggestion to overcome this error? I'm unable to make updates to the following table:&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/1737-update-error.png"&gt;update-error.png&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 02:51:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122212#M17508</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-03T02:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122213#M17509</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt; take a look at &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions"&gt;ACID&lt;/A&gt; support in Hive, we have some support for ACID but it's not fully working yet. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 02:56:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122213#M17509</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T02:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122214#M17510</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; - Thanks. I'd like to update hive-site.xml with the following statements. Where can I find hive-site.xml within the hortonworks web interface? &lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.support.concurrency"&gt;hive.support.concurrency&lt;/A&gt; – true&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.enforce.bucketing"&gt;hive.enforce.bucketing&lt;/A&gt; – true (Not required as of &lt;A href="https://issues.apache.org/jira/browse/HIVE-12331"&gt;Hive 2.0&lt;/A&gt;)&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.exec.dynamic.partition.mode"&gt;hive.exec.dynamic.partition.mode&lt;/A&gt; – nonstrict&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.txn.manager"&gt;hive.txn.manager&lt;/A&gt; – org.apache.hadoop.hive.ql.lockmgr.DbTxnManager&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.compactor.initiator.on"&gt;hive.compactor.initiator.on&lt;/A&gt; – true (for exactly one instance of the Thrift metastore service)&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Configuration+Properties#ConfigurationProperties-hive.compactor.worker.threads"&gt;hive.compactor.worker.threads&lt;/A&gt; – a positive number on at least one instance of the Thrift metastore service&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 03 Feb 2016 03:55:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122214#M17510</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-03T03:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122215#M17511</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt; you can find those properties in configuration section of ambari under Hive service. they are most likely not there so you will need to add them to the properties in the custom hive-site section.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 03:57:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122215#M17511</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T03:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122216#M17512</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; - I was able to find all the settings under hive service . Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:17:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122216#M17512</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-03T04:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122217#M17513</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt; great, contribute an article on your findings when you're done.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:21:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122217#M17513</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T04:21:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122218#M17514</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; &amp;amp; &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; -- Can you please guide me with the following error? &lt;/P&gt;&lt;P&gt;FYI - I updated the hive-site.xml settings under hive configs but I'm still unable to update my table. &lt;/P&gt;&lt;P&gt;FAILED: SemanticException [Error 10297]: Attempt to do update or delete on table default.sal_orc that does not use an AcidOutputFormat or is not bucketed&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:44:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122218#M17514</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-03T04:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122219#M17515</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2506/keerthanakumar20.html" nodeid="2506"&gt;@keerthana gajarajakumar&lt;/A&gt; it's a good practice to open a new question with new error.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:47:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122219#M17515</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-03T04:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122220#M17516</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;I have a suggestion for working with hive acid tables at the link below (I think it is helpful for you):&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://www.remay.com.br/blog/how-to-work-with-acid-tables-in-hive/"&gt;http://www.remay.com.br/blog/how-to-work-with-acid-tables-in-hive/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 04:52:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122220#M17516</guid>
      <dc:creator>carlos_hilario</dc:creator>
      <dc:date>2016-02-03T04:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122221#M17517</link>
      <description>&lt;P&gt;thanks &lt;A rel="user" href="https://community.cloudera.com/users/807/carloshilario.html" nodeid="807"&gt;@Carlos Hilario&lt;/A&gt;-- The challenge is identifying how to write the following statement :clustered by ('xxx') into 'xxx' buckets. The data was not completely loaded based on the values mentioned in this line of code. &lt;/P&gt;</description>
      <pubDate>Wed, 03 Feb 2016 05:14:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122221#M17517</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-03T05:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122222#M17518</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; - I was able to solve for the question I posted, as you suggested I'll write a topic about it later. Thanks again for your guidance. &lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 05:13:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122222#M17518</guid>
      <dc:creator>keerthanakumar2</dc:creator>
      <dc:date>2016-02-05T05:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122223#M17519</link>
      <description>&lt;P&gt;Updating this thread.  Hive has primary and foreign keys for metadata and query optimization.  &lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Column+Statistics+in+Hive" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Column+Statistics+in+Hive&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;ALTER TABLE TABLENAME ADD CONSTRAINT COLNAME_PK PRIMARY KEY (CS_ID);
ALTER TABLE TABLENAME ADD CONSTRAINT COLNAME_FK1 FOREIGN KEY (TBL_ID) REFERENCES TBLS
&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Feb 2017 00:11:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122223#M17519</guid>
      <dc:creator>khaslbeck</dc:creator>
      <dc:date>2017-02-01T00:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122224#M17520</link>
      <description>&lt;P&gt;So will this work?&lt;/P&gt;&lt;P&gt;ALTER TABLE HCALENDAR2017 ADD CONSTRAINT RWID_PK PRIMARY KEY (rowid() as rwid);&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 14:59:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122224#M17520</guid>
      <dc:creator>nandini_bhattac</dc:creator>
      <dc:date>2017-02-07T14:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: How can I set primary key and reference foreign keys while creating a table / external table in hive?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122225#M17521</link>
      <description>&lt;P&gt;Pls, check this: &lt;A href="https://community.hortonworks.com/answers/22307/view.html" target="_blank"&gt;https://community.hortonworks.com/answers/22307/view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2017 10:25:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-can-I-set-primary-key-and-reference-foreign-keys-while/m-p/122225#M17521</guid>
      <dc:creator>msabri</dc:creator>
      <dc:date>2017-03-28T10:25:39Z</dc:date>
    </item>
  </channel>
</rss>

