[ https://issues.apache.org/jira/browse/MAPREDUCE-2061?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allen Wittenauer resolved MAPREDUCE-2061. ----------------------------------------- Resolution: Duplicate Duping to a more modern jira. > child environment substitution is broken > ---------------------------------------- > > Key: MAPREDUCE-2061 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-2061 > Project: Hadoop Map/Reduce > Issue Type: Bug > Reporter: Hong Tang > > TaskRunner.getVMEnvironment is still broken in a couple of ways even after > HADOOP-5981: > * It does not recognize ${VAR} notation. This is necessary if we have both > "VAR" and "VAR_1" existent, and it becomes ambiguous whether $VAR_1 means > appending _1 following $VAR, or simply taking the value of $VAR_1 > * It tries to do lazy-binding except for self-referencing like X=$X:Y. This > would cause some unexpected behavior. For instance, if I specify > "A=$LD_LIBRARY_PATH:xxx", A would be shown as ":xxx", while if I specify > "LD_LIBRARY_PATH=$Z:xxx,Z=$LD_LIBRARY_PATH:yyy", Z would be come the actual > value of LD_LIBRARY_PATH + ":yyy" (and LD_LIBRARY_PATH is not affected at > all). I think we should support eager binding (and we can support lazy > binding later through quoting or escaping). -- This message was sent by Atlassian JIRA (v6.2#6252)