<?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: INFO yarn.ApplicationMaster: Unregistering ApplicationMaster with FAILED (diag message: Uncaught exception: org.apache.spark.SparkException: Failed to connect to driver!) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/INFO-yarn-ApplicationMaster-Unregistering-ApplicationMaster/m-p/230856#M192703</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/46170/hadoopammireddy.html" nodeid="46170"&gt;@deepak rathod&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is this happening with all the jobs?  For example even with some long running jobs?&lt;/P&gt;&lt;P&gt;Sometimes it can happen when the Spark job finishes fine but too early, But the executors are still trying to contact driver, Hence ultimately yarn declares the job as failed since executors could not connect.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;It can also happen if there is a Firewall (Network issue) if some ports are blocked. So you might want to check if the ports are accessible properly or not? Mostly the port are chosen at random in spark, but you may try setting spark.driver.port to see if it is accessible remotely and helps. For other ports please refer to: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;A href="http://spark.apache.org/docs/latest/security.html#configuring-ports-for-network-security" target="_blank"&gt;http://spark.apache.org/docs/latest/security.html#configuring-ports-for-network-security&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://spark.apache.org/docs/latest/configuration.html#networking" target="_blank"&gt;http://spark.apache.org/docs/latest/configuration.html#networking&lt;/A&gt; &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
    <pubDate>Fri, 20 Oct 2017 14:04:05 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2017-10-20T14:04:05Z</dc:date>
  </channel>
</rss>

