GitHub user vanzin opened a pull request:

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

    [SPARK-8302] Support heterogeneous cluster install paths on YARN.

    Some users have Hadoop installations on different paths across
    their cluster. Currently, that makes it hard to set up some
    configuration in Spark since that requires hardcoding paths to
    jar files or native libraries, which wouldn't work on such a cluster.
    
    This change introduces a couple of YARN-specific configurations
    that instruct the backend to replace certain paths when launching
    remote processes. That way, if the configuration says the Spark
    jar is in "/spark/spark.jar", and also says that "/spark" should be
    replaced with "{{SPARK_INSTALL_DIR}}", YARN will start containers
    in the NMs with "{{SPARK_INSTALL_DIR}}/spark.jar" as the location
    of the jar.
    
    Coupled with YARN's environment whitelist (which allows certain
    env variables to be exposed to containers), this allows users to
    support such heterogeneous environments, as long as a single
    replacement is enough. (Otherwise, this feature would need to be
    extended to support multiple path replacements.)

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

    $ git pull https://github.com/vanzin/spark SPARK-8302

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

    https://github.com/apache/spark/pull/6752.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 #6752
    
----
commit a5e1f6884cbb4e39f59916d4d0a7c4fe5078845e
Author: Marcelo Vanzin <[email protected]>
Date:   2015-06-01T18:02:52Z

    [SPARK-8302] Support heterogeneous cluster install paths on YARN.
    
    Some users have Hadoop installations on different paths across
    their cluster. Currently, that makes it hard to set up some
    configuration in Spark since that requires hardcoding paths to
    jar files or native libraries, which wouldn't work on such a cluster.
    
    This change introduces a couple of YARN-specific configurations
    that instruct the backend to replace certain paths when launching
    remote processes. That way, if the configuration says the Spark
    jar is in "/spark/spark.jar", and also says that "/spark" should be
    replaced with "{{SPARK_INSTALL_DIR}}", YARN will start containers
    in the NMs with "{{SPARK_INSTALL_DIR}}/spark.jar" as the location
    of the jar.
    
    Coupled with YARN's environment whitelist (which allows certain
    env variables to be exposed to containers), this allows users to
    support such heterogeneous environments, as long as a single
    replacement is enough. (Otherwise, this feature would need to be
    extended to support multiple path replacements.)

----


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