<?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 Presto select query fails  on Hive ACID Table in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/180603#M80454</link>
    <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I am using presto (v 0.194) on AWS EMR (v 5.14.0) as querying layer.&lt;/P&gt;
&lt;P&gt;Data is stored in Hadoop data nodes.&lt;/P&gt;
&lt;P&gt;Issue : When querying Hive table with ACID property enabled, Presto query fails with below error ( attached document &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/80444-presto-query-errors.txt" target="_blank"&gt;presto-query-errors.txt&lt;/A&gt; has full errors)&lt;/P&gt;
&lt;PRE&gt;select * from default.poc_date_bucket limit 10&lt;/PRE&gt;
&lt;PRE&gt;An error occurred while calling o163.next. : java.sql.SQLException: Query failed (#20180709_164933_00004_hgb6d): Hive table 'default.poc_date_bucket' is corrupt. Found sub-directory in bucket directory for partition: &amp;lt;UNPARTITIONED&amp;gt; at com.facebook.presto.jdbc.PrestoResultSet.resultsException(PrestoResultSet.java:1798) at &lt;/PRE&gt;
&lt;P&gt;Creating a new table with partitioning and bucketing enabled, query fails with similar error&lt;/P&gt;
&lt;PRE&gt;select * from default.poc_date_partition limit 10&lt;/PRE&gt;
&lt;PRE&gt;An error occurred while calling o169.next. : java.sql.SQLException: Query failed (#20180709_174041_00005_hgb6d): Hive table 'default.poc_date_partition' is corrupt. Found sub-directory in bucket directory for partition: year_start_date=2019-01-01 at com.facebook.presto.jdbc.PrestoResultSet.resultsException(PrestoResultSet.java:1798) at&lt;/PRE&gt;
&lt;P&gt;Bucketing is required when enabling ACID property on a Hive table.&lt;/P&gt;
&lt;P&gt;Has anyone encountered this issue? Appreciate any suggestions&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 13:26:37 GMT</pubDate>
    <dc:creator>ckurali</dc:creator>
    <dc:date>2022-09-16T13:26:37Z</dc:date>
    <item>
      <title>Presto select query fails  on Hive ACID Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/180603#M80454</link>
      <description>&lt;P&gt;Hello Experts,&lt;/P&gt;
&lt;P&gt;I am using presto (v 0.194) on AWS EMR (v 5.14.0) as querying layer.&lt;/P&gt;
&lt;P&gt;Data is stored in Hadoop data nodes.&lt;/P&gt;
&lt;P&gt;Issue : When querying Hive table with ACID property enabled, Presto query fails with below error ( attached document &lt;A href="https://community.cloudera.com/legacyfs/online/attachments/80444-presto-query-errors.txt" target="_blank"&gt;presto-query-errors.txt&lt;/A&gt; has full errors)&lt;/P&gt;
&lt;PRE&gt;select * from default.poc_date_bucket limit 10&lt;/PRE&gt;
&lt;PRE&gt;An error occurred while calling o163.next. : java.sql.SQLException: Query failed (#20180709_164933_00004_hgb6d): Hive table 'default.poc_date_bucket' is corrupt. Found sub-directory in bucket directory for partition: &amp;lt;UNPARTITIONED&amp;gt; at com.facebook.presto.jdbc.PrestoResultSet.resultsException(PrestoResultSet.java:1798) at &lt;/PRE&gt;
&lt;P&gt;Creating a new table with partitioning and bucketing enabled, query fails with similar error&lt;/P&gt;
&lt;PRE&gt;select * from default.poc_date_partition limit 10&lt;/PRE&gt;
&lt;PRE&gt;An error occurred while calling o169.next. : java.sql.SQLException: Query failed (#20180709_174041_00005_hgb6d): Hive table 'default.poc_date_partition' is corrupt. Found sub-directory in bucket directory for partition: year_start_date=2019-01-01 at com.facebook.presto.jdbc.PrestoResultSet.resultsException(PrestoResultSet.java:1798) at&lt;/PRE&gt;
&lt;P&gt;Bucketing is required when enabling ACID property on a Hive table.&lt;/P&gt;
&lt;P&gt;Has anyone encountered this issue? Appreciate any suggestions&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 13:26:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/180603#M80454</guid>
      <dc:creator>ckurali</dc:creator>
      <dc:date>2022-09-16T13:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: Presto select query fails  on Hive ACID Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/180604#M80455</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/77286/cskbhatt.html" nodeid="77286"&gt;@cskbhatt&lt;/A&gt;! When you use hive transactional table it seems to be an unsupported feature by presto. &lt;BR /&gt;&lt;A href="https://github.com/prestodb/presto/issues/1970" target="_blank"&gt;https://github.com/prestodb/presto/issues/1970&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/prestodb/presto/issues/6666" target="_blank"&gt;https://github.com/prestodb/presto/issues/6666&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 06:25:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/180604#M80455</guid>
      <dc:creator>vmurakami</dc:creator>
      <dc:date>2018-07-12T06:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Presto select query fails  on Hive ACID Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/180605#M80456</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/79158/vmurakami.html" nodeid="79158"&gt;@Vinicius Higa Murakami&lt;/A&gt; for sharing the issues. &lt;/P&gt;&lt;P&gt;I am exploring alternatives to presto, for querying star schemas (built on hive ACID tables)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 13:23:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/180605#M80456</guid>
      <dc:creator>ckurali</dc:creator>
      <dc:date>2018-07-12T13:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: Presto select query fails  on Hive ACID Table</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/293620#M80457</link>
      <description>&lt;P&gt;So Presto now supports ACID tables, but only for Hive3. However, the subdirectory exception is from a configuration on the presto client side. In the hive.properties in presto's catalog directory, add "&lt;SPAN&gt;hive.recursive-directories=true"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 15:26:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Presto-select-query-fails-on-Hive-ACID-Table/m-p/293620#M80457</guid>
      <dc:creator>Eric_B</dc:creator>
      <dc:date>2020-04-09T15:26:55Z</dc:date>
    </item>
  </channel>
</rss>

