hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] Created: (HADOOP-4324) Need a way to get the inforserver port of a name node
Date Wed, 01 Oct 2008 13:03:44 GMT
Need a way to get the inforserver port of a name node

                 Key: HADOOP-4324
                 URL: https://issues.apache.org/jira/browse/HADOOP-4324
             Project: Hadoop Core
          Issue Type: New Feature
          Components: dfs
    Affects Versions: 0.20.0
            Reporter: Steve Loughran
            Assignee: Steve Loughran
            Priority: Minor

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

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.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message