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

Replace hard-coded property keys with DFSConfigKeys fields

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0-alpha1
    • Fix Version/s: 2.1.0-beta
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      In "TestHftpFileSystem.java" and "NameNodeHttpServer.java" , the two property key "dfs.http.port" and "dfs.https.port" are hard corded.
      Now, the constant values "DFS_NAMENODE_HTTP_PORT_KEY" and "DFS_NAMENODE_HTTPS_KEY" in DFSConfigKeys are available so I think we should replace those for maintainability.

        Attachments

        1. HDFS-5007.patch
          6 kB
          Kousuke Saruta
        2. HDFS-5007.patch
          6 kB
          Kousuke Saruta
        3. HDFS-5007.patch
          6 kB
          Kousuke Saruta

          Issue Links

            Activity

              People

              • Assignee:
                sarutak Kousuke Saruta
                Reporter:
                sarutak Kousuke Saruta
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: