天天看點

ClusterId read in ZooKeeper is null,java.net.UnknownHostException: unknown host: master

1、ZooKeeperRegistry.getClusterId --> ClusterId read in ZooKeeper is null

ClusterId read in ZooKeeper is null,java.net.UnknownHostException: unknown host: master

解決辦法:在設定HBaseConfiguration處添加以下配置

configuration.set(“zookeeper.znode.parent”, “/hbase-unsecure”);
ClusterId read in ZooKeeper is null,java.net.UnknownHostException: unknown host: master

2、java.net.UnknownHostException: unknown host: master

按以上配置好後,發現還是有問題

ClusterId read in ZooKeeper is null,java.net.UnknownHostException: unknown host: master

解決辦法:在C:\Windows\System32\drivers\etc\hosts檔案添加一行

192.168.x.xxx master

前面位址為HBase所在伺服器的位址