spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zoltán Zvara (JIRA) <>
Subject [jira] [Commented] (SPARK-7504) NullPointerException when initializing SparkContext in YARN-cluster mode
Date Mon, 11 May 2015 18:15:00 GMT


Zoltán Zvara commented on SPARK-7504:

You are making a point. I will extend my solution to throw an error message earlier.

> NullPointerException when initializing SparkContext in YARN-cluster mode
> ------------------------------------------------------------------------
>                 Key: SPARK-7504
>                 URL:
>             Project: Spark
>          Issue Type: Bug
>          Components: Deploy, YARN
>            Reporter: Zoltán Zvara
>              Labels: deployment, yarn, yarn-client
> It is not clear for most users that, while running Spark on YARN a {{SparkContext}} with
a given execution plan can be run locally as {{yarn-client}}, but can not deploy itself to
the cluster. This is currently performed using {{org.apache.spark.deploy.yarn.Client}}. {color:gray}
I think we should support deployment through {{SparkContext}}, but this is not the point I
wish to make here. {color}
> Configuring a {{SparkContext}} to deploy itself currently will yield an {{ERROR}} while
accessing {{}} in  {{YarnClusterSchedulerBackend}}, and after that a {{NullPointerException}}
while referencing the {{ApplicationMaster}} instance.
> Spark should clearly inform the user that it might be running in {{yarn-cluster}} mode
without a proper submission using {{Client}} and that deploying is not supported directly
from {{SparkContext}}.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message