I'm struggling to set up a distributed Hbase cluster with two nodes, one of which is my machine, and the other a virtual machine, using the host-only adapter in VirtualBox.
My problem is that the area server (from the VM machine) cannot connect to the Hbase host running on the host machine. Although in the Hbase shell I can list, create a table ... in the register server on the VM machine ("slave"), the log always shows
org.apache.hadoop.hbase.regionserver.HRegionServer: Unable to connect to master. Retrying. Error was: java.net.ConnectException: Connection refused
Previously, I successfully configured Hadoop, HDFS, and MapReduce in this cluster with two nodes named "master" and "slave", "master" as the master node, and "master" and "slave" work as slave nodes, these names are bound to the interface vboxnet0 VirtualBox (host names in / etc / hostname are different). I also specify the "slave.host.name" property for each node as "master" and "slave".
It seems that the Hbase master on "master" always starts with the name "localhost" host, from the slave machine, I cannot telnet for the hbase master named "master". So, is there a way to specify the use of the hostname for the Hbase host as "master", I tried to specify some properties of the DNS interface for ZooKeeper, Master, RegionServer to use the internal interface between master and slave, but it still does not work at all.
/ etc / hosts for both, like something like
127.0.0.1 localhost 127.0.0.1 ubuntu.mymachine # For Hadoop 192.168.56.1 master 192.168.56.101 slave # The following lines are desirable for IPv6 capable hosts ::1 ip6-localhost ip6-loopback fe00::0 ip6-localnet ff00::0 ip6-mcastprefix ff02::1 ip6-allnodes ff02::2 ip6-allrouters
Arcobaleno
source share