public HTablePool getHTablePool(Configuration conf) { HTablePool pool; synchronized (HTABLE_POOLS) { pool = HTABLE_POOLS.get(conf); if (pool == null) { pool = new HTablePool(conf, 20, new HTableFactory()); HTABLE_POOLS.put(conf, pool); Log log = LogFactory.getLog(LocalHTable.class); if (log.isDebugEnabled()) { log.debug("Created a new HTablePool instance for conf " + System.identityHashCode(conf)); } } } return pool; }