hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject [13/50] hbase git commit: HBASE-16385 Have hbase-rest pull hbase.rest.port from Constants.java (Yi Liang)
Date Tue, 01 Nov 2016 19:47:51 GMT
HBASE-16385 Have hbase-rest pull hbase.rest.port from Constants.java (Yi Liang)


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/3c4e8c16
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/3c4e8c16
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/3c4e8c16

Branch: refs/heads/0.98
Commit: 3c4e8c16ffaea85d41bb19df2dda224e36d83d43
Parents: c283063
Author: stack <stack@apache.org>
Authored: Wed Aug 10 16:06:05 2016 -0700
Committer: Andrew Purtell <apurtell@apache.org>
Committed: Wed Aug 24 17:56:58 2016 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/3c4e8c16/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
----------------------------------------------------------------------
diff --git a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
index 79b3377..d91b58a 100644
--- a/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
+++ b/hbase-rest/src/main/java/org/apache/hadoop/hbase/rest/RESTServer.java
@@ -110,7 +110,7 @@ public class RESTServer implements Constants {
     RESTServlet servlet = RESTServlet.getInstance(conf, userProvider);
 
     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");
@@ -204,7 +204,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);
 


Mime
View raw message