hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oded Rosen <o...@legolas-media.com>
Subject error while truncating table
Date Fri, 16 Apr 2010 20:20:13 GMT

Today, when I entered "truncate 'users'" on hbase shell, it encountered an
exception, and it didn't created the table (just disabled+dropped it).
The master log does contain:

2010-04-16 13:15:36,500 INFO org.apache.hadoop.hbase.master.HMaster:
deleted table: users

But when I try to recreate the table again, it says:

2010-04-16 13:15:51,581 INFO org.apache.hadoop.ipc.HBaseServer: IPC
Server handler 83 on 60000, call createTable({NAME => 'users',
FAMILIES => [...]})
 from error:
org.apache.hadoop.hbase.TableExistsException: users
org.apache.hadoop.hbase.TableExistsException: users
	at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:795)
	at org.apache.hadoop.hbase.master.HMaster.createTable(HMaster.java:759)
	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)

The table does not appear in the output of the "list" command (but other
tables do appear there, as they should).
This error kept on showing even after deleting the table directory on hdfs
("/hbase/users"). that directory contained 2-3 entries when I deleted it.

I still get errors when trying to recreate the table.

I will just add that the reason I've truncated the table at the first place
was because of getting many "Could not obtain block" exceptions on specific
blocks in the table.
I think the table contained 2-3 problematic blocks, so I tried to reload the

Can anyone think of a solution?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message