<?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 ACID table transactions fails in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/319938#M228045</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect the hive table from CDSW data science workbench using python. i am able to connect the hive from python using impala, when i try to execute the query i am getting below error,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;SemanticException [Error 10265]: This command is not allowed on an ACID table default.atlastest with a non-ACID transaction manager. Failed command: SELECT * FROM `default`.`table_name`'), operationHandle=None)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PFB code ref:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import os&lt;BR /&gt;import pandas&lt;BR /&gt;from impala.dbapi import connect&lt;BR /&gt;from impala.util import as_pandas&lt;/P&gt;&lt;P&gt;# Specify HIVE_HS2_HOST host name as an environment variable in your project settings&lt;BR /&gt;HIVE_HS2_HOST='1.1.1.1'&lt;/P&gt;&lt;P&gt;# This connection string depends on your cluster setup and authentication mechanism&lt;BR /&gt;conn = connect(host=HIVE_HS2_HOST,&lt;BR /&gt;port=10000,&lt;BR /&gt;user = 'username',&lt;BR /&gt;password = 'password',&lt;BR /&gt;auth_mechanism='PLAIN',&lt;BR /&gt;kerberos_service_name='hive')&lt;/P&gt;&lt;P&gt;cursor = conn.cursor()&lt;BR /&gt;res = cursor.execute('SELECT * FROM `default`.`table_name`')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me to close this issue&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2026 09:01:07 GMT</pubDate>
    <dc:creator>sur</dc:creator>
    <dc:date>2026-04-21T09:01:07Z</dc:date>
    <item>
      <title>ACID table transactions fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/319938#M228045</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to connect the hive table from CDSW data science workbench using python. i am able to connect the hive from python using impala, when i try to execute the query i am getting below error,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;SemanticException [Error 10265]: This command is not allowed on an ACID table default.atlastest with a non-ACID transaction manager. Failed command: SELECT * FROM `default`.`table_name`'), operationHandle=None)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PFB code ref:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import os&lt;BR /&gt;import pandas&lt;BR /&gt;from impala.dbapi import connect&lt;BR /&gt;from impala.util import as_pandas&lt;/P&gt;&lt;P&gt;# Specify HIVE_HS2_HOST host name as an environment variable in your project settings&lt;BR /&gt;HIVE_HS2_HOST='1.1.1.1'&lt;/P&gt;&lt;P&gt;# This connection string depends on your cluster setup and authentication mechanism&lt;BR /&gt;conn = connect(host=HIVE_HS2_HOST,&lt;BR /&gt;port=10000,&lt;BR /&gt;user = 'username',&lt;BR /&gt;password = 'password',&lt;BR /&gt;auth_mechanism='PLAIN',&lt;BR /&gt;kerberos_service_name='hive')&lt;/P&gt;&lt;P&gt;cursor = conn.cursor()&lt;BR /&gt;res = cursor.execute('SELECT * FROM `default`.`table_name`')&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly help me to close this issue&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 09:01:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/319938#M228045</guid>
      <dc:creator>sur</dc:creator>
      <dc:date>2026-04-21T09:01:07Z</dc:date>
    </item>
    <item>
      <title>Re: ACID table transactions fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/320317#M228150</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88746"&gt;@sur&lt;/a&gt;&amp;nbsp;I believe you have to run the queries over Impala not Hive. I have tested below and it works several time in the past.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;# Install Libraries&lt;BR /&gt;!pip3 install impyla==0.13.8&lt;BR /&gt;!pip3 install thrift_sasl==0.2.1&lt;BR /&gt;!pip3 install thrift==0.9.3&lt;BR /&gt;!pip3 install sasl==0.2.1&lt;BR /&gt;&lt;BR /&gt;# Connect to Impala&lt;BR /&gt;from impala.dbapi import connect&lt;BR /&gt;&lt;BR /&gt;conn = connect(host='host',&lt;BR /&gt;port=21050,&lt;BR /&gt;auth_mechanism='GSSAPI',&lt;BR /&gt;use_ssl=True,&lt;BR /&gt;kerberos_service_name='impala')&lt;BR /&gt;&lt;BR /&gt;# Execute Query&lt;BR /&gt;sql = "select * from table"&lt;BR /&gt;&lt;BR /&gt;cursor = conn.cursor()&lt;BR /&gt;cursor.execute(sql)&lt;BR /&gt;results = cursor.fetchall()&lt;/PRE&gt;&lt;P&gt;You can refer the below doc:&amp;nbsp;&lt;A href="https://docs.cloudera.com/cdsw/1.9.1/import-data/topics/cdsw-running-queries-on-impala-tables.html" target="_blank"&gt;https://docs.cloudera.com/cdsw/1.9.1/import-data/topics/cdsw-running-queries-on-impala-tables.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Jul 2021 12:18:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/320317#M228150</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2021-07-11T12:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: ACID table transactions fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/320337#M228162</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/29629"&gt;@GangWar&lt;/a&gt;&amp;nbsp; Thanks for your reply; Actually i am trying to query on Hive table; and I have followed the these steps;&amp;nbsp;&lt;A href="https://docs.cloudera.com/cdsw/1.9.1/import-data/topics/cdsw-accessing-data-from-apache-hive.html" target="_blank" rel="noopener"&gt;https://docs.cloudera.com/cdsw/1.9.1/import-data/topics/cdsw-accessing-data-from-apache-hive.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to establish the connection&amp;nbsp; and executed 'show tables;' -- it works fine as expected. The real problem comes only when i try to run select query on hive table. It is showing the above error which i mentioned early.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 05:36:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/320337#M228162</guid>
      <dc:creator>sur</dc:creator>
      <dc:date>2021-07-12T05:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: ACID table transactions fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/320557#M228182</link>
      <description>&lt;P&gt;It works on impala shell or hive beeline?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 02:52:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/320557#M228182</guid>
      <dc:creator>flowerbirds</dc:creator>
      <dc:date>2021-07-13T02:52:50Z</dc:date>
    </item>
    <item>
      <title>Re: ACID table transactions fails</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/320559#M228183</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/88746"&gt;@sur&lt;/a&gt;&amp;nbsp;I believe you have to &lt;SPAN&gt;Set below properties before executing create table statement&lt;/SPAN&gt;.&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;PRE&gt;SET hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;&lt;BR /&gt;&lt;SPAN&gt;SET hive.support.concurrency=true;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;This seems a very known behaviour and I did a simple Googling and found the solutions on several places. Below are the references.&amp;nbsp;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://stackoverflow.com/questions/42669171/semanticexception-error-10265-while-running-simple-hive-select-query-on-a-tran" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/42669171/semanticexception-error-10265-while-running-simple-hive-select-query-on-a-tran&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://dbmstutorials.com/hive/hive-errors.html" target="_blank" rel="noopener"&gt;https://dbmstutorials.com/hive/hive-errors.html&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://knowledge.informatica.com/s/article/526538?language=en_USv" target="_blank" rel="noopener"&gt;https://knowledge.informatica.com/s/article/526538?language=en_USv&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Hope this helps.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 04:13:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ACID-table-transactions-fails/m-p/320559#M228183</guid>
      <dc:creator>GangWar</dc:creator>
      <dc:date>2021-07-13T04:13:48Z</dc:date>
    </item>
  </channel>
</rss>

