HBASE-16385 Have hbase-rest pull hbase.rest.port from Constants.java (Yi Liang)

This commit is contained in:
stack 2016-08-10 16:06:05 -07:00
parent b3888eadf8
commit 88956676d7
1 changed files with 2 additions and 2 deletions

View File

@ -151,7 +151,7 @@ public class RESTServer implements Constants {
private static void parseCommandLine(String[] args, RESTServlet servlet) {
Options options = new Options();
options.addOption("p", "port", true, "Port to bind to [default: 8080]");
options.addOption("p", "port", true, "Port to bind to [default: " + DEFAULT_LISTEN_PORT + "]");
options.addOption("ro", "readonly", false, "Respond only to GET HTTP " +
"method requests [default: false]");
options.addOption(null, "infoport", true, "Port for web UI");
@ -263,7 +263,7 @@ public class RESTServer implements Constants {
sslConnector.setKeyPassword(keyPassword);
connector = sslConnector;
}
connector.setPort(servlet.getConfiguration().getInt("hbase.rest.port", 8080));
connector.setPort(servlet.getConfiguration().getInt("hbase.rest.port", DEFAULT_LISTEN_PORT));
connector.setHost(servlet.getConfiguration().get("hbase.rest.host", "0.0.0.0"));
connector.setHeaderBufferSize(65536);