HBASE-7986. [REST] Make HTablePool size configurable (binlijin)
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1452770 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
3a1b53f2fc
commit
13f2700645
|
@ -70,7 +70,8 @@ public class RESTServlet implements Constants {
|
|||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue