<?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: Batch job not completing in Livy under Yarn mode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Batch-job-not-completing-in-Livy-under-Yarn-mode/m-p/32601#M7986</link>
    <description>&lt;P&gt;I am happy to see you solved your issue. Feel free to mark it as a solution in case others have a similar problem in the future.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Oct 2015 17:23:19 GMT</pubDate>
    <dc:creator>cjervis</dc:creator>
    <dc:date>2015-10-02T17:23:19Z</dc:date>
    <item>
      <title>Batch job not completing in Livy under Yarn mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Batch-job-not-completing-in-Livy-under-Yarn-mode/m-p/32572#M7984</link>
      <description>&lt;P&gt;I noticed the following submiting batch job (jar) in Yarn mode. I am able to submit a jar and seem it is being issued to spark-submit correctly (the logged spark-submit command runs fine without livy context).&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However, after it is done, the status of the batch is as below:&lt;/DIV&gt;&lt;DIV&gt;{"id":0,"&lt;FONT&gt;state":"running&lt;/FONT&gt;","log":["\t diagnostics: N/A","\t ApplicationMaster host: 10.0.0.167","\t ApplicationMaster RPC port: 0","\t queue: default","\t start time: 1443732089755","\t &lt;FONT&gt;final status: SUCCEEDED"&lt;/FONT&gt;,"\t tracking URL: &lt;A href="http://headnode1.linsparkwasbfix-ssh.d3.internal.cloudapp.net:8088/proxy/application_1443668789912_0010/" target="_blank"&gt;&lt;U&gt;&lt;FONT color="#1155cc"&gt;http://servername&lt;/FONT&gt;&lt;/U&gt;:8088/proxy/application_1443668789912_0010/&lt;/A&gt;&lt;FONT color="#222222"&gt;","\t user: root","15/10/01 20:42:31 INFO Utils: Shutdown hook called","15/10/01 20:42:31 INFO Utils: Deleting directory /tmp/spark-0343eaf9-c8e6-4f85-&lt;/FONT&gt;9200-6d3366851b1e"]}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Livy still thinks the state is running but the log seems to indicate that the job is finished and SUCCEEDED. Any idea what might be happening here?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;Also once batch is in that state and I issue a delete, it will hang for a bit and then give the following timeout response.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;lt; HTTP/1.1 504 Gateway Timeout&lt;BR /&gt;&amp;lt; Date: Thu, 01 Oct 2015 20:54:58 GMT&lt;BR /&gt;&amp;lt; Content-Type: application/json; charset=UTF-8&lt;BR /&gt;&amp;lt; Content-Length: 15&lt;BR /&gt;&amp;lt; Server: Jetty(9.2.z-SNAPSHOT)&lt;SPAN class="im"&gt;&lt;BR /&gt;&lt;FONT color="#500050"&gt;&amp;lt;&lt;BR /&gt;* Connection #0 to host headnode0 left intact&lt;BR /&gt;&lt;/FONT&gt;&lt;/SPAN&gt;* Closing connection #0&lt;BR /&gt;Gateway timeout&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks&lt;/DIV&gt;&lt;DIV&gt;Lin&lt;/DIV&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:42:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Batch-job-not-completing-in-Livy-under-Yarn-mode/m-p/32572#M7984</guid>
      <dc:creator>linchan</dc:creator>
      <dc:date>2022-09-16T09:42:28Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job not completing in Livy under Yarn mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Batch-job-not-completing-in-Livy-under-Yarn-mode/m-p/32600#M7985</link>
      <description>&lt;P&gt;Never mind, found the problem. When I setup the HADOOP_CONF_DIR, I didn't put a trailing /. As a result, Livy is not finding the right Yarn port to talk to and get the application status.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be nice if the code can handle both the case where trailing / is present or not present.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Lin&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 17:18:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Batch-job-not-completing-in-Livy-under-Yarn-mode/m-p/32600#M7985</guid>
      <dc:creator>linchan</dc:creator>
      <dc:date>2015-10-02T17:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Batch job not completing in Livy under Yarn mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Batch-job-not-completing-in-Livy-under-Yarn-mode/m-p/32601#M7986</link>
      <description>&lt;P&gt;I am happy to see you solved your issue. Feel free to mark it as a solution in case others have a similar problem in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Oct 2015 17:23:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Batch-job-not-completing-in-Livy-under-Yarn-mode/m-p/32601#M7986</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2015-10-02T17:23:19Z</dc:date>
    </item>
  </channel>
</rss>

