HBase Java client - unknown host: localhost.localdomain

后端 未结 2 1974
轮回少年
轮回少年 2021-01-16 19:44

Versions: Hadoop: 2.0.0-cdh4.3.1

HBase: 0.94.6-cdh4.3.1

I am running cloudera quick start vm(Everything is running on 172.16.144.150), Here is my little HBas

2条回答
  •  鱼传尺愫
    2021-01-16 20:25

    Add the following 2 lines in your client :

    config.set("hbase.zookeeper.quorum", "172.16.144.150");
    config.set("hbase.zookeeper.property.clientPort","2181");
    

    Also add the hostname and IP of the machine into the /etc/hosts file of your client.

提交回复
热议问题