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

VotersStop watchingWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment