You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by bharath vissapragada <bh...@students.iiit.ac.in> on 2009/07/08 16:18:22 UTC
TableNotDisabled Exception
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)
Re: TableNotDisabled Exception
Posted by Jean-Daniel Cryans <jd...@apache.org>.
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<bh...@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)
>
Re: TableNotDisabled Exception
Posted by stack <st...@duboce.net>.
Try running disable again if drop complains it not disabled.
St.Ack
On Wed, Jul 8, 2009 at 7: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)
>