为了账号安全,请及时绑定邮箱和手机立即绑定

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

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

HUH函数 2018-11-15 06:02:15
怎样写一个简单的程序连接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;

查看完整回答
反对 回复 2018-12-08
  • 1 回答
  • 0 关注
  • 738 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信