static String getRemoteNamenodeHttpName ( Configuration conf , InstanceId instance ) throws IOException { if ( instance == InstanceId . NODEZERO ) { return conf . get ( "dfs.http.address1" ) ; } else if ( instance == InstanceId . NODEONE ) { return conf . get ( "dfs.http.address0" ) ; } else { throw new IOException ( "Unknown instance " + instance ) ; } }
Returns the name of the http server of the local namenode