<?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: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315364#M226440</link>
    <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86203"&gt;@dmharshit&lt;/a&gt;&amp;nbsp;&amp;nbsp;It would be really difficult to answer for the question without the necessary details like what is the query you are running, From when you started facing the issue and the complete error stack. But from the two line which you provided i suspect that there might be issue with stats. So you can try setting the below parameter and try it.&lt;/P&gt;&lt;PRE&gt;set hive.stats.column.autogather=false; 
set hive.optimize.sort.dynamic.partition=true;&lt;/PRE&gt;&lt;P&gt;If the above doesn't help kindly provide the necessary details to figure out the issue.&lt;/P&gt;&lt;P&gt;If the above parameter resolves the issue kindly mark "Accept as a Solution"&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shobika S&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 27 Apr 2021 09:23:49 GMT</pubDate>
    <dc:creator>shobikas</dc:creator>
    <dc:date>2021-04-27T09:23:49Z</dc:date>
    <item>
      <title>Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315296#M226404</link>
      <description>&lt;DIV&gt;&lt;P&gt;Error message:&lt;BR /&gt;&lt;STRONG&gt;Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Following is Details of our cluster&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;HDP Version: 3.1.4&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Hive Version: 3.1.0.3.1.4.0-315&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Configs for Dynamic Partition in hive:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive.exec.dynamic.partition=true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Allow all partitions to be Dynamic=nonstrict&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive.exec.max.dynamic.partitions=50000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hive.exec.max.dynamic.partitions.pernode=20000&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sort Partitions Dynamically=false&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Allow dynamic numbers of reducers=true&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Allow dynamic partition pruning=true&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any help appreciated.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 26 Apr 2021 09:46:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315296#M226404</guid>
      <dc:creator>dmharshit</dc:creator>
      <dc:date>2021-04-26T09:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315364#M226440</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86203"&gt;@dmharshit&lt;/a&gt;&amp;nbsp;&amp;nbsp;It would be really difficult to answer for the question without the necessary details like what is the query you are running, From when you started facing the issue and the complete error stack. But from the two line which you provided i suspect that there might be issue with stats. So you can try setting the below parameter and try it.&lt;/P&gt;&lt;PRE&gt;set hive.stats.column.autogather=false; 
set hive.optimize.sort.dynamic.partition=true;&lt;/PRE&gt;&lt;P&gt;If the above doesn't help kindly provide the necessary details to figure out the issue.&lt;/P&gt;&lt;P&gt;If the above parameter resolves the issue kindly mark "Accept as a Solution"&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Shobika S&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Apr 2021 09:23:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315364#M226440</guid>
      <dc:creator>shobikas</dc:creator>
      <dc:date>2021-04-27T09:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315447#M226463</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67286"&gt;@shobikas&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;I tried running queries using the configs you mentioned. Queries are getting executed successfully but no change is observed in table data.&lt;/P&gt;&lt;P&gt;Following queries I'm running in hive (​for mix partitioning which includes static and dynamic partitioning together)&lt;BR /&gt;1. insert into table foodmart.idNameGenderPartDeptTableName partition (manager_id = 200, manager_name, manager_gender) VALUES (1, 'COMP', 'John', 'M');&lt;BR /&gt;2. insert into table foodmart.idNameGenderPartDeptTableName partition (manager_id = 1111, manager_name, manager_gender) select department_id, full_name, first_name, gender from foodmart.trimmed_employee;&lt;BR /&gt;3. insert OVERWRITE table foodmart.idNameGenderPartDeptTableName partition (manager_id = 1234, manager_name, manager_gender) select department_id, full_name, first_name, gender from foodmart.trimmed_employee;&lt;BR /&gt;4. insert OVERWRITE table foodmart.idNameGenderPartDeptTableName partition (manager_id = 1234, manager_name, manager_gender) values (02, 'HR', 'Niks', 'M');&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Apr 2021 07:28:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315447#M226463</guid>
      <dc:creator>dmharshit</dc:creator>
      <dc:date>2021-04-28T07:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315557#M226477</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86203"&gt;@dmharshit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you share the log snippets from Hive Metastore, Hiveserver2 and YARN ResourceManager from the timeframe of execution of this query?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Megh&lt;/P&gt;</description>
      <pubDate>Thu, 29 Apr 2021 05:55:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/315557#M226477</guid>
      <dc:creator>vidanimegh</dc:creator>
      <dc:date>2021-04-29T05:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/317975#M227375</link>
      <description>&lt;P&gt;I compared the hive set ; between HIVE 2.x &amp;amp; HIVE 3.x&lt;/P&gt;&lt;P&gt;In HIVE 3.x following value is 'nonstrict'. Is that causing the issue?&lt;BR /&gt;&lt;FONT color="#993300"&gt;hive.exec.dynamic.partition.mode=nonstrict&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;The problem is, if I execute the query which contains &lt;STRONG&gt;static&lt;/STRONG&gt; &amp;amp; &lt;STRONG&gt;dynamic&lt;/STRONG&gt; parameters I am getting the error.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;If I just keep it static&amp;nbsp;or dynamic parameters, no problem.&lt;BR /&gt;&lt;BR /&gt;Some more parameters which might be causing the issue but I am not too sure =&lt;BR /&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;hive.optimize.dynamic.partition.hashjoin=true
hive.optimize.sort.dynamic.partition=false
hive.server2.support.dynamic.service.discovery=true&lt;/LI-CODE&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 11:30:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/317975#M227375</guid>
      <dc:creator>dmharshit</dc:creator>
      <dc:date>2021-06-09T11:30:46Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318184#M227420</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/67286"&gt;@shobikas&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/84001"&gt;@vidanimegh&lt;/a&gt;&amp;nbsp; Pls suggest thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jun 2021 07:32:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318184#M227420</guid>
      <dc:creator>dmharshit</dc:creator>
      <dc:date>2021-06-11T07:32:40Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318371#M227448</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/20288"&gt;@Shelton&lt;/a&gt;&amp;nbsp; Any hints on this issue? Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 04:20:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318371#M227448</guid>
      <dc:creator>dmharshit</dc:creator>
      <dc:date>2021-06-14T04:20:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318389#M227461</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86203"&gt;@dmharshit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is difficult to comment without looking at the logs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kindly share the log snippets from HiveServer2, Hive Metastore and YARN during the execution of this query.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Megh&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 06:50:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318389#M227461</guid>
      <dc:creator>vidanimegh</dc:creator>
      <dc:date>2021-06-14T06:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318393#M227464</link>
      <description>&lt;P&gt;I tried with the logs but unable to find any traces with the keywords.&lt;BR /&gt;I even tried to check the logs by killing all jobs.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 07:24:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318393#M227464</guid>
      <dc:creator>dmharshit</dc:creator>
      <dc:date>2021-06-14T07:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.StatsTask (state=08S01,code=1)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318910#M227598</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/86203"&gt;@dmharshit&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When you run this query, does a YARN application ID get generated? Or the query fails before triggering the YARN application?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In case YARN application is triggered, please get the logs of that particular YARN application and check for errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;yarn logs -applicationId your_application_id &amp;gt; your_application_id.log 2&amp;gt;&amp;amp;1&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check and see if you're able to get any detailed errors in this log file and share.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Megh&lt;/P&gt;</description>
      <pubDate>Fri, 18 Jun 2021 06:38:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-Error-while-processing-statement-FAILED-Execution/m-p/318910#M227598</guid>
      <dc:creator>vidanimegh</dc:creator>
      <dc:date>2021-06-18T06:38:56Z</dc:date>
    </item>
  </channel>
</rss>

