GitHub user chtyim opened a pull request:

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

    [SPARK-13441] [YARN] Fix NPE in yarn Client.createConfArchive method

    ## What changes were proposed in this pull request?
    
    Instead of using result of File.listFiles() directly, which may throw NPE, 
check for null first. If it is null, log a warning instead
    
    ## How was the this patch tested?
    
    Ran the ./dev/run-tests locally
    Tested manually on a cluster
    


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

    $ git pull https://github.com/chtyim/spark fixes/SPARK-13441-null-check

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

    https://github.com/apache/spark/pull/11337.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 #11337
    
----
commit a8fb7cb0be0588d4c31a1fc24c3473ef39562be5
Author: Terence Yim <[email protected]>
Date:   2016-02-24T00:27:48Z

    [SPARK-13441] [YARN] Fix NPE in yarn Client.createConfArchive method
    
    - Log a warning instead of throwing NPE if either
      $HADOOP_CONF_DIR or $YARN_CONF_DIR is not accessible.

----


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