<?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: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131202#M51659</link>
    <description>&lt;P&gt;You cannot update any of the bucketing columns/partition columns&lt;/P&gt;&lt;P&gt;I'm not sure I understand the 2nd question.  &lt;/P&gt;&lt;P&gt;Hive update/delete are meant for slowly changing data, rather than OLTP type of workload.  The cost updating 10% of the rows in 100M row table is about the same as updating 0.1%.  If you execute many update/delete statements, your read performance may will also be affected until you run Compaction on the table/partition.&lt;/P&gt;</description>
    <pubDate>Tue, 17 Jan 2017 07:38:34 GMT</pubDate>
    <dc:creator>ekoifman</dc:creator>
    <dc:date>2017-01-17T07:38:34Z</dc:date>
    <item>
      <title>ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131196#M51653</link>
      <description>&lt;P&gt;I'm trying to do DELETE few transactions from the table and I'm getting the following errors various changes. I already turned on ACID in Ambari. FYI, I'm using HDP 2.5 Sandbox. I don't want to try on our office systems yet.&lt;/P&gt;&lt;P&gt;I am using non EXTERNAL Table with &lt;/P&gt;&lt;P&gt;set hive.enforce.bucketing=true; &lt;/P&gt;&lt;P&gt;set hive.enforce.sorting=true; &lt;/P&gt;&lt;P&gt;set hive.exec.dynamic.partition.mode=nonstrict; &lt;/P&gt;&lt;P&gt;set hive.compactor.worker.threads=1; &lt;/P&gt;&lt;P&gt;set hive.support.concurrency=true;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;CREATE TABLE IF NOT EXISTS XYZ ( &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;lt;Various Columsn ...&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;)
&lt;STRONG&gt;CLUSTERED BY (State) into 8 buckets
STORED AS ORC
TBLPROPERTIES ("transactional'"="true")
;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;STRONG&gt;
&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;STRONG&gt;INSERT INTO&lt;/STRONG&gt; TABLE XYZ select &lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&amp;lt;VariousColumns in that Order of XYZ&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;from XYZ_OLD limit 1000;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;&lt;/P&gt;&lt;P style="margin-left: 20px;"&gt;Then When I Give DELETE statement, I am getting the 2 errors based on various Table properties.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;delete from XYZ  where state in ('NY','GA');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERRORS:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FAILED: SemanticException [Error 10122]: Bucketized tables do not support INSERT INTO: Table: XYZ
&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FAILED: SemanticException [Error 10297]: Attempt to do update or delete on table XYZ that does not use an AcidOutputFormat or is not bucketed&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 04:57:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131196#M51653</guid>
      <dc:creator>narenreddy</dc:creator>
      <dc:date>2017-01-17T04:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131197#M51654</link>
      <description>&lt;P&gt;They system doesn't think your table is an Acid table.&lt;/P&gt;&lt;P&gt;Can you post "describe formatted XYZ"?  (Note that above you have an extra " in DDL)&lt;/P&gt;&lt;P&gt;do you have hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager?&lt;/P&gt;&lt;P&gt;Are you able to "select from XYZ"?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 06:18:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131197#M51654</guid>
      <dc:creator>ekoifman</dc:creator>
      <dc:date>2017-01-17T06:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131198#M51655</link>
      <description>&lt;P&gt;Thanks Eugene for Quick Response.&lt;/P&gt;&lt;P&gt;Yes, DbTxnManager is set(Sorry, I missed that in original post). &lt;/P&gt;&lt;P&gt;Yes, Select from XYZ is working fine.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FYI, when I do simple 2/3 recordings for DELETE and Updatete with my own insert ACID is working. But I created the XYZ_OLD from a csv file for actual real time testing.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;describe formated XYZ&lt;/EM&gt;&lt;/STRONG&gt;; Details are below...&lt;/P&gt;&lt;P&gt;-------------------------------------&lt;/P&gt;&lt;P&gt;# Detailed Table Information&lt;/P&gt;&lt;P&gt;Database:           default              &lt;/P&gt;&lt;P&gt;Owner:              raj_ops              &lt;/P&gt;&lt;P&gt;CreateTime:         Mon Jan 16 08:21:09 UTC 2017 &lt;/P&gt;&lt;P&gt;LastAccessTime:     UNKNOWN              &lt;/P&gt;&lt;P&gt;Protect Mode:       None                 &lt;/P&gt;&lt;P&gt;Retention:          0                    &lt;/P&gt;&lt;P&gt;Location:           hdfs://sandbox.hortonworks.com:8020/apps/hive/warehouse/XYZ&lt;/P&gt;&lt;P&gt;Table Type:         MANAGED_TABLE        &lt;/P&gt;&lt;P&gt;Table Parameters:  &lt;/P&gt;&lt;P&gt;COLUMN_STATS_ACCURATE{\"BASIC_STATS\":\"true\"}&lt;/P&gt;&lt;P&gt;numFiles            8                   &lt;/P&gt;&lt;P&gt;numRows             1000                &lt;/P&gt;&lt;P&gt;rawDataSize         1563286             &lt;/P&gt;&lt;P&gt;totalSize           44374               &lt;/P&gt;&lt;P&gt;transactional'      true                &lt;/P&gt;&lt;P&gt;transient_lastDdlTime1484557025          &lt;/P&gt;&lt;P&gt;# Storage Information  &lt;/P&gt;&lt;P&gt;SerDe Library:      org.apache.hadoop.hive.ql.io.orc.OrcSerde &lt;/P&gt;&lt;P&gt;InputFormat:        org.apache.hadoop.hive.ql.io.orc.OrcInputFormat &lt;/P&gt;&lt;P&gt;OutputFormat:       org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat &lt;/P&gt;&lt;P&gt;Compressed:         No                   &lt;/P&gt;&lt;P&gt;Num Buckets:        8                    &lt;/P&gt;&lt;P&gt;Bucket Columns:     [state]              &lt;/P&gt;&lt;P&gt;Sort Columns:       []                   &lt;/P&gt;&lt;P&gt;Storage Desc Params:  &lt;/P&gt;&lt;P&gt;serialization.format1                   &lt;/P&gt;&lt;P&gt;Time taken: 0.137 seconds, Fetched: 49 row(s) &lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 06:49:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131198#M51655</guid>
      <dc:creator>narenreddy</dc:creator>
      <dc:date>2017-01-17T06:49:57Z</dc:date>
    </item>
    <item>
      <title>Re: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131199#M51656</link>
      <description>&lt;P&gt;[transactional' true] - note the extra single quote there.  Can you try recreating the XYZ table w/o this?&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 06:52:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131199#M51656</guid>
      <dc:creator>ekoifman</dc:creator>
      <dc:date>2017-01-17T06:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131200#M51657</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks a bunch.&lt;/P&gt;&lt;P&gt;That single Quote is a big miss on my part and I'm checking all other big ones :). I removed that single quote and also make sure &lt;STRONG&gt;Bucketed&lt;/STRONG&gt; column is not in my update SET condition statement - then it worked as expected.&lt;/P&gt;&lt;P&gt;So here are 2 questions.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;For all Updates, the limitation is Bucketed column should not be in UPDATE's SET condition.&lt;/LI&gt;&lt;LI&gt;Why even small transaction Updates and Deletes are taking lot of time. Infact, total Transaction Table itself is running slow.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks a lot for your timely response.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 07:30:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131200#M51657</guid>
      <dc:creator>narenreddy</dc:creator>
      <dc:date>2017-01-17T07:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131201#M51658</link>
      <description>&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thanks a bunch.&lt;/P&gt;&lt;P&gt;That single Quote is a big miss on my part and I'm checking all other big ones :). I removed that single quite and also make sure &lt;STRONG&gt;Bucketed&lt;/STRONG&gt; column is not in my delete where condition statement - then it worked as expected.&lt;/P&gt;&lt;P&gt;So here are 2 questions.&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;For all Updates, the limitation is Bucketed column should not be in UPDATE where condition.&lt;/LI&gt;&lt;LI&gt;Why even small transaction Updates and Deletes are taking lot of time. Infact, total Transaction Table itself is running slow.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks a lot for your timely response.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 07:31:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131201#M51658</guid>
      <dc:creator>narenreddy</dc:creator>
      <dc:date>2017-01-17T07:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131202#M51659</link>
      <description>&lt;P&gt;You cannot update any of the bucketing columns/partition columns&lt;/P&gt;&lt;P&gt;I'm not sure I understand the 2nd question.  &lt;/P&gt;&lt;P&gt;Hive update/delete are meant for slowly changing data, rather than OLTP type of workload.  The cost updating 10% of the rows in 100M row table is about the same as updating 0.1%.  If you execute many update/delete statements, your read performance may will also be affected until you run Compaction on the table/partition.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 07:38:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131202#M51659</guid>
      <dc:creator>ekoifman</dc:creator>
      <dc:date>2017-01-17T07:38:34Z</dc:date>
    </item>
    <item>
      <title>Re: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131203#M51660</link>
      <description>&lt;P&gt;That makes sense ...&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2017 07:50:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131203#M51660</guid>
      <dc:creator>narenreddy</dc:creator>
      <dc:date>2017-01-17T07:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: ACID Transactions DELETE &amp; UPDATE Issues ... STILL Bugs are there on HDP 2.5 ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131204#M51661</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10371/narenreddy.html" nodeid="10371"&gt;@Naren Reddy&lt;/A&gt;.  &lt;A rel="user" href="https://community.cloudera.com/users/1027/ekoifman.html" nodeid="1027"&gt;@Eugene Koifman&lt;/A&gt; is correct - ACID tables are not designed for frequent OLTP-like transactions... It is much more optimal for tables that get their deletes/updates applied every 15 minutes or longer.    &lt;/P&gt;</description>
      <pubDate>Wed, 18 Jan 2017 02:49:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ACID-Transactions-DELETE-UPDATE-Issues-STILL-Bugs-are-there/m-p/131204#M51661</guid>
      <dc:creator>bpreachuk</dc:creator>
      <dc:date>2017-01-18T02:49:30Z</dc:date>
    </item>
  </channel>
</rss>

