hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Daniel Cryans <jdcry...@apache.org>
Subject Re: TableNotDisabled Exception
Date Wed, 08 Jul 2009 14:25:45 GMT
You have to disable a table to change its schema. Do it either by
shell like you already did or via HBaseAdmin (which shell uses).

J-D

On Wed, Jul 8, 2009 at 10:18 AM, bharath
vissapragada<bharat_v@students.iiit.ac.in> wrote:
> Hi all,
>
> I Have run a java program and it created  a table named "users" . I have
> made some modifications to the code and i want to run it again . So i tried
> to delete the existing table using "hbase shell" . When i tried to issue the
> command "drop 'users'"  it said "Disable the table first".. Then i issued
> "disable 'users'" and successfully deleted the table .. From the next time
> when i try to run the code it gives the following error ...
>
>
> Can someone tell me the fix for it ... its kinda urgent .. thanks
>
> *******************ERROR*************************************
> org.apache.hadoop.hbase.TableNotDisabledException: users
>    at
> org.apache.hadoop.hbase.master.ColumnOperation.processScanItem(ColumnOperation.java:46)
>    at
> org.apache.hadoop.hbase.master.TableOperation$ProcessTableOperation.call(TableOperation.java:105)
>    at
> org.apache.hadoop.hbase.master.TableOperation$ProcessTableOperation.call(TableOperation.java:70)
>    at
> org.apache.hadoop.hbase.master.RetryableMetaOperation.doWithRetries(RetryableMetaOperation.java:64)
>    at
> org.apache.hadoop.hbase.master.TableOperation.process(TableOperation.java:143)
>    at org.apache.hadoop.hbase.master.HMaster.addColumn(HMaster.java:671)
>    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:632)
>    at
> org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:912)
>

Mime
View raw message