Testing java HBase connection

前端 未结 4 1763
无人共我
无人共我 2021-01-06 04:50

I am trying to use the HBase Java APIs to write data into HBase. I installed Hadoop/HBase through Ambari.

Here is how the configuration is currently set up:

4条回答
  •  轮回少年
    2021-01-06 05:39

    The property below resolved my issue

    For Hortonworks: hconfig.set("zookeeper.znode.parent", "/hbase-unsecure")

    For cloudera: hconfig.set("zookeeper.znode.parent", "/hbase")

提交回复
热议问题