<?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 Update records in a Hive table concurrently? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179469#M64818</link>
    <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/112924/how-to-update-records-in-a-hive-table-concurrently.html#"&gt;@Harish Nerella&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This scenario on updating a table (even two different rows) by two different processes at the same time is not possible at the moment for ACID tables. 
&lt;/P&gt;&lt;P&gt;Currently, ACID concurrency management mechanism works at a partition level for partitioned tables and table level for non partitioned (which I believe is our case). Basically what the system wants to prevent is 2 parallel transactions updating the same row. Unfortunately, it can't keep track of this at individual row level, it does it at partition and table level respectively.&lt;/P&gt;&lt;P&gt;Refer Jira &lt;A href="https://issues.apache.org/jira/browse/HIVE-13395"&gt;HIVE-13395&lt;/A&gt; for more details.&lt;/P&gt;</description>
    <pubDate>Thu, 13 Jul 2017 14:34:58 GMT</pubDate>
    <dc:creator>ssubhas</dc:creator>
    <dc:date>2017-07-13T14:34:58Z</dc:date>
    <item>
      <title>How to Update records in a Hive table concurrently?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179466#M64815</link>
      <description>&lt;P&gt;I am trying to update two different records of an ACID transaction enabled hive table in two different sessions but getting a lockException showing write conflict. Is there any configuration parameter in Hive.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 13:55:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179466#M64815</guid>
      <dc:creator>harish_nerella</dc:creator>
      <dc:date>2017-07-13T13:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to Update records in a Hive table concurrently?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179467#M64816</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/23188/harishnerella.html" nodeid="23188"&gt;@Harish Nerella&lt;/A&gt; &lt;/P&gt;&lt;P&gt;If a table is to be used in ACID writes (insert, update, delete) then the table property "transactional=true" must be set on that table.Also, hive.txn.manager must be set to org.apache.hadoop.hive.ql.lockmgr.DbTxnManager either in hive-site.xml or in the beginning of the session before any query is run.&lt;/P&gt;&lt;P&gt;Refer &lt;A href="https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions"&gt;https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions&lt;/A&gt; for more details.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:00:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179467#M64816</guid>
      <dc:creator>vasubramanian</dc:creator>
      <dc:date>2017-07-13T14:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to Update records in a Hive table concurrently?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179468#M64817</link>
      <description>&lt;P&gt;Thank you for your answer. &lt;/P&gt;&lt;P&gt;I did set all the ACID Transaction related configurations in both the sessions but still I am getting a write conflict. And caveat is if I am executing the update statement in sequential way (after completion of a query which is running in other session) it is allowing me to update.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:07:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179468#M64817</guid>
      <dc:creator>harish_nerella</dc:creator>
      <dc:date>2017-07-13T14:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to Update records in a Hive table concurrently?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179469#M64818</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/112924/how-to-update-records-in-a-hive-table-concurrently.html#"&gt;@Harish Nerella&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This scenario on updating a table (even two different rows) by two different processes at the same time is not possible at the moment for ACID tables. 
&lt;/P&gt;&lt;P&gt;Currently, ACID concurrency management mechanism works at a partition level for partitioned tables and table level for non partitioned (which I believe is our case). Basically what the system wants to prevent is 2 parallel transactions updating the same row. Unfortunately, it can't keep track of this at individual row level, it does it at partition and table level respectively.&lt;/P&gt;&lt;P&gt;Refer Jira &lt;A href="https://issues.apache.org/jira/browse/HIVE-13395"&gt;HIVE-13395&lt;/A&gt; for more details.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 14:34:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179469#M64818</guid>
      <dc:creator>ssubhas</dc:creator>
      <dc:date>2017-07-13T14:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to Update records in a Hive table concurrently?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179470#M64819</link>
      <description>&lt;P&gt;Thank You. This helped.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jul 2017 17:21:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-Update-records-in-a-Hive-table-concurrently/m-p/179470#M64819</guid>
      <dc:creator>harish_nerella</dc:creator>
      <dc:date>2017-07-13T17:21:17Z</dc:date>
    </item>
  </channel>
</rss>

