[
https://issues.apache.org/jira/browse/SPARK-9515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Sean Owen resolved SPARK-9515.
------------------------------
Resolution: Invalid
Yes I think one of the problem is that you aren't using spark-submit. You
haven't shown code or said more about why you're not using spark-submit. This
is not a valid JIRA; it doesn't completely describe a problem or solution.
> Creating JavaSparkContext throws NPE
> ------------------------------------
>
> Key: SPARK-9515
> URL: https://issues.apache.org/jira/browse/SPARK-9515
> Project: Spark
> Issue Type: Bug
> Components: Java API
> Affects Versions: 1.3.1
> Reporter: nirav patel
>
> I have spark application that runs agains YARN cluster. I run spark
> application as part of my web application. I can't use spark-submit script.
> Way I run it is `java -cp myApp.jar com.myapp.Application` which in turn
> initiate JavaSparkContext. It used to work with spark 1.0.2 and standalone
> cluster but now with 1.3.1 and yarn its failing.
> Caused by: java.lang.NullPointerException
> at
> org.apache.spark.deploy.yarn.ApplicationMaster$.sparkContextInitialized(ApplicationMaster.scala:580)
> at
> org.apache.spark.scheduler.cluster.YarnClusterScheduler.postStartHook(YarnClusterScheduler.scala:32)
> at org.apache.spark.SparkContext.<init>(SparkContext.scala:541)
> at
> org.apache.spark.api.java.JavaSparkContext.<init>(JavaSparkContext.scala:61)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]