Hello everyone,
I'm having a really hard time trying to use HBase on a single server in
pseudodistributed mode. I have a large instance on Amazon EC2 running Red
Hat 6.1 64-bit.
We are running the Cloudera Hadoop release CDH3. When I get into the hbase
shell and try to create a table, I get this fatal error:
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Type "exit<RETURN>" to leave the HBase Shell
Version 0.90.3-cdh3u1, r, Mon Jul 18 08:23:50 PDT 2011
hbase(main):001:0> create 'test42', 'pleasework'
11/10/19 18:05:30 FATAL zookeeper.ZKConfig: The server in zoo.cfg cannot be
set to localhost in a fully-distributed setup because it won't be reachable.
See "Getting Started" for more information.
0 row(s) in 0.9490 seconds
So, it's complaining about a localhost setting in the zoo.cfg file...
Here is what JPS shows:
[root@ip-10-x-x-x ~]# jps
1168 HRegionServer
2082 Jps
1324 QuorumPeerMain
1544 NameNode
1696 TaskTracker
1397 DataNode
1094 HMaster
1620 SecondaryNameNode
1481 JobTracker
And the contents of my /etc/hbase/conf/hbase-site.xml file:
<configuration>
<property>
<name>hbase.cluster.distributed</name>
<value>true</value>
</property>
<property>
<name>hbase.rootdir</name>
<value>hdfs://localhost:8020/hbase</value>
</property>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
</configuration>
And the /etc/zookeeper/zoo.cfg file:
tickTime=2000
initLimit=10
syncLimit=5
dataDir=/var/zookeeper
clientPort=2181
server.0=localhost:2888:3888
We are running the following versions:
hadoop-hbase.noarch 0:0.90.3+15.3-1
hadoop-zookeeper.noarch 0:3.3.3+12.12-1
hadoop-hbase-master.noarch 0:0.90.3+15.3-1
hadoop-zookeeper-server.noarch 0:3.3.3+12.12-1
hadoop-hbase-regionserver.noarch 0:0.90.3+15.3-1
hadoop-hbase-thrift.noarch 0:0.90.3+15.3-1
hadoop-0.20-namenode.noarch 0:0.20.2+923.97-1
hadoop-0.20-datanode.noarch 0:0.20.2+923.97-1
Also, I used this HBase installation guide to set up everything:
https://ccp.cloudera.com/display/CDHDOC/HBase+Installation
If you can help me, I will name my first HBase table in your honor.
- Sameer Farooqui