1、ZooKeeperRegistry.getClusterId --> ClusterId read in ZooKeeper is null
解決辦法:在設定HBaseConfiguration處添加以下配置
configuration.set(“zookeeper.znode.parent”, “/hbase-unsecure”);
2、java.net.UnknownHostException: unknown host: master
按以上配置好後,發現還是有問題
解決辦法:在C:\Windows\System32\drivers\etc\hosts檔案添加一行
192.168.x.xxx master
前面位址為HBase所在伺服器的位址