GitHub user harishreedharan opened a pull request:

    https://github.com/apache/spark/pull/9174

    [SPARK-11201] [YARN] Make sure SPARK_YARN_MODE is set before SparkHad…

    …oopUtil.get is called.
    
    If `StreamingContext.getOrCreate` is used in `yarn-client` mode, a 
`ClassCastException` gets thrown when `Client.scala` is initialized and 
`YarnSparkHadoopUtil.get` is called. This fails because the 
`SparkHadoopUtil.get` method is called in the `getOrCreate` method default 
argument, before SPARK_YARN_MODE is set.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/harishreedharan/spark streaming-yarn-client

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/9174.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #9174
    
----
commit 4a48bf02706e703fca6a4047f9b68ba67f816706
Author: Hari Shreedharan <[email protected]>
Date:   2015-10-20T05:58:11Z

    [SPARK-11201] [YARN] Make sure SPARK_YARN_MODE is set before 
SparkHadoopUtil.get is called.
    
    If `StreamingContext.getOrCreate` is used in `yarn-client` mode, a 
`ClassCastException` gets thrown when `Client.scala` is initialized and 
`YarnSparkHadoopUtil.get` is called. This fails because the 
`SparkHadoopUtil.get` method is called in the `getOrCreate` method default 
argument, before SPARK_YARN_MODE is set.

----


---
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]

Reply via email to