怎样写一个简单的程序连接hbase数据库?

怎样写一个简单的程序连接hbase数据库


HUH函数
浏览 742回答 1
1回答

德玛西亚99

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;
打开App,查看更多内容
随时随地看视频慕课网APP