<?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 SparkContext did not initialize after waiting for 100000 ms in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkContext-did-not-initialize-after-waiting-for-100000-ms/m-p/227365#M70238</link>
    <description>&lt;P&gt;I am trying to run a spark app in hdp cluster.
My app keeps failing on: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;ERROR ApplicationMaster: SparkContext did not initialize after waiting for 100000 ms. Please check earlier log output for errors. Failing the application.
&lt;/PRE&gt;&lt;BR /&gt;In the previous lines the only error (which I see a few times in the log) is:
&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt; WARN DataSource: Error while looking for metadata directory.
&lt;/PRE&gt;&lt;BR /&gt;Any ideas?</description>
    <pubDate>Wed, 25 Oct 2017 15:12:41 GMT</pubDate>
    <dc:creator>yogen</dc:creator>
    <dc:date>2017-10-25T15:12:41Z</dc:date>
    <item>
      <title>SparkContext did not initialize after waiting for 100000 ms</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkContext-did-not-initialize-after-waiting-for-100000-ms/m-p/227365#M70238</link>
      <description>&lt;P&gt;I am trying to run a spark app in hdp cluster.
My app keeps failing on: &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;ERROR ApplicationMaster: SparkContext did not initialize after waiting for 100000 ms. Please check earlier log output for errors. Failing the application.
&lt;/PRE&gt;&lt;BR /&gt;In the previous lines the only error (which I see a few times in the log) is:
&lt;BR /&gt;&lt;BR /&gt;&lt;PRE&gt; WARN DataSource: Error while looking for metadata directory.
&lt;/PRE&gt;&lt;BR /&gt;Any ideas?</description>
      <pubDate>Wed, 25 Oct 2017 15:12:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkContext-did-not-initialize-after-waiting-for-100000-ms/m-p/227365#M70238</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-25T15:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: SparkContext did not initialize after waiting for 100000 ms</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkContext-did-not-initialize-after-waiting-for-100000-ms/m-p/227366#M70239</link>
      <description>&lt;P&gt;Found the issue. Turns out that since I run my spark application with &lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;--master yarn &lt;/PRE&gt;I should remove this part from the SparkSession builder:&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;.master(masterUrl)&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 Oct 2017 21:24:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/SparkContext-did-not-initialize-after-waiting-for-100000-ms/m-p/227366#M70239</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-25T21:24:07Z</dc:date>
    </item>
  </channel>
</rss>

