<?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: Not able to run the sample PI program in YARN cluster mode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137395#M19130</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1660/darpanbe.html" nodeid="1660"&gt;@Darpan Patel&lt;/A&gt; go to the job history, drill down to the logs of the task attempt and you should see the result.&lt;/P&gt;</description>
    <pubDate>Thu, 11 Feb 2016 19:40:38 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-02-11T19:40:38Z</dc:date>
    <item>
      <title>Not able to run the sample PI program in YARN cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137392#M19127</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;I am trying to run the spark PI example on the Hortonworks cluster. I could run this successfully in the local mode and in the yarn client mode . When I try to run it using YARN cluster mode I do not see any out put or error. I am not sure if it is running or is there a bug. Can you please help me understand this behavior?  &lt;/P&gt;&lt;P&gt;Here are the commands I am trying to use.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;spark-submit --class org.apache.spark.examples.SparkPi --master yarn --deploy-mode cluster ../lib/spark-examples*.jar 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also tried with &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;spark-submit --class org.apache.spark.examples.SparkPi --master yarn-cluster ../lib/spark-examples*.jar 10&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(One more question are above both correct ?)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Both the times I see the following console log but not the PI value. ( When I run in local mode or yarn-client mode I see the value of PI printed on the console)&lt;/P&gt;&lt;PRE&gt;16/02/11 11:06:05 WARN Client: spark.yarn.am.extraJavaOptions will not take effect in cluster mode
16/02/11 11:06:05 INFO SecurityManager: Changing view acls to: username
16/02/11 11:06:05 INFO SecurityManager: Changing modify acls to: username
16/02/11 11:06:05 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(username); users with modify permissions: Set(username)
16/02/11 11:06:06 INFO Client: Submitting application 432 to ResourceManager
16/02/11 11:06:06 INFO YarnClientImpl: Submitted application application_1454617624671_0432
16/02/11 11:06:07 INFO Client: Application report for application_1454617624671_0432 (state: ACCEPTED)
16/02/11 11:06:07 INFO Client:
         client token: N/A
         diagnostics: N/A
         ApplicationMaster host: N/A
         ApplicationMaster RPC port: -1
         queue: default
         start time: 1455188766121
         final status: UNDEFINED
         tracking URL: &lt;A href="http://SomeIP:8088/proxy/application_1454617624671_0432/" target="_blank"&gt;http://SomeIP:8088/proxy/application_1454617624671_0432/&lt;/A&gt;
         user: username
..............
16/02/11 11:06:23 INFO Client: Application report for application_1454617624671_0432 (state: FINISHED)
16/02/11 11:06:23 INFO Client:
         client token: N/A
         diagnostics: N/A
         ApplicationMaster host: APP_Master_host_IP
         ApplicationMaster RPC port: 0
         queue: default
         start time: 1455188766121
         final status: SUCCEEDED
         tracking URL: &lt;A href="http://SomeIP:8088/proxy/application_1454617624671_0432/" target="_blank"&gt;http://SomeIP:8088/proxy/application_1454617624671_0432/&lt;/A&gt;
         user: username
16/02/11 11:06:23 INFO ShutdownHookManager: Shutdown hook called
16/02/11 11:06:23 INFO ShutdownHookManager: Deleting directory /tmp/spark-54dc94ab-cf66-4d17-9940-1c31ba7e9850
[username@remoteIP bin]$


&lt;/PRE&gt;</description>
      <pubDate>Thu, 11 Feb 2016 19:30:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137392#M19127</guid>
      <dc:creator>darpan_be</dc:creator>
      <dc:date>2016-02-11T19:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run the sample PI program in YARN cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137393#M19128</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1660/darpanbe.html" nodeid="1660"&gt;@Darpan Patel&lt;/A&gt;&lt;P&gt;The output will be in log file &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 19:34:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137393#M19128</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-11T19:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run the sample PI program in YARN cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137394#M19129</link>
      <description>&lt;P&gt;See this &lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_spark-quickstart/content/run_spark_pi.html"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_spark-quickstart/content/run_spark_pi.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Job output should list the estimated value of pi. In the following example, output was directed to stdout:&lt;/P&gt;&lt;PRE&gt;Log Type: stdout
Log Upload Time: 10-Jun-2015 17:13:33
Log Length: 23 &lt;/PRE&gt;&lt;P&gt;Pi is roughly 3.142532&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 19:38:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137394#M19129</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-11T19:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run the sample PI program in YARN cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137395#M19130</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1660/darpanbe.html" nodeid="1660"&gt;@Darpan Patel&lt;/A&gt; go to the job history, drill down to the logs of the task attempt and you should see the result.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 19:40:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137395#M19130</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-11T19:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run the sample PI program in YARN cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137396#M19131</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 20:03:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137396#M19131</guid>
      <dc:creator>darpan_be</dc:creator>
      <dc:date>2016-02-11T20:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to run the sample PI program in YARN cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137397#M19132</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 11 Feb 2016 20:03:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Not-able-to-run-the-sample-PI-program-in-YARN-cluster-mode/m-p/137397#M19132</guid>
      <dc:creator>darpan_be</dc:creator>
      <dc:date>2016-02-11T20:03:44Z</dc:date>
    </item>
  </channel>
</rss>

