hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From st...@apache.org
Subject hbase git commit: HBASE-16385 Have hbase-rest pull hbase.rest.port from Constants.java (Yi Liang)
Date Wed, 10 Aug 2016 23:06:14 GMT
Repository: hbase
Updated Branches:
  refs/heads/master b3888eadf -> 88956676d


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/88956676
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/88956676
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/88956676

Branch: refs/heads/master
Commit: 88956676d7e7164f3a5b0dfbb31ad67bd3d5ed87
Parents: b3888ea
Author: stack <stack@apache.org>
Authored: Wed Aug 10 16:06:05 2016 -0700
Committer: stack <stack@apache.org>
Committed: Wed Aug 10 16:06:05 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/88956676/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 cb37fb5..b8ab964 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
@@ -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);
 


Mime
View raw message