Github user zjffdu commented on the pull request:
https://github.com/apache/spark/pull/8649#issuecomment-138411720
Paste the new exception after this patch.
```
15/09/08 10:05:52 ERROR SparkContext: Error initializing SparkContext.
org.apache.spark.SparkException: Could not find jar with spark-yarn related
code,Make sure SPARK_PREPEND_CLASSES is not set
at
org.apache.spark.deploy.yarn.Client$$anonfun$org$apache$spark$deploy$yarn$Client$$sparkJar$2.apply(Client.scala:1048)
at
org.apache.spark.deploy.yarn.Client$$anonfun$org$apache$spark$deploy$yarn$Client$$sparkJar$2.apply(Client.scala:1048)
at scala.Option.getOrElse(Option.scala:120)
at
org.apache.spark.deploy.yarn.Client$.org$apache$spark$deploy$yarn$Client$$sparkJar(Client.scala:1048)
at
org.apache.spark.deploy.yarn.Client$.populateClasspath(Client.scala:1160)
at org.apache.spark.deploy.yarn.Client.setupLaunchEnv(Client.scala:534)
at
org.apache.spark.deploy.yarn.Client.createContainerLaunchContext(Client.scala:645)
at
org.apache.spark.deploy.yarn.Client.submitApplication(Client.scala:119)
at
org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.start(YarnClientSchedulerBackend.scala:56)
at
org.apache.spark.scheduler.TaskSchedulerImpl.start(TaskSchedulerImpl.scala:144)
at org.apache.spark.SparkContext.<init>(SparkContext.scala:514)
at com.zjffdu.tutorial.spark.WordCount$.main(WordCount.scala:24)
at com.zjffdu.tutorial.spark.WordCount.main(WordCount.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at
org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:680)
at
org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
```
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]