怎樣寫一個簡單的程序連接hbase數據庫
1 回答

德瑪西亞99
TA貢獻1770條經驗 獲得超3個贊
public class HBaseConnectionPool {
protected static ConcurrentHashMap<String,HBaseConnectionEntity> idelConnections=null;
protected static ConcurrentHashMap<String,HBaseConnectionEntity> activeConnections=null;
protected static int initSize;
protected static int maxSize;
protected static AtomicInteger idelSize=new AtomicInteger(0);
protected static AtomicInteger activeSize=new AtomicInteger(0);
protected static HBaseConnectionPool instance=null;
protected static Lock lock= new ReentrantLock();
protected Object object=new Object();
protected static volatile boolean isShutdown=false;
- 1 回答
- 0 關注
- 821 瀏覽
添加回答
舉報
0/150
提交
取消