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 2017/11/01 21:30:00 UTC

[jira] [Commented] (SPARK-22414) Can't set driver env variables on yarn

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

Marcelo Vanzin commented on SPARK-22414:
----------------------------------------

Have you tried {{spark.yarn.appMasterEnv.FOO}}? Pretty sure that's used for the AM in both client and cluster (= driver) mode.

> Can't set driver env variables on yarn
> --------------------------------------
>
>                 Key: SPARK-22414
>                 URL: https://issues.apache.org/jira/browse/SPARK-22414
>             Project: Spark
>          Issue Type: Bug
>          Components: Deploy
>    Affects Versions: 2.2.0
>            Reporter: Flavio Brasil
>
> We're trying to upgrade to 2.2.0 from 2.1.0 at Twitter but it seems that there's no way to set the JAVA_HOME for the driver running on the yarn am.
> https://issues.apache.org/jira/browse/SPARK-17979 removed the environment variable SPARK_YARN_USER_ENV, but provided no alternative to set env variables for the driver since `spark.executorEnv` is only for executors.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

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