You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Jaeboo Jeong (JIRA)" <ji...@apache.org> on 2018/03/24 01:26:00 UTC

[jira] [Updated] (YARN-6434) When setting environment variables, can't use comma for a list of value in key = value pairs.

     [ https://issues.apache.org/jira/browse/YARN-6434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jaeboo Jeong updated YARN-6434:
-------------------------------
    Attachment: YARN-6434-trunk.001.patch

> When setting environment variables, can't use comma for a list of value in key = value pairs.
> ---------------------------------------------------------------------------------------------
>
>                 Key: YARN-6434
>                 URL: https://issues.apache.org/jira/browse/YARN-6434
>             Project: Hadoop YARN
>          Issue Type: Improvement
>            Reporter: Jaeboo Jeong
>            Priority: Major
>         Attachments: YARN-6434-trunk.001.patch, YARN-6434.001.patch
>
>
> We can set environment variables using yarn.app.mapreduce.am.env, mapreduce.map.env, mapreduce.reduce.env.
> There is no problem if we use key=value pairs like X=Y, X=$Y.
> However If we want to set key=a list of value pair(e.g. X=Y,Z), we can’t.
> This is related to YARN-4595.
> The attached patch is based on YARN-3768.
> We can set environment variables like below.
> {code}
> mapreduce.map.env="YARN_CONTAINER_RUNTIME_TYPE=docker,YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=hadoop-docker,YARN_CONTAINER_RUNTIME_DOCKER_LOCAL_RESOURCE_MOUNTS=\"/dir1:/targetdir1,/dir2:/targetdir2\""
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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