I simply cannot connect my client machine to HBase.
Client is running on Windows 8. HBase on Fedora VM.
I've imported the following jars:
commons-configuration (commons-configuration-1.6.jar)
commons-lang (commons-lang-2.6.jar)
commons-logging (commons-logging-1.1.1.jar)
hadoop-core (hadoop-core-1.2.1.jar)
hbase (hbase-0.94.11.jar)
log4j (log4j-1.2.16.jar)
protobuf-java-2.5.0.jar
slf4j-api (slf4j-api-1.5.8.jar)
slf4j-log4j (slf4j-log4j12-1.5.8.jar)
zookeeper (zookeeper-3.4.3.jar)
I've looked here: Hbase client do not able to connect with remote Hbase server (I'm even using question's code from there) didn't help.
I've looked here: https://www.mail-archive.com/[email protected]/msg23159.html didn't help.
I've edited my /etc/hosts to contain "my_ip localhost".
I have included this in both client side and server side hdfs-site.xml:
<property>
<name>hbase.rootdir</name>
<value>file:///home/hadoop/hbase</value>
</property>
<property>
<name>hbase.zookeeper.property.dataDir</name>
<value>/home/hadoop/zookeeper</value>
</property>
<property>
<name>hbase.zookeeper.quorum</name>
<value>Hadoop</value>
</property>
<property>
<name>hbase.zookeeper.property.clientPort</name>
<value>2181</value>
</property>
<property>
<name>hbase.master</name>
<value>Hadoop:60000</value>
</property>
<property>
<name>zookeeper.znode.rootserver</name>
<value>Hadoop</value>
</property>
<property>
<name>zookeeper.znode.parent</name>
<value>/hbase</value>
</property>
Everything seems fine except it hangs with this: INFO zookeeper.ClientCnxn: Session establishment complete on server ip/ip:2181, sessionid = 0x147d515db130006, negotiated timeout = 40000