hadoop - HBase connection refused from host, but works from guest (VM) -


i setting virtual machine development purposes using vagrant + virtualbox hadoop (hdfs + yarn) , hbase in it. have hdfs , yarn working expected - can connect host guest (vm) using hostname of guest (i set "bigdatavm"), have problem connect hbase master. hbase-site.xml looks this:

<configuration>   <property>     <name>hbase.cluster.distributed</name>     <value>true</value>   </property>   <property>     <name>hbase.master</name>     <value>bigdatavm:16000</value>   </property>   <property>     <name>hbase.zookeeper.quorum</name>     <value>bigdatavm</value>   </property>   <property>     <name>hbase.rootdir</name>     <value>hdfs://bigdatavm:9000/hbase</value>   </property> </configuration> 

if ssh machine, can start hbase bin/start-hbase.sh, connect bin/hbase shell, create , query tables. however, if try connect host bigdatavm:2181 (standard way via zookeeper), fail connect. tried also:

telnet bigdatavm 2181 telnet bigdatavm 16000 

connecting port 2181 successful, 16000 returns "connection refused".

i tried playing hbase.master property set bigdatavm without port , removing property (to fallback defaults). no luck. idea why cannot connect outside?

edit: solved. ubuntu's default /etc/hosts entry culprit. replaced entry: 127.0.1.1 bigdatavm with: 127.0.1.1 localhost 192.168.33.10 bigdatavm 192.168.33.10 fixed ip assigned vm.


Comments