Description
YARN-6830 describes a problem where environment variables that contain commas cannot be specified via -Dmapreduce.map.env.
For example:
-Dmapreduce.map.env="MODE=bar,IMAGE_NAME=foo,MOUNTS=/tmp/foo,/tmp/bar"
will set MOUNTS to /tmp/foo
In that Jira, aw suggested that we change the API to provide a way to specify environment variables individually, the same way that Spark does.
Rather than fight with a regex why not redefine the API instead?
-Dmapreduce.map.env.MODE=bar
-Dmapreduce.map.env.IMAGE_NAME=foo
-Dmapreduce.map.env.MOUNTS=/tmp/foo,/tmp/bar...
e.g, mapreduce.map.env.[foo]=bar gets turned into foo=bar
This greatly simplifies the input validation needed and makes it clear what is actually being defined.
The mapreduce properties were dealt with in MAPREDUCE-7069. This Jira will address the YARN properties.
Attachments
Attachments
Issue Links
- is related to
-
YARN-9906 When setting multi volumes throurh the "YARN_CONTAINER_RUNTIME_DOCKER_MOUNTS" setting is not valid
- Resolved
- relates to
-
YARN-8029 YARN_CONTAINER_RUNTIME_DOCKER_MOUNTS should not use commas as separators
- Resolved
-
YARN-6830 Support quoted strings for environment variables
- Resolved
-
MAPREDUCE-7069 Add ability to specify user environment variables individually
- Resolved