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

[MR-279] NM should pass a whitelisted environmental variables to the container

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0
    • Component/s: mrv2, nodemanager
    • Labels:
      None

      Description

      This is similar to MAPREDUCE-103 . We should pass a whitelisted set of environment variables from NM env to the container. By default, we should pass HADOOP_* variables. This can be a simple configuration key that NodeManager reads.

      Today, we already either pass the following correctly or assume that it works but doesn't

      • YARN_HOME: ContainerLaunch#writeLaunchEnv
      • HADOOP_CLIENT_OPTS: MapReduceChildJVM#setVMEnv
      • JAVA_HOME: TaskAttemptImpl#createContainerLaunchContext - Works by shell-expansion.
      • LD_LIBRARY_PATH: Assumed to work via shell-expansion but doesn't.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vinodkv Vinod Kumar Vavilapalli
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: