Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-4324

Need a way to get the inforserver port of a name node

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Invalid
    • 0.20.0
    • None
    • None
    • None

    Description

      To test that services shut down cleanly, I need to know the port that the namenode brings up an info server on, which means that its assigned port value needs to be exported from the namesystem.

      I can see two ways to do this, and wish some recommendations of the best approach

      1. extract the port value when the FSNameSystem comes up, and add it to that classes Conf; add a method to get that Conf so that its state can be read.
      2. save the port value to a member variable in FSNameSystem and provide a public method to get at it.

      My preference is for #1, as it is consistent with how the NameNode saves its port value, and doesn't change any APIs.

      Attachments

        Activity

          People

            stevel@apache.org Steve Loughran
            stevel@apache.org Steve Loughran
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: