<?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 Error &amp;quot;Failing Oozie Launcher,Main Class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2]&amp;quot; in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-quot-Failing-Oozie-Launcher-Main-Class-org-apache/m-p/82284#M34686</link>
    <description>&lt;P&gt;We had a cluster with version 5.5 of kerberos (8 nodes). On the cluster, tasks in oozie were successfully running. We updated the cluster to version 5.13. After that, an error began to appear. And the task can then run back, then after, for example, 8 times not to run back. Error: Main class [org.apache.oozie.action.hadoop.Hive2Main] exit code [2].&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="error.jpg" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4984i61E9098235A1FF7B/image-size/large?v=v2&amp;amp;px=999" role="button" title="error.jpg" alt="error.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;There are no details in the oozie and sheduler logs.&lt;BR /&gt;&lt;BR /&gt;When testing errors it was revealed:&lt;BR /&gt;-&amp;nbsp;Occurs when the hive2action block is executed.&lt;BR /&gt;-&amp;nbsp;At numerous attempts, it was revealed that out of 10 attempts approximately 1 time the script runs off. In this case, the input data, connection logs of libraries, etc. were compared and were identical.&lt;BR /&gt;-&amp;nbsp;Oozie script is written correctly, all dependencies are used.&lt;BR /&gt;During testing, 3 run statuses were identified (two that fell with errors and one ran away): no connection1-2.jpg, interrupted connection1-2.jpg, success connection1-2.jpg.&lt;BR /&gt;&lt;BR /&gt;1. success connection - the script ran away. In the second screenshot, you can see that the connection went to beeline and !сonnect... with the appropriate parameters, and then the insert ran off, which is shown in the logs on screenshot 1.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="success connection.jpg" style="width: 450px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4986i5B5B8CFC7089AAC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="success connection.jpg" alt="success connection.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="success connection2.jpg" style="width: 450px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4985i1F27DA5683D0B42C/image-size/large?v=v2&amp;amp;px=999" role="button" title="success connection2.jpg" alt="success connection2.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;2. no connection - the script fell. On the 2nd screenshot you can see that there is an attempt to connect to the beeline, as if !сonnect... parameters were not applied. BUT, these parameters (url, principal) were passed and this can be seen in the oozie coordinator of the web-face of this oozie action.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="no connection.jpg" style="width: 450px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4988i18FFE8C35F8D8CD2/image-size/large?v=v2&amp;amp;px=999" role="button" title="no connection.jpg" alt="no connection.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="no connection2.jpg" style="width: 450px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4987i7E3DF15711E0E8A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="no connection2.jpg" alt="no connection2.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;3. interrupted connection - the script fell. In the 2nd screenshot, you can see that the parameters were connected to the beeline with the appropriate! Connect parameters, but then it seemed as if there was a break. And from the 1st screenshot you can see that the error “Failing Oozie Launcher, Main Class [org.apache.oozie.action.hadoop.Hive2Main], exit code [2]” also went&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interrupted connection.jpg" style="width: 450px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4990i4823EF125578A92C/image-size/large?v=v2&amp;amp;px=999" role="button" title="interrupted connection.jpg" alt="interrupted connection.jpg" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="interrupted connection2.jpg" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/4989i7D952999963635D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="interrupted connection2.jpg" alt="interrupted connection2.jpg" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;Please help!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 13:53:31 GMT</pubDate>
    <dc:creator>kselon</dc:creator>
    <dc:date>2022-09-16T13:53:31Z</dc:date>
  </channel>
</rss>

