GitHub user marsishandsome opened a pull request:

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

    [SPARK-6491] Spark will put the current working dir to the CLASSPATH

    When running "bin/computer-classpath.sh", the output will be:
    
:/spark/conf:/spark/assembly/target/scala-2.10/spark-assembly-1.3.0-hadoop2.5.0-cdh5.2.0.jar:/spark/lib_managed/jars/datanucleus-rdbms-3.2.9.jar:/spark/lib_managed/jars/datanucleus-api-jdo-3.2.6.jar:/spark/lib_managed/jars/datanucleus-core-3.2.10.jar
    Java will add the current working dir to the CLASSPATH, if the first ":" 
exists, which is not expected by spark users.
    For example, if I call spark-shell in the folder /root. And there exists a 
"core-site.xml" under /root/. Spark will use this file as HADOOP CONF file, 
even if I have already set HADOOP_CONF_DIR=/etc/hadoop/conf.

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

    $ git pull https://github.com/marsishandsome/spark Spark6491

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

    https://github.com/apache/spark/pull/5156.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 #5156
    
----
commit 35c25d483b7e2f8cd7568e8e089da70b4a667122
Author: guliangliang <[email protected]>
Date:   2015-03-24T06:48:16Z

    [SPARK-6491] Spark will put the current working dir to the CLASSPATH

----


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