HBASE-24777 InfoServer support ipv6 host and port
Closes #2147 Signed-off-by: Duo Zhang <zhangduo@apache.org> Signed-off-by: Viraj Jasani <vjasani@apache.org>
This commit is contained in:
parent
8c0d7fa5b8
commit
82d09904f2
|
@ -30,6 +30,8 @@ import org.apache.hadoop.hbase.HBaseConfiguration;
|
||||||
import org.apache.hadoop.security.authorize.AccessControlList;
|
import org.apache.hadoop.security.authorize.AccessControlList;
|
||||||
import org.apache.yetus.audience.InterfaceAudience;
|
import org.apache.yetus.audience.InterfaceAudience;
|
||||||
|
|
||||||
|
import org.apache.hbase.thirdparty.com.google.common.net.HostAndPort;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a Jetty embedded server to answer http requests. The primary goal
|
* Create a Jetty embedded server to answer http requests. The primary goal
|
||||||
* is to serve up status information for the server.
|
* is to serve up status information for the server.
|
||||||
|
@ -61,8 +63,8 @@ public class InfoServer {
|
||||||
new org.apache.hadoop.hbase.http.HttpServer.Builder();
|
new org.apache.hadoop.hbase.http.HttpServer.Builder();
|
||||||
|
|
||||||
builder.setName(name).addEndpoint(URI.create(httpConfig.getSchemePrefix() +
|
builder.setName(name).addEndpoint(URI.create(httpConfig.getSchemePrefix() +
|
||||||
bindAddress + ":" +
|
HostAndPort.fromParts(bindAddress,port).toString())).
|
||||||
port)).setAppDir(HBASE_APP_DIR).setFindPort(findPort).setConf(c);
|
setAppDir(HBASE_APP_DIR).setFindPort(findPort).setConf(c);
|
||||||
String logDir = System.getProperty("hbase.log.dir");
|
String logDir = System.getProperty("hbase.log.dir");
|
||||||
if (logDir != null) {
|
if (logDir != null) {
|
||||||
builder.setLogDir(logDir);
|
builder.setLogDir(logDir);
|
||||||
|
|
Loading…
Reference in New Issue