Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1932

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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 0.22.0
    • 0.22.0
    • None
    • 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.

      Attachments

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

        Issue Links

        Activity

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

          People

            jolly Jolly Chen
            tlipcon Todd Lipcon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment