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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
|