<?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: Issue running spark application in Yarn-cluster mode in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44601#M39219</link>
    <description>&lt;P&gt;Thanks, it did fix the issue. &amp;nbsp; Got rid of the variable from the code, &amp;nbsp;I am able to execute it in cluster mode.&lt;/P&gt;</description>
    <pubDate>Wed, 31 Aug 2016 19:20:58 GMT</pubDate>
    <dc:creator>Nishit</dc:creator>
    <dc:date>2016-08-31T19:20:58Z</dc:date>
    <item>
      <title>Issue running spark application in Yarn-cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44570#M39215</link>
      <description>&lt;P&gt;CDH 5.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am running my spark streaming application using spark-submit on yarn-cluster. When I run it on local mode it is working fine. But when I try to run it on yarn-cluster using spark-submit, it runs for some time and then exits with following execption&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$spark-submit --master yarn --deploy-mode cluster network_wordcount.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SLF4J: Class path contains multiple SLF4J bindings.&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.4.8-1.cdh5.4.8.p0.4/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.4.8-1.cdh5.4.8.p0.4/jars/avro-tools-1.7.6-cdh5.4.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]&lt;BR /&gt;SLF4J: See &lt;A href="http://www.slf4j.org/codes.html#multiple_bindings" target="_blank"&gt;http://www.slf4j.org/codes.html#multiple_bindings&lt;/A&gt; for an explanation.&lt;BR /&gt;SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]&lt;BR /&gt;16/08/30 21:59:34 INFO RMProxy: Connecting to ResourceManager at is-hadoop1nb.gwl.com/143.199.102.180:8032&lt;BR /&gt;16/08/30 21:59:34 INFO Client: Requesting a new application from cluster with 3 NodeManagers&lt;BR /&gt;16/08/30 21:59:34 INFO Client: Verifying our application has not requested more than the maximum memory capability of the cluster (29696 MB per container)&lt;BR /&gt;16/08/30 21:59:34 INFO Client: Will allocate AM container, with 896 MB memory including 384 MB overhead&lt;BR /&gt;16/08/30 21:59:34 INFO Client: Setting up container launch context for our AM&lt;BR /&gt;16/08/30 21:59:34 INFO Client: Preparing resources for our AM container&lt;BR /&gt;16/08/30 21:59:35 INFO Client: Uploading resource file:/home/hdadmin/junk/network_wordcount.py -&amp;gt; hdfs://is-hadoop2nb.gwl.com:8020/user/hdadmin/.sparkStaging/application_1472577335755_0020/network_wordcount.py&lt;BR /&gt;16/08/30 21:59:35 INFO Client: Setting up the launch environment for our AM container&lt;BR /&gt;16/08/30 21:59:35 INFO SecurityManager: Changing view acls to: hdadmin&lt;BR /&gt;16/08/30 21:59:35 INFO SecurityManager: Changing modify acls to: hdadmin&lt;BR /&gt;16/08/30 21:59:35 INFO SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(hdadmin); users with modify permissions: Set(hdadmin)&lt;BR /&gt;16/08/30 21:59:35 INFO Client: Submitting application 20 to ResourceManager&lt;BR /&gt;16/08/30 21:59:35 INFO YarnClientImpl: Submitted application application_1472577335755_0020&lt;BR /&gt;16/08/30 21:59:36 INFO Client: Application report for application_1472577335755_0020 (state: ACCEPTED)&lt;BR /&gt;16/08/30 21:59:36 INFO Client:&lt;BR /&gt;client token: N/A&lt;BR /&gt;diagnostics: N/A&lt;BR /&gt;ApplicationMaster host: N/A&lt;BR /&gt;ApplicationMaster RPC port: -1&lt;BR /&gt;queue: root.hdadmin&lt;BR /&gt;start time: 1472615975456&lt;BR /&gt;final status: UNDEFINED&lt;BR /&gt;tracking URL: &lt;A href="http://is-hadoop1nb.gwl.com:8088/proxy/application_1472577335755_0020/" target="_blank"&gt;http://is-hadoop1nb.gwl.com:8088/proxy/application_1472577335755_0020/&lt;/A&gt;&lt;BR /&gt;user: hdadmin&lt;BR /&gt;16/08/30 21:59:37 INFO Client: Application report for application_1472577335755_0020 (state: ACCEPTED)&lt;BR /&gt;16/08/30 21:59:38 INFO Client: Application report for application_1472577335755_0020 (state: ACCEPTED)&lt;BR /&gt;16/08/30 21:59:39 INFO Client: Application report for application_1472577335755_0020 (state: ACCEPTED)&lt;BR /&gt;16/08/30 21:59:40 INFO Client: Application report for application_1472577335755_0020 (state: ACCEPTED)&lt;BR /&gt;16/08/30 21:59:41 INFO Client: Application report for application_1472577335755_0020 (state: ACCEPTED)&lt;BR /&gt;16/08/30 21:59:42 INFO Client: Application report for application_1472577335755_0020 (state: FAILED)&lt;BR /&gt;16/08/30 21:59:42 INFO Client:&lt;BR /&gt;client token: N/A&lt;BR /&gt;diagnostics: Application application_1472577335755_0020 failed 2 times due to AM Container for appattempt_1472577335755_0020_000002 exited with exitCode: 1&lt;BR /&gt;For more detailed output, check application tracking page:&lt;A href="http://is-hadoop1nb.gwl.com:8088/proxy/application_1472577335755_0020/Then" target="_blank"&gt;http://is-hadoop1nb.gwl.com:8088/proxy/application_1472577335755_0020/Then&lt;/A&gt;, click on links to logs of each attempt.&lt;BR /&gt;Diagnostics: Exception from container-launch.&lt;BR /&gt;Container id: container_1472577335755_0020_02_000001&lt;BR /&gt;Exit code: 1&lt;BR /&gt;Stack trace: ExitCodeException exitCode=1:&lt;BR /&gt;at org.apache.hadoop.util.Shell.runCommand(Shell.java:543)&lt;BR /&gt;at org.apache.hadoop.util.Shell.run(Shell.java:460)&lt;BR /&gt;at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:720)&lt;BR /&gt;at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)&lt;BR /&gt;at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)&lt;BR /&gt;at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)&lt;BR /&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:745)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Container exited with a non-zero exit code 1&lt;BR /&gt;Failing this attempt. Failing the application.&lt;BR /&gt;ApplicationMaster host: N/A&lt;BR /&gt;ApplicationMaster RPC port: -1&lt;BR /&gt;queue: root.hdadmin&lt;BR /&gt;start time: 1472615975456&lt;BR /&gt;final status: FAILED&lt;BR /&gt;tracking URL: &lt;A href="http://is-hadoop1nb.gwl.com:8088/cluster/app/application_1472577335755_0020" target="_blank"&gt;http://is-hadoop1nb.gwl.com:8088/cluster/app/application_1472577335755_0020&lt;/A&gt;&lt;BR /&gt;user: hdadmin&lt;BR /&gt;Exception in thread "main" org.apache.spark.SparkException: Application finished with failed status&lt;BR /&gt;at org.apache.spark.deploy.yarn.Client.run(Client.scala:656)&lt;BR /&gt;at org.apache.spark.deploy.yarn.Client$.main(Client.scala:681)&lt;BR /&gt;at org.apache.spark.deploy.yarn.Client.main(Client.scala)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:606)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:569)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:166)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:189)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:110)&lt;BR /&gt;at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Diagnostics:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;Application application_1472577335755_0020 failed 2 times due to AM Container for appattempt_1472577335755_0020_000002 exited with exitCode: 1&lt;/DIV&gt;&lt;DIV&gt;For more detailed output, check application tracking page:&lt;A href="http://is-hadoop1nb.gwl.com:8088/proxy/application_1472577335755_0020/Then" target="_blank"&gt;http://is-hadoop1nb.gwl.com:8088/proxy/application_1472577335755_0020/Then&lt;/A&gt;, click on links to logs of each attempt.&lt;/DIV&gt;&lt;DIV&gt;Diagnostics: Exception from container-launch.&lt;/DIV&gt;&lt;DIV&gt;Container id: container_1472577335755_0020_02_000001&lt;/DIV&gt;&lt;DIV&gt;Exit code: 1&lt;/DIV&gt;&lt;DIV&gt;Stack trace: ExitCodeException exitCode=1:&lt;/DIV&gt;&lt;DIV&gt;at org.apache.hadoop.util.Shell.runCommand(Shell.java:543)&lt;/DIV&gt;&lt;DIV&gt;at org.apache.hadoop.util.Shell.run(Shell.java:460)&lt;/DIV&gt;&lt;DIV&gt;at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:720)&lt;/DIV&gt;&lt;DIV&gt;at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:211)&lt;/DIV&gt;&lt;DIV&gt;at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:302)&lt;/DIV&gt;&lt;DIV&gt;at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)&lt;/DIV&gt;&lt;DIV&gt;at java.util.concurrent.FutureTask.run(FutureTask.java:262)&lt;/DIV&gt;&lt;DIV&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)&lt;/DIV&gt;&lt;DIV&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)&lt;/DIV&gt;&lt;DIV&gt;at java.lang.Thread.run(Thread.java:745)&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Container exited with a non-zero exit code 1&lt;/DIV&gt;&lt;DIV&gt;Failing this attempt. Failing the application.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log Type: stderr&lt;/P&gt;&lt;P&gt;Log Upload Time: Tue Aug 30 22:10:01 -0600 2016&lt;/P&gt;&lt;P&gt;Log Length: 1803&lt;/P&gt;&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.4.8-1.cdh5.4.8.p0.4/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.4.8-1.cdh5.4.8.p0.4/jars/avro-tools-1.7.6-cdh5.4.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
16/08/30 22:09:54 INFO yarn.ApplicationMaster: Registered signal handlers for [TERM, HUP, INT]
16/08/30 22:09:55 INFO yarn.ApplicationMaster: ApplicationAttemptId: appattempt_1472577335755_0022_000001
16/08/30 22:09:55 INFO spark.SecurityManager: Changing view acls to: yarn,hdadmin
16/08/30 22:09:55 INFO spark.SecurityManager: Changing modify acls to: yarn,hdadmin
16/08/30 22:09:55 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(yarn, hdadmin); users with modify permissions: Set(yarn, hdadmin)
16/08/30 22:09:55 INFO yarn.ApplicationMaster: Starting the user application in a separate Thread
16/08/30 22:09:55 INFO yarn.ApplicationMaster: Waiting for spark context initialization
16/08/30 22:09:55 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/08/30 22:09:56 INFO yarn.ApplicationMaster: Final app status: SUCCEEDED, exitCode: 0, (reason: Shutdown hook called before final status was reported.)
16/08/30 22:09:56 INFO yarn.ApplicationMaster: Unregistering ApplicationMaster with SUCCEEDED (diag message: Shutdown hook called before final status was reported.)
16/08/30 22:09:56 INFO yarn.ApplicationMaster: Deleting staging directory .sparkStaging/application_1472577335755_0022&lt;/PRE&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;Log Type: stdout&lt;/P&gt;&lt;P&gt;Log Upload Time: Tue Aug 30 22:10:01 -0600 2016&lt;/P&gt;&lt;P&gt;Log Length: 176&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.4.8-1.cdh5.4.8.p0.4/jars/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-5.4.8-1.cdh5.4.8.p0.4/jars/avro-tools-1.7.6-cdh5.4.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
16/08/30 22:09:54 INFO yarn.ApplicationMaster: Registered signal handlers for [TERM, HUP, INT]
16/08/30 22:09:55 INFO yarn.ApplicationMaster: ApplicationAttemptId: appattempt_1472577335755_0022_000001
16/08/30 22:09:55 INFO spark.SecurityManager: Changing view acls to: yarn,hdadmin
16/08/30 22:09:55 INFO spark.SecurityManager: Changing modify acls to: yarn,hdadmin
16/08/30 22:09:55 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users with view permissions: Set(yarn, hdadmin); users with modify permissions: Set(yarn, hdadmin)
16/08/30 22:09:55 INFO yarn.ApplicationMaster: Starting the user application in a separate Thread
16/08/30 22:09:55 INFO yarn.ApplicationMaster: Waiting for spark context initialization
16/08/30 22:09:55 INFO yarn.ApplicationMaster: Waiting for spark context initialization ... 
16/08/30 22:09:56 INFO yarn.ApplicationMaster: Final app status: SUCCEEDED, exitCode: 0, (reason: Shutdown hook called before final status was reported.)
16/08/30 22:09:56 INFO yarn.ApplicationMaster: Unregistering ApplicationMaster with SUCCEEDED (diag message: Shutdown hook called before final status was reported.)
16/08/30 22:09:56 INFO yarn.ApplicationMaster: Deleting staging directory .sparkStaging/application_1472577335755_0022&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "network_wordcount.py", line 6, in &amp;lt;module&amp;gt;
    sc = SparkContext(master, "NetworkWordCount")
NameError: name 'master' is not defined&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any clue? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:37:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44570#M39215</guid>
      <dc:creator>Nishit</dc:creator>
      <dc:date>2022-09-16T10:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running spark application in Yarn-cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44571#M39216</link>
      <description>&lt;P&gt;The valuable information is at very bottom:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;NameError: name 'master' is not defined&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please make sure you have defined variable "master" in your code. Or if you are specifying master via spark-submit, you should not set it in&amp;nbsp;code.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 05:22:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44571#M39216</guid>
      <dc:creator>_Umesh</dc:creator>
      <dc:date>2016-08-31T05:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running spark application in Yarn-cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44588#M39217</link>
      <description>&lt;P&gt;Thanks Umesh. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Doesnt it ('master') get defined when executed with a command line like below?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$spark-submit --master yarn --deploy-mode cluster network_wordcount.py&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reason i dont have defined variable (master) in the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 13:34:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44588#M39217</guid>
      <dc:creator>Nishit</dc:creator>
      <dc:date>2016-08-31T13:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running spark application in Yarn-cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44590#M39218</link>
      <description>&lt;P&gt;No, I've never seen such a variable defined by Spark. You can probably look up "spark.master" in the SparkConf. But you don't need to query it in order to make a SparkContext in your app. It looks like you might have modified a standard Spark example, in which case just undo those changes.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 13:47:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44590#M39218</guid>
      <dc:creator>srowen</dc:creator>
      <dc:date>2016-08-31T13:47:12Z</dc:date>
    </item>
    <item>
      <title>Re: Issue running spark application in Yarn-cluster mode</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44601#M39219</link>
      <description>&lt;P&gt;Thanks, it did fix the issue. &amp;nbsp; Got rid of the variable from the code, &amp;nbsp;I am able to execute it in cluster mode.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 19:20:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Issue-running-spark-application-in-Yarn-cluster-mode/m-p/44601#M39219</guid>
      <dc:creator>Nishit</dc:creator>
      <dc:date>2016-08-31T19:20:58Z</dc:date>
    </item>
  </channel>
</rss>

