I\'m struggling to setup a Hbase distributed cluster with 2 nodes, one is my machine and one is the VM, using the \"host-only\" Adapter in VirtualBox.
My problem is that
The answer that @Infinity provided seems to belong to version ~0.9.4.
For version 1.1.4.
according to the source code from
org.apache.hadoop.hbase.master.HMaster
the configuration should be:
hbase.master.hostname
master.local
After setting this value, region servers are able to connect to hbase master; however, in my environment, the region server complained about:
com.google.protobuf.ServiceException: java.net.SocketException: Invalid argument
The problem disappeared after I installed oracle JDK 8 instead of open-jdk-7 in all of my nodes.
So in conclusion, here is my solution:
use dns name server instead of setting /etc/hosts, as hbase is very picky on hostname and seems requires DNS lookup as well as reverse DNS lookup.
upgrade jdk to oracle 8
use the setting item mentioned above.