[ https://issues.apache.org/jira/browse/YARN-6434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16436084#comment-16436084 ]
Jim Brennan commented on YARN-6434: ----------------------------------- This issue was resolved in a different way in MAPREDUCE-7069. You can now specify variables that have commas in them individually, e.g., {{mapreduce.map.env.VARNAME=value}}. > 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-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org