Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1932

Ensure that HDFS configuration deprecations are set up in every spot that HDFS configurations are loaded.

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.22.0
    • Component/s: None
    • Labels:
    • Hadoop Flags:
      Reviewed

      Description

      Currently we have code blocks like the following in lots of places:

        static{
          Configuration.addDefaultResource("hdfs-default.xml");
          Configuration.addDefaultResource("hdfs-site.xml");
        }
      

      This is dangerous since, if we don't remember to also classload HdfsConfiguration, the config key deprecations won't work. We should add a method like HdfsConfiguration.init() which would load the default resources as well as ensure that deprecation gets initialized properly.

      1. hdfs-1932.txt
        7 kB
        Jolly Chen
      2. hdfs-1932-2.txt
        7 kB
        Jolly Chen

        Issue Links

          Activity

            People

            • Assignee:
              Jolly Chen
              Reporter:
              Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development