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

DFSUtil#getInfoServer cleanup

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 3.0.0-alpha1
    • None
    • namenode
    • None

    Description

      The httpsAddress parameter is not used outside of tests.

        public static String getInfoServer(InetSocketAddress namenodeAddr,
            Configuration conf, boolean httpsAddress) throws IOException {
          boolean securityOn = UserGroupInformation.isSecurityEnabled();
          String httpAddressKey = (securityOn && httpsAddress) ? 
              DFS_NAMENODE_HTTPS_ADDRESS_KEY : DFS_NAMENODE_HTTP_ADDRESS_KEY;
          String httpAddressDefault = (securityOn && httpsAddress) ? 
              DFS_NAMENODE_HTTPS_ADDRESS_DEFAULT : DFS_NAMENODE_HTTP_ADDRESS_DEFAULT;
      

      jingzhao confirmed on HDFS-5271 that DFS_NAMENODE_HTTP_ADDRESS_DEFAULT will be the default that is always available so there should be no reason to choose betwen DFS_NAMENODE_HTTP_ADDRESS_DEFAULT and DFS_NAMENODE_HTTPS_ADDRESS_DEFAULT. Filing Jira to clean this up.

      Attachments

        Issue Links

          Activity

            People

              wheat9 Haohui Mai
              arp Arpit Agarwal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: