Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2061

child environment substitution is broken

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

      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).

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              hong.tang Hong Tang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: