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

Docker image cannot set HADOOP_CONF_DIR

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.1.0, 2.10.1
    • None
    • Incompatible change
    • Hide
      The HADOOP_CONF_DIR environment variable is no longer unconditionally inherited by containers even if it does not appear in the nodemanager whitelist variables specified by the yarn.nodemanager.env-whitelist property. If the whitelist property has been modified from the default to not include HADOOP_CONF_DIR yet containers need it to be inherited from the nodemanager's environment then the whitelist settings need to be updated to include HADOOP_CONF_DIR.
      Show
      The HADOOP_CONF_DIR environment variable is no longer unconditionally inherited by containers even if it does not appear in the nodemanager whitelist variables specified by the yarn.nodemanager.env-whitelist property. If the whitelist property has been modified from the default to not include HADOOP_CONF_DIR yet containers need it to be inherited from the nodemanager's environment then the whitelist settings need to be updated to include HADOOP_CONF_DIR.

    Description

      Currently, HADOOP_CONF_DIR is being put into the task environment whether it's set by the user or not. It completely bypasses the whitelist and so there is no way for a task to not have HADOOP_CONF_DIR set. This causes problems in the Docker use case where Docker containers will set up their own environment and have their own HADOOP_CONF_DIR preset in the image itself.

      Attachments

        1. YARN-7677-branch-2.10.002.patch
          40 kB
          Eric Badger
        2. YARN-7677-branch-2.10.001.patch
          40 kB
          Jim Brennan
        3. YARN-7677.007.patch
          35 kB
          Jim Brennan
        4. YARN-7677.006.patch
          35 kB
          Jim Brennan
        5. YARN-7677.005.patch
          34 kB
          Jim Brennan
        6. YARN-7677.004.patch
          34 kB
          Jim Brennan
        7. YARN-7677.003.patch
          34 kB
          Jim Brennan
        8. YARN-7677.002.patch
          14 kB
          Jim Brennan
        9. YARN-7677.001.patch
          14 kB
          Jim Brennan

        Issue Links

          Activity

            People

              jbrennan Jim Brennan
              ebadger Eric Badger
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: