Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3233

Move IP to FQDN conversion from DatanodeJSPHelper to DatanodeID

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Not A Problem
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      In a handful of places DatanodeJSPHelper looks up the IP for a DN and then determines a FQDN for the IP. We should move this code to a single place, a new DatanodeID to return the FQDN for a DatanodeID.

        Activity

        Eli Collins created issue -
        Eli Collins made changes -
        Field Original Value New Value
        Assignee Eli Collins [ eli2 ] Eli Collins [ eli ]
        Eli Collins made changes -
        Labels newbie
        Eli Collins made changes -
        Assignee Eli Collins [ eli ]
        Hide
        Daryn Sharp added a comment -

        There's a NetUtils.getCanonicalUri that might meet your needs.

        Show
        Daryn Sharp added a comment - There's a NetUtils.getCanonicalUri that might meet your needs.
        Hide
        Gabor Liptak added a comment -

        Eli, are you referencing to code in ./hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/JspHelper.java ? Thanks

        Show
        Gabor Liptak added a comment - Eli, are you referencing to code in ./hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/common/JspHelper.java ? Thanks
        Hide
        Eli Collins added a comment -

        Looks like DatanodeJSPHelper has been removed, and don't see the relevant code in JspHelper.java so this may no longer apply.

        Show
        Eli Collins added a comment - Looks like DatanodeJSPHelper has been removed, and don't see the relevant code in JspHelper.java so this may no longer apply.
        Hide
        Gabor Liptak added a comment -

        Eli, is this issue ready to be resolved? Thanks

        Show
        Gabor Liptak added a comment - Eli, is this issue ready to be resolved? Thanks
        Haohui Mai made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Not A Problem [ 8 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1092d 10h 45m 1 Haohui Mai 07/Apr/15 08:08

          People

          • Assignee:
            Unassigned
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development