Looks like there's something weird with your master, you should take a look at its log.
Also which hbase version are you using? J-D On Tue, Jan 26, 2010 at 11:57 AM, Gabriel Ki <[email protected]> wrote: > Hi, > > I am new to HBase. I wanted to do a sanity check by installing HBase > standalone mode. Following > http://hadoop.apache.org/hbase/docs/current/api/overview-summary.html#standalone > I got NullPointerException when I tried to create a table. Could someone > tell me what I have missed? Many thanks in advance. Here are the errors > and zk_dump > > hbase(main):002:0> zk_dump > 10/01/26 11:46:45 DEBUG client.HConnectionManager$ClientZKWatcher: Got > ZooKeeper event, state: SyncConnected, type: None, path: null > 10/01/26 11:46:45 DEBUG zookeeper.ZooKeeperWrapper: Read ZNode /hbase/master > got 10.10.2.31:60000 > 10/01/26 11:46:45 DEBUG zookeeper.ZooKeeperWrapper: Read ZNode /hbase/master > got 10.10.2.31:60000 > 10/01/26 11:46:46 DEBUG zookeeper.ZooKeeperWrapper: Read ZNode > /hbase/root-region-server got 10.10.2.31:11357 > 10/01/26 11:46:46 DEBUG zookeeper.ZooKeeperWrapper: Read ZNode > /hbase/rs/1264534681746 got 10.10.2.31:11357 > > HBase tree in ZooKeeper is rooted at /hbase > Cluster up? true > In safe mode? false > Master address: 10.10.2.31:60000 > Region server holding ROOT: 10.10.2.31:11357 > Region servers: > - 10.10.2.31:11357 > > hbase(main):003:0> create 't1', {NAME => 'f1', VERSIONS => 5} > NativeException: java.io.IOException: java.io.IOException: > java.lang.NullPointerException > at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:780) > at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:757) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at org.apache.hadoop.hbase.ipc.HBaseRPC$Server.call(HBaseRPC.java:648) > at > org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:915) > > In region server log: > WARN org.apache.hadoop.hbase.regionserver.HRegionServer: Not starting a > distinct region server because hbase.cluster.distributed is false >
