Hi, HBaser
I'm currently trying to run HBase, but some errors occur.
Running environment:
CentOS release 5.5
hadoop-0.20.2
hbase-0.20.6
I use two machines to run hbase (just for illustrate this issue).
Master is : 192.168.22.18 /192.168.25.18
RegionServer is : 192.168.22.19 /192.168.25.19
In my cluster, every machine has dual NIC. Maybe that's the problem, I
guess...
~~~~~~~
In hbase-site.xml, list some configurations
<property>
<name>hbase.zookeeper.quorum</name>
<value>192.168.25.18, 192.168.25.19</value>
...
</property>
After run the start-hbase.sh, these relevant processes have been started!
Run "hbase shell" to excute some commands:
--------------------------------------------------------
hbase(main):002:0> create "table1","cf1"
NativeException: java.io.IOException: java.io.IOException:
java.lang.NullPointerException
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:785)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:762)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:657)
at
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915)
hbase(main):013:0> list
10/11/04 15:43:28 INFO ipc.HbaseRPC: Server at /192.168.25.19:60020 could not
be reached after 1 tries, giving up.
-----------------------------------------------------------
And then execute "zk_dump", gets infomation as follows:
-------------------------------------------------------------------
Version: 0.20.6, r965666, Mon Jul 19 16:54:48 PDT 2010
hbase(main):001:0> zk_dump
HBase tree in ZooKeeper is rooted at /hbase
Cluster up? true
In safe mode? false
Master address: 192.168.25.18:60000
Region server holding ROOT: 192.168.25.19:60020
Region servers:
- 192.168.22.19:60020
Quorum Server Statistics:
- 192.168.25.19:2181
Zookeeper version: 3.2.2-888565, built on 12/08/2009 21:51 GMT
Clients:
/192.168.25.18:53266[1](queued=0,recved=0,sent=0)
Latency min/avg/max: 0/0/0
Received: 0
Sent: 0
Outstanding: 0
Zxid: 0xc0000000d
Mode: leader
Node count: 11
- 192.168.25.18:2181
Zookeeper version: 3.2.2-888565, built on 12/08/2009 21:51 GMT
Clients:
/192.168.25.18:52198[1](queued=0,recved=0,sent=0)
/192.168.25.18:59354[1](queued=0,recved=4115,sent=0)
/192.168.25.19:41012[1](queued=0,recved=4106,sent=0)
/192.168.25.18:52195[1](queued=0,recved=10,sent=0)
Latency min/avg/max: 0/1/22
Received: 8251
Sent: 0
Outstanding: 0
Zxid: 0xc0000000d
Mode: follower
Node count: 11
------------------------------------------------------------
>From the infomation returned by zk_dump, It's looks like the inconsistent IP
>address be used simultaneously.
Any help is greatly appreciated!
2010-11-04
Pan.W