GitHub user andrewor14 opened a pull request:

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

    [SPARK-1838] Spark on YARN throws exception for local mode

    The following happens:
    ```
    Caused by: java.lang.Exception: Yarn Local dirs can't be empty
        at 
org.apache.spark.executor.Executor.getYarnLocalDirs(Executor.scala:133)
        at org.apache.spark.executor.Executor.<init>(Executor.scala:68)
    ```
    
    However, the environment variable `YARN_LOCAL_DIRS` isn't even used for 
local mode. This PR ensures that the exception is not thrown for this mode.

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

    $ git pull https://github.com/andrewor14/spark yarn-local

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

    https://github.com/apache/spark/pull/779.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 #779
    
----
commit 5b0c58a49b60ff7e01ee12aa14d6ce487005377c
Author: Andrew Or <[email protected]>
Date:   2014-05-14T22:57:09Z

    Do not throw exception if YARN_LOCAL_DIRS is not set for local mode

----


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

Reply via email to