<?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: Oozie Hive Job status changes to KILLED but the underlying job is succes in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368868#M240293</link>
    <description>&lt;P&gt;Glad to hear that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The "hive.stats.autogather" should be unrelated to this, it just controls whether Hive should gather statistics at the end of INSERT statements, disabling it just speeds up the insert query somewhat. If you see something weird or not working with that enabled, feel free to open a support case on our Support Portal.&lt;/P&gt;&lt;P&gt;See this and all the hive configuration descriptions in the &lt;A href="https://github.com/apache/hive/blob/920c7e17082e7cfcafa06dac12159386912fb2d7/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java#L2775" target="_self"&gt;HiveConf.java&lt;/A&gt;&amp;nbsp;source code.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Miklos&lt;/P&gt;</description>
    <pubDate>Wed, 19 Apr 2023 07:22:26 GMT</pubDate>
    <dc:creator>mszurap</dc:creator>
    <dc:date>2023-04-19T07:22:26Z</dc:date>
    <item>
      <title>Oozie Hive Job status changes to KILLED but the underlying job is succes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368423#M240172</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm running&amp;nbsp;&lt;SPAN&gt;Hive 3.1.3, Hue 4.10.0, Oozie 5.2.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Through Oozie, I'm running a periodic Hive job which takes data from an HDFS path, and adds it to an existing hive table.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;It works fine when I'm running it using Hive shell. However, when I run it using Oozie, the underlying data in Hive gets updated correctly, but the Oozie job fails without giving any meaningful error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is a screenshot explaining the situation. The job ran for 1hr 11m, the data in Hive got updated, but Oozie responded with a failed status.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2023-04-13 at 7.47.32 PM.png" style="width: 400px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/37266i9C1E0A8CD6B5D705/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot 2023-04-13 at 7.47.32 PM.png" alt="Screenshot 2023-04-13 at 7.47.32 PM.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Here are the &lt;STRONG&gt;applicationLogs&lt;/STRONG&gt; :&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Parameters:
------------------------
  DATE=2023-04-12
------------------------

Hive command arguments :
             --hiveconf
             hive.log4j.file=/mnt/yarn/usercache/ec2-user/appcache/application_1675167116593_12260/container_1675167116593_12260_01_000001/hive-log4j.properties
             --hiveconf
             hive.exec.log4j.file=/mnt/yarn/usercache/ec2-user/appcache/application_1675167116593_12260/container_1675167116593_12260_01_000001/hive-exec-log4j.properties
             --hiveconf
             hive.log.trace.id=oozie:0005857-230202071432750-oozie-oozi-W
             -f
             dr_update_hive.hql
             --hivevar
             DATE=2023-04-12

Fetching child yarn jobs
tag id : oozie-2621f368aebc0324f3d78a262abee63e
No child applications found
=================================================================

&amp;gt;&amp;gt;&amp;gt; Invoking Hive command line now &amp;gt;&amp;gt;&amp;gt;


&amp;lt;&amp;lt;&amp;lt; Invocation of Hive command completed &amp;lt;&amp;lt;&amp;lt;

No child hadoop job is executed.
java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.oozie.action.hadoop.LauncherAM.runActionMain(LauncherAM.java:412)
	at org.apache.oozie.action.hadoop.LauncherAM.access$400(LauncherAM.java:54)
	at org.apache.oozie.action.hadoop.LauncherAM$2.run(LauncherAM.java:225)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730)
	at org.apache.oozie.action.hadoop.LauncherAM.run(LauncherAM.java:219)
	at org.apache.oozie.action.hadoop.LauncherAM$1.run(LauncherAM.java:155)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730)
	at org.apache.oozie.action.hadoop.LauncherAM.main(LauncherAM.java:143)
Caused by: java.lang.SecurityException: Intercepted System.exit(1)
	at org.apache.oozie.action.hadoop.security.LauncherSecurityManager.checkExit(LauncherSecurityManager.java:57)
	at java.lang.Runtime.exit(Runtime.java:107)
	at java.lang.System.exit(System.java:973)
	at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:685)
	at org.apache.oozie.action.hadoop.HiveMain.runHive(HiveMain.java:310)
	at org.apache.oozie.action.hadoop.HiveMain.run(HiveMain.java:294)
	at org.apache.oozie.action.hadoop.LauncherMain.run(LauncherMain.java:107)
	at org.apache.oozie.action.hadoop.HiveMain.main(HiveMain.java:69)
	... 16 more
Intercepting System.exit(1)
Failing Oozie Launcher, Main Class [org.apache.oozie.action.hadoop.HiveMain], exit code [1]
Oozie Launcher, uploading action data to HDFS sequence file: hdfs://ip-10-162-8-160.ap-south-1.compute.internal:8020/user/ec2-user/oozie-oozi/0005857-230202071432750-oozie-oozi-W/hiveScript--hive/action-data.seq
Stopping AM
Callback notification attempts left 0
Callback notification trying http://ip-10-162-8-160.ap-south-1.compute.internal:11000/oozie/callback?id=0005857-230202071432750-oozie-oozi-W@hiveScript&amp;amp;status=FAILED
Callback notification to http://ip-10-162-8-160.ap-south-1.compute.internal:11000/oozie/callback?id=0005857-230202071432750-oozie-oozi-W@hiveScript&amp;amp;status=FAILED succeeded
Callback notification succeeded&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need this because the job is correct and I'm getting unnecessary FAILURE alerts.&lt;/P&gt;&lt;P&gt;P.S. : Please tell me if any other info is needed. I'll be happy to provide&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 14:21:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368423#M240172</guid>
      <dc:creator>yashbansal042</dc:creator>
      <dc:date>2023-04-13T14:21:32Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Hive Job status changes to KILLED but the underlying job is succes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368554#M240195</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104596"&gt;@yashbansal042&lt;/a&gt;&amp;nbsp; Welcome to the Cloudera Community!&lt;BR /&gt;&lt;BR /&gt;To help you get the best possible solution, I have tagged our Hive experts&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70785"&gt;@Shmoo&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;&amp;nbsp;who may be able to assist you further.&lt;BR /&gt;&lt;BR /&gt;Please keep us updated on your post, and we hope you find a satisfactory solution to your query.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 17:28:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368554#M240195</guid>
      <dc:creator>DianaTorres</dc:creator>
      <dc:date>2023-04-14T17:28:25Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Hive Job status changes to KILLED but the underlying job is succes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368604#M240222</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/93628"&gt;@DianaTorres&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 04:16:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368604#M240222</guid>
      <dc:creator>yashbansal042</dc:creator>
      <dc:date>2023-04-17T04:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Hive Job status changes to KILLED but the underlying job is succes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368666#M240231</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/104596"&gt;@yashbansal042&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that you are using the "hive" action (Hive1 action) which is using the Hive CLI, that is deprecated and not supported in CDP:&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/hive-introduction/topics/hive-unsupported.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/hive-introduction/topics/hive-unsupported.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please follow&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/starting-hive/topics/hive_use_variables.html" target="_blank"&gt;https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/starting-hive/topics/hive_use_variables.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;to convert your Hive CLI scripts to beeline compatible scripts, and then use the "hive2" action in Oozie.&lt;/P&gt;&lt;P&gt;First, you might want to test whether a simple hive query (like the "select 1" query) works fine through a hive2 action.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;Miklos&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 09:41:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368666#M240231</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2023-04-17T09:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Hive Job status changes to KILLED but the underlying job is succes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368847#M240287</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/12885"&gt;@mszurap&lt;/a&gt;&amp;nbsp;Thanks!! It worked. Upgraded to Hive2 action and things worked.&lt;/P&gt;&lt;P&gt;However, had to add this property in hive hql :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;PRE&gt;&lt;SPAN&gt;SET &lt;/SPAN&gt;hive.stats.autogather=&lt;SPAN&gt;false&lt;/SPAN&gt;;&lt;/PRE&gt;&lt;P&gt;Guess, the flow was failing due to some issues with stats gathering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We can mark this as resolved.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 19 Apr 2023 03:55:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368847#M240287</guid>
      <dc:creator>yashbansal042</dc:creator>
      <dc:date>2023-04-19T03:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie Hive Job status changes to KILLED but the underlying job is succes</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368868#M240293</link>
      <description>&lt;P&gt;Glad to hear that. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The "hive.stats.autogather" should be unrelated to this, it just controls whether Hive should gather statistics at the end of INSERT statements, disabling it just speeds up the insert query somewhat. If you see something weird or not working with that enabled, feel free to open a support case on our Support Portal.&lt;/P&gt;&lt;P&gt;See this and all the hive configuration descriptions in the &lt;A href="https://github.com/apache/hive/blob/920c7e17082e7cfcafa06dac12159386912fb2d7/common/src/java/org/apache/hadoop/hive/conf/HiveConf.java#L2775" target="_self"&gt;HiveConf.java&lt;/A&gt;&amp;nbsp;source code.&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;Miklos&lt;/P&gt;</description>
      <pubDate>Wed, 19 Apr 2023 07:22:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-Hive-Job-status-changes-to-KILLED-but-the-underlying/m-p/368868#M240293</guid>
      <dc:creator>mszurap</dc:creator>
      <dc:date>2023-04-19T07:22:26Z</dc:date>
    </item>
  </channel>
</rss>

