Member since
10-27-2015
2
Posts
0
Kudos Received
0
Solutions
10-28-2015
04:52 AM
This issue can be resolved in 2 ways. One with modificaiton in code, and another one with modification in config file. 1) Code modification: Set the attribute value for "hbase.zookeeper.quorum" in the code itself HBaseConfiguration config = new HBaseConfiguration(); config.clear(); config.set("hbase.zookeeper.quorum", "192.168.15.20"); config.set("hbase.zookeeper.property.clientPort","2181"); 2) Modify the /etc/hosts file as below Remove the localhost entry from that file and put the localhost entry in front of hbase server ip . For example, your hbase server's /etc/hosts files seems like this: 127.0.0.1 localhost 192.166.66.66 xyz.hbase.com hbase You have to change it like this by removing localhost: # 127.0.0.1 localhost # line commented out 192.166.66.66 xyz.hbase.com hbase localhost # note: localhost added here This is because when remote machine asks hbase server machine that where HMaster is running, it tells that it is running on localhost mean on this machine. So if we continue to place the entry of 127.0.01 then hbase server returns this adress and remote machine start to find HMaster on its own machine.
... View more
10-27-2015
07:24 PM
Please replace the attribute value ot "hbase.zookeeper.quorum" with the IP Address. This causes the issue at times.
... View more