hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From apurt...@apache.org
Subject svn commit: r1452770 - /hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServlet.java
Date Tue, 05 Mar 2013 12:46:58 GMT
Author: apurtell
Date: Tue Mar  5 12:46:58 2013
New Revision: 1452770

URL: http://svn.apache.org/r1452770
Log:
HBASE-7986. [REST] Make HTablePool size configurable (binlijin)

Modified:
    hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServlet.java

Modified: hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServlet.java
URL: http://svn.apache.org/viewvc/hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServlet.java?rev=1452770&r1=1452769&r2=1452770&view=diff
==============================================================================
--- hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServlet.java (original)
+++ hbase/trunk/hbase-server/src/main/java/org/apache/hadoop/hbase/rest/RESTServlet.java Tue
Mar  5 12:46:58 2013
@@ -70,7 +70,8 @@ public class RESTServlet implements Cons
    */
   RESTServlet(Configuration conf) throws IOException {
     this.conf = conf;
-    this.pool = new HTablePool(conf, 10);
+    int maxSize = conf.getInt("hbase.rest.htablepool.size", 10);
+    this.pool = new HTablePool(conf, maxSize);
     this.admin = new HBaseAdmin(conf);
   }
 



Mime
View raw message