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

Docker image cannot set HADOOP_CONF_DIR

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0
    • Fix Version/s: 3.1.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Incompatible change
    • Release Note:
      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.001.patch
          14 kB
          Jim Brennan
        2. YARN-7677.002.patch
          14 kB
          Jim Brennan
        3. YARN-7677.003.patch
          34 kB
          Jim Brennan
        4. YARN-7677.004.patch
          34 kB
          Jim Brennan
        5. YARN-7677.005.patch
          34 kB
          Jim Brennan
        6. YARN-7677.006.patch
          35 kB
          Jim Brennan
        7. YARN-7677.007.patch
          35 kB
          Jim Brennan

          Issue Links

            Activity

              People

              • Assignee:
                Jim_Brennan Jim Brennan
                Reporter:
                ebadger Eric Badger
              • Votes:
                0 Vote for this issue
                Watchers:
                12 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: