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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.0.0-alpha2
    • None
    • None
    • 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 Chundatt
        2. YARN-5877.0006.patch
          8 kB
          Bibin Chundatt
        3. YARN-5877.0005.patch
          8 kB
          Bibin Chundatt
        4. YARN-5877.0004.patch
          5 kB
          Bibin Chundatt
        5. YARN-5877.0003.patch
          6 kB
          Bibin Chundatt
        6. YARN-5877.0002.patch
          5 kB
          Bibin Chundatt
        7. YARN-5877.0001.patch
          2 kB
          Bibin Chundatt
        8. Dockerfile
          3 kB
          Bibin Chundatt
        9. bootstrap.sh
          0.7 kB
          Bibin Chundatt
        10. 5877 nm logs of test.log
          886 kB
          Bibin Chundatt

        Issue Links

          Activity

            People

              bibinchundatt Bibin Chundatt
              bibinchundatt Bibin Chundatt
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: