You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Marcelo Vanzin (JIRA)" <ji...@apache.org> on 2015/03/11 16:50:38 UTC

[jira] [Comment Edited] (SPARK-6277) Allow Hadoop configurations and env variables to be referenced in spark-defaults.conf

    [ https://issues.apache.org/jira/browse/SPARK-6277?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14357072#comment-14357072 ] 

Marcelo Vanzin edited comment on SPARK-6277 at 3/11/15 3:49 PM:
----------------------------------------------------------------

Sometimes I do miss being able to reference other configs and/or system properties / env variables from the config. It would allow some interesting use cases, at least from a distribution's point of view.

This should be pretty simple to achieve using the commons-config library, although I'd prefer avoiding the dependency since it would be more friendly to SPARK-4924.


was (Author: vanzin):
Sometimes I do miss being able to reference other configs and/or system properties / env variables from the config. It would allow some interesting use cases, at least from a distribution's point of view.

This should be pretty simple to achieve using the commons-config library, although I'd prefer avoiding the dependency since it would be more friendly to SPARK-4824.

> Allow Hadoop configurations and env variables to be referenced in spark-defaults.conf
> -------------------------------------------------------------------------------------
>
>                 Key: SPARK-6277
>                 URL: https://issues.apache.org/jira/browse/SPARK-6277
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Submit
>    Affects Versions: 1.3.0, 1.2.1
>            Reporter: Jianshi Huang
>
> I need to set spark.local.dir to use user local home instead of /tmp, but currently spark-defaults.conf can only allow constant values.
> What I want to do is to write:
> bq. spark.local.dir /home/${user.name}/spark/tmp
> or
> bq. spark.local.dir /home/${USER}/spark/tmp
> Otherwise I would have to hack bin/spark-class and pass the option through -Dspark.local.dir
> Jianshi



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org