Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-5877

Allow all env's from yarn.nodemanager.env-whitelist to get overridden during launch

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0-alpha2
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      As per the yarn.nodemanager.env-whitelist for the configured values should containers may override rather than use NodeManager's default.

        <property>
          <description>Environment variables that containers may override rather than use NodeManager's default.</description>
          <name>yarn.nodemanager.env-whitelist</name>
          <value>JAVA_HOME,HADOOP_COMMON_HOME,HADOOP_HDFS_HOME,HADOOP_CONF_DIR,CLASSPATH_PREPEND_DISTCACHE,HADOOP_YARN_HOME</value>
        </property>
      
      

      But only the following containers can override

          whitelist.add(ApplicationConstants.Environment.HADOOP_YARN_HOME.name());
          whitelist.add(ApplicationConstants.Environment.HADOOP_COMMON_HOME.name());
          whitelist.add(ApplicationConstants.Environment.HADOOP_HDFS_HOME.name());
          whitelist.add(ApplicationConstants.Environment.HADOOP_CONF_DIR.name());
          whitelist.add(ApplicationConstants.Environment.JAVA_HOME.name());
      

        Attachments

        1. yarn-site.xml
          6 kB
          Bibin A Chundatt
        2. YARN-5877.0006.patch
          8 kB
          Bibin A Chundatt
        3. YARN-5877.0005.patch
          8 kB
          Bibin A Chundatt
        4. YARN-5877.0004.patch
          5 kB
          Bibin A Chundatt
        5. YARN-5877.0003.patch
          6 kB
          Bibin A Chundatt
        6. YARN-5877.0002.patch
          5 kB
          Bibin A Chundatt
        7. YARN-5877.0001.patch
          2 kB
          Bibin A Chundatt
        8. Dockerfile
          3 kB
          Bibin A Chundatt
        9. bootstrap.sh
          0.7 kB
          Bibin A Chundatt
        10. 5877 nm logs of test.log
          886 kB
          Bibin A Chundatt

          Issue Links

            Activity

              People

              • Assignee:
                bibinchundatt Bibin A Chundatt
                Reporter:
                bibinchundatt Bibin A Chundatt
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: