<?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 to activate ACID transactions in Hive within HDP 2.4 ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118861#M30636</link>
    <description>&lt;P&gt;you can not turn on acid on the existing table, you need to specify TBLPROPERTIES ('transactional'='true') at the time of table creation(DDL). further on this you can follow the apache documentation &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2016 16:47:16 GMT</pubDate>
    <dc:creator>rajkumar_singh</dc:creator>
    <dc:date>2016-06-03T16:47:16Z</dc:date>
    <item>
      <title>How to activate ACID transactions in Hive within HDP 2.4 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118860#M30635</link>
      <description>&lt;P&gt;I would like to be able to update a table within Hive, but I am not sure how to do that from the actual version of Ambari. &lt;/P&gt;&lt;P&gt;I found that ACID transactions is off on my ambari but I don't now how to change it.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:41:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118860#M30635</guid>
      <dc:creator>juancolikho</dc:creator>
      <dc:date>2016-06-03T16:41:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate ACID transactions in Hive within HDP 2.4 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118861#M30636</link>
      <description>&lt;P&gt;you can not turn on acid on the existing table, you need to specify TBLPROPERTIES ('transactional'='true') at the time of table creation(DDL). further on this you can follow the apache documentation &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:47:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118861#M30636</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-03T16:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate ACID transactions in Hive within HDP 2.4 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118862#M30637</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10886/juancolikho.html" nodeid="10886"&gt;@Juan lowee&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For using ACID transactions in Hive, following properties needs to added under Hive:&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;&lt;P&gt;If a Hive table is to be used in ACID writes (insert, update, delete) then the table property "&lt;CODE&gt;transactional=true&lt;/CODE&gt;" must be set on that table. Sample create table is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;create table test_partition(col1 int, col2 string) clustered by (col1) into 5 buckets stored as orc tbl_properties("transactional=true");&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;For details, you can refer to below link:&lt;/P&gt;&lt;P&gt;&lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions" target="_blank"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Sindhu&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2016 16:50:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118862#M30637</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2016-06-03T16:50:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to activate ACID transactions in Hive within HDP 2.4 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118863#M30638</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;           I am using HDP 2.5. I want to perform a delete operation from a Hive table. I have created a table with the following command:&lt;/P&gt;&lt;P&gt;hive&amp;gt; create table test (x int, y string) clustered by (x) into 2 
buckets stored as ORC tblproperties ("transactional" = "true");
OK
Time taken: 0.148 seconds&lt;/P&gt;&lt;P&gt;Further, I have set the following Hive properties:&lt;/P&gt;&lt;P&gt;SET hive.support.concurrency=true;
SET hive.enforce.bucketing=true;
SET hive.exec.dynamic.partition.mode=nonstrict;
SET hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
SET hive.compactor.initiator.on=true;
SET hive.compactor.worker.threads=1;
set hive.optimize.sort.dynamic.partition=false;&lt;/P&gt;&lt;P&gt;Then on, I am doing a test insert into the hive table leveraging the following command:&lt;/P&gt;&lt;P&gt;INSERT INTO TEST VALUES (1,a);&lt;/P&gt;&lt;P&gt;Unfortunately my Hive CLI shell is getting hung and I have to issue Ctrl + C command to get out of the shell. May I know why is this happening please? Is it due to the fact that my Hive schema / database contains a mixture of ACID and non-ACID tables ? Any suggestion to resolve this problem will be very helpful.&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;</description>
      <pubDate>Sun, 09 Apr 2017 01:17:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-activate-ACID-transactions-in-Hive-within-HDP-2-4/m-p/118863#M30638</guid>
      <dc:creator>Debu77</dc:creator>
      <dc:date>2017-04-09T01:17:33Z</dc:date>
    </item>
  </channel>
</rss>

