Hi all
I have been noticing a slightly flaky behavior with respect to
HBaseAdmin.tableExists(). After I have created the table, it returns
true/false every time when called. In hbase shell, the list command prints
out all the tables sometimes, and shows no tables on other occasions. Any
ideas as to why this happens?
The master on my cluster runs the HDFS - namenode, secondary namenode; HBase
- HMaster, HQuorumPeer. The 12 slaves run the HDFS datanode and HBase
HRegionServer. Below is the transcript of operations on hbase shell... Every
time I exit and enter hbase shell, the output changes.
Thanks
Karthik
hbase(main):002:0> count 'SUBSCRIPTIONS'
0 row(s) in 6.0560 seconds
hbase(main):003:0> create 'Test'
0 row(s) in 1.0840 seconds
hbase(main):004:0> list
SUBSCRIPTIONS
1 row(s) in 0.0090 seconds
hbase(main):010:0> create 'Test'
NativeException: org.apache.hadoop.hbase.TableExistsException:
org.apache.hadoop.hbase.TableExistsException: Test
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:798)
at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:762)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
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):011:0> list
SUBSCRIPTIONS
1 row(s) in 0.0070 seconds
hbase(main):012:0> exit
[kamba...@mercado-2 ~]$ hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Version: 0.20.5, rUnknown, Thu Jul 15 22:27:05 PDT 2010
hbase(main):001:0> list
TOPICS
Test
TestTable
USERS
4 row(s) in 0.0930 seconds
hbase(main):005:0> exit
[kamba...@mercado-2 ~]$ hbase shell
HBase Shell; enter 'help<RETURN>' for list of supported commands.
Version: 0.20.5, rUnknown, Thu Jul 15 22:27:05 PDT 2010
hbase(main):001:0> list
EVENTS
SUBSCRIPTIONS
TOPICS
TestTable
USERS
5 row(s) in 0.1000 seconds