<?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: SelectHiveQL routes to failure on The query did not generate a resultset error. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/SelectHiveQL-routes-to-failure-on-The-query-did-not-generate/m-p/147134#M109677</link>
    <description>&lt;P&gt;Correct, SelectHiveQL is for statements that return ResultSets (like SELECT *), those results are converted to Avro records. PutHiveQL is for executing statements (except callable statements like stored procedures) that do not return results, such as your ALTER TABLE example.&lt;/P&gt;</description>
    <pubDate>Thu, 26 Jan 2017 04:42:37 GMT</pubDate>
    <dc:creator>mburgess</dc:creator>
    <dc:date>2017-01-26T04:42:37Z</dc:date>
    <item>
      <title>SelectHiveQL routes to failure on The query did not generate a resultset error.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SelectHiveQL-routes-to-failure-on-The-query-did-not-generate/m-p/147132#M109675</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I created an external table in Hive with partitions pointing to a HDFS location. I am using NiFi to load csv files into that location by using putHDFS. and then i am using SelectHiveQL to execute the ALTER TABLE command. It is successfully able to load the partitions as i can query them from Hive, but its routing to failures as the ALTER TABLE is not producing any output.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11750-hiveerror.png" style="width: 709px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21383i7DB1DCE93BC11049/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11750-hiveerror.png" alt="11750-hiveerror.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here is the error..&lt;/P&gt;&lt;P&gt;SelectHiveQL[id=7c2b4a39-f772-1ea7-7e5b-48be29a34850] Unable to execute HiveQL select query ALTER TABLE hdf_moat.tbl_moat_display_sai ADD PARTITION (MOATDATE=20150412) LOCATION '/user/putarapasa/MOAT_Daily/20150412/' for StandardFlowFileRecord[uuid=9781e831-a494-4512-8121-7bed28908763,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1485365330956-237, container=default, section=237], offset=0, length=50994078],offset=0,name=GroupM_Nestle_Daily_20150412.csv,size=50994078] due to org.apache.nifi.processor.exception.ProcessException: java.sql.SQLException: The query did not generate a result set!; routing to failure: org.apache.nifi.processor.exception.ProcessException: java.sql.SQLException: The query did not generate a result set!&lt;/P&gt;&lt;P&gt;how can we handle this.??&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 13:20:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SelectHiveQL-routes-to-failure-on-The-query-did-not-generate/m-p/147132#M109675</guid>
      <dc:creator>saikrishna_tara</dc:creator>
      <dc:date>2019-08-18T13:20:09Z</dc:date>
    </item>
    <item>
      <title>Re: SelectHiveQL routes to failure on The query did not generate a resultset error.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SelectHiveQL-routes-to-failure-on-The-query-did-not-generate/m-p/147133#M109676</link>
      <description>&lt;P&gt;Nevermind... PutHiveQL fixed it..but i need to use a ReplaceText to produce a file with the ALTER TABLE command.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 03:55:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SelectHiveQL-routes-to-failure-on-The-query-did-not-generate/m-p/147133#M109676</guid>
      <dc:creator>saikrishna_tara</dc:creator>
      <dc:date>2017-01-26T03:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: SelectHiveQL routes to failure on The query did not generate a resultset error.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/SelectHiveQL-routes-to-failure-on-The-query-did-not-generate/m-p/147134#M109677</link>
      <description>&lt;P&gt;Correct, SelectHiveQL is for statements that return ResultSets (like SELECT *), those results are converted to Avro records. PutHiveQL is for executing statements (except callable statements like stored procedures) that do not return results, such as your ALTER TABLE example.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2017 04:42:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/SelectHiveQL-routes-to-failure-on-The-query-did-not-generate/m-p/147134#M109677</guid>
      <dc:creator>mburgess</dc:creator>
      <dc:date>2017-01-26T04:42:37Z</dc:date>
    </item>
  </channel>
</rss>

