JAVA连接Hbase集群

java连接Hbase,代码卡在 HBaseAdmin admin1 = new HBaseAdmin(conf1);处

    Configuration conf =HBaseConfiguration.create();
    //配置Zookeeper节点
    conf.set("hbase.zookeeper.quorum", "hadoop5:2181,hadoop6:2181,hadoop7:2181");
    Connection conn =ConnectionFactory.createConnection(conf);
    TableName tn = TableName.valueOf("这里写入表名");
    Table table = conn.getTable(tn);

    拥有table对象 就可以进行数据操作

问题找到了,~~jar包出错