Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-14213

Move Configuration runtime check for hadoop-site.xml to initialization

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.9.0, 3.0.0-alpha4
    • Component/s: None
    • Labels:
      None
    • Target Version/s:
    • Release Note:
      Move the check for hadoop-site.xml to static initialization of the Configuration class.

      Description

      Each Configuration object that loads defaults checks for hadoop-site.xml. It has been long deprecated and is not present in most if not nearly all installations. The getResource check for hadoop-site.xml has to check the entire classpath since it is not found. This jira proposes to 1) either remove hadoop-site.xml as a default resource or 2) move the check to static initialization of the class so the performance hit is only taken once.

        Attachments

        1. HADOOP-14213.1.patch
          2 kB
          Jonathan Eagles
        2. HADOOP-14213.2.patch
          2 kB
          Jonathan Eagles

          Activity

            People

            • Assignee:
              jeagles Jonathan Eagles
              Reporter:
              jeagles Jonathan Eagles
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: