Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-6483

Replace deprecated method NameNode.getUri() with DFSUtilClient.getNNUri() in TestMRCredentials

    XMLWordPrintableJSON

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0, 3.0.0-alpha1
    • Component/s: test
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Test TestMRCredentials uses the NameNode.getUri() method which is deprecated in HDFS-9022. We should use DFSUtilClient.getNNUri() instead to get the name node URI given NN address. To make the Jenkins pass unit tests, jira HDFS-9022 focuses on changes in hadoop-hdfs module.

      This jira tracks the effort of replacing usage of NameNode.getUri() with DFSUtilClient.getNNUri() in TestMRCredentials.
      This patch will remove the newly brought javac warning in HDFS-9022

      TestMRCredentials.java: getUri(InetSocketAddress) in NameNode has been deprecated.

        Attachments

        1. MAPREDUCE-6483.001.patch
          1 kB
          Mingliang Liu
        2. MAPREDUCE-6483.000.patch
          2 kB
          Mingliang Liu

          Issue Links

            Activity

              People

              • Assignee:
                liuml07 Mingliang Liu
                Reporter:
                liuml07 Mingliang Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: