HDFS-14838. RBF: Display RPC (instead of HTTP) Port Number in RBF web UI. Contributed by Xieming Li
This commit is contained in:
parent
dacc44821d
commit
c255333e20
|
@ -594,7 +594,7 @@ public class RBFMetrics implements RouterMBean, FederationMBean {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getHostAndPort() {
|
public String getHostAndPort() {
|
||||||
InetSocketAddress address = this.router.getHttpServerAddress();
|
InetSocketAddress address = this.router.getRpcServerAddress();
|
||||||
if (address != null) {
|
if (address != null) {
|
||||||
try {
|
try {
|
||||||
String hostname = InetAddress.getLocalHost().getHostName();
|
String hostname = InetAddress.getLocalHost().getHostName();
|
||||||
|
|
Loading…
Reference in New Issue