HBASE-20395 Addendum Displaying thrift server type on the thrift page

This commit is contained in:
Guangxu Cheng 2019-11-28 21:48:49 +08:00
parent 636fa2c6b0
commit d6539350ed
1 changed files with 1 additions and 1 deletions

View File

@ -304,7 +304,7 @@ public class ThriftServer extends Configured implements Tool {
.get(THRIFT_INFO_SERVER_BINDING_ADDRESS, THRIFT_INFO_SERVER_BINDING_ADDRESS_DEFAULT); .get(THRIFT_INFO_SERVER_BINDING_ADDRESS, THRIFT_INFO_SERVER_BINDING_ADDRESS_DEFAULT);
infoServer = new InfoServer("thrift", a, port, false, conf); infoServer = new InfoServer("thrift", a, port, false, conf);
infoServer.setAttribute("hbase.conf", conf); infoServer.setAttribute("hbase.conf", conf);
infoServer.setAttribute("hbase.thrift.server.type", metrics.getThriftServerType()); infoServer.setAttribute("hbase.thrift.server.type", metrics.getThriftServerType().name());
infoServer.start(); infoServer.start();
} }
} }