[ 
https://issues.apache.org/jira/browse/SPARK-6539?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sean Owen updated SPARK-6539:
-----------------------------
    Priority: Minor  (was: Major)

It's weird that the JVM is consuming so much virtual memory there. I am not 
sure why. It shouldn't require a bunch of flags to get around that but maybe 
it's specific to the workload or config you're running? Anyway, yeah that's why 
the container died quickly.

I think the question is just failing in a better way here. {{SparkException}} 
is better although I'm still not totally sure what the code path is here that 
leads to a null environment during construction. I mean, env can be checked for 
null in many places, and maybe that's an OK band-aid, but I'd love to know why 
this can occur.

> SparkContext throws NullPointerException
> ----------------------------------------
>
>                 Key: SPARK-6539
>                 URL: https://issues.apache.org/jira/browse/SPARK-6539
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 1.3.0
>         Environment: Spark built using the folllowing:
> {code}
> ./make-distribution.sh --tgz -Pyarn -Phadoop-2.2 -Dhadoop.version=2.2.0 
> -DskipTests
> {code}
> Targeting Pivotal HD 2.1 (Hadoop 2.2) cluster with the nodes running JDK 8u40
>            Reporter: davep
>            Priority: Minor
>
> The following snippet of the client driver will throw a NullPointerException 
> when trying to create a SparkContext
> {code:java}
> SparkConf conf = new SparkConf().setAppName(appName).setMaster("yarn-client");
> JavaSparkContext sc = new JavaSparkContext(conf);
> {code}
> The exception is thrown when trying to create the block manager source here:
> https://github.com/apache/spark/blob/branch-1.3/core/src/main/scala/org/apache/spark/SparkContext.scala#L544
> If I compile the client driver with JDK7 or JDK8 it throws the same 
> exception. Changing the JDK on the Hadoop cluster to v7 resolves this issue.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to