yah just nuke /hbase and you'll be back in biz.
On Sat, Apr 17, 2010 at 1:00 AM, Oded Rosen <[email protected]> wrote: > Thanks, but after these steps, I still get the same exception. > As this was my main table (and pretty much my only table), I can allow a > 'fresh start' with my hbase datastore - > How do I do that? delete the '/hbase' directory on the cluster? > > Thanks, > > On Sat, Apr 17, 2010 at 2:51 AM, Ryan Rawson <[email protected]> wrote: > >> try flushing then major_compacting the .META. table (including periods) >> >> eg: >> >> > flush '.META.' >> // wait a bit >> > major_compact '.META.' >> >> >> >> On Fri, Apr 16, 2010 at 1:20 PM, Oded Rosen <[email protected]> >> wrote: >> > Hello, >> > >> > 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 10.21.204.130:48191: 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 >> > data. >> > >> > Can anyone think of a solution? >> > >> > Thanks, >> > >> > -- >> > Oded >> > >> > > > > -- > Oded >
