Hello!

Thank you for your responses. I'm working on  0.90.1-cdh3u1-SNAPSHOT. Yes,
if I have the following scenario:
1. disable table
2. delete table
3. create table

 if I don't put the guard not(HBaseAdmin.tableExists(hbTable)) before creating 
rhe table (at step 3) the  then it will end up in 
org.apache.hadoop.hbase.TableExistsException. 
Regards,
  Florin  

--- On Fri, 7/1/11, Ted Yu <[email protected]> wrote:

> From: Ted Yu <[email protected]>
> Subject: Re: Possible issue when creating/deleting HBase table multiple times
> To: [email protected]
> Cc: [email protected]
> Date: Friday, July 1, 2011, 6:10 PM
> Seems to be a CDH question.
> 
> On Fri, Jul 1, 2011 at 3:07 PM, Stack <[email protected]>
> wrote:
> 
> > And if you try to create it says its already there?
> >
> > We have a job that does this over and over every few
> minutes and its
> > been running for months on end.  I wonder whats
> different.  You are on
> > 0.90.3?
> >
> > St.Ack
> >
> > On Fri, Jul 1, 2011 at 12:59 AM, Florin P <[email protected]>
> wrote:
> > > Hello!
> > >   I'm using HBase
> 0.90.1-cdh3u1-SNAPSHOT. Running the attached
> > code(adapted after sujee at sujee.net), after a while
> > > I was getting the below exception. The main
> scenario is like this:
> > >
> > > 1. if table does not exist, create it
> > > 2. populate the table with some data
> > > 3. flush the data
> > > 4. close the table
> > > 5. disable table
> > > 6. drop table
> > > 7. repeat steps 1-6 for several times. After a
> while you'll get the
> > mentioned error.
> > >  Please help.
> > >
> > > Regards,
> > >  Florin
> > >
> > > org.apache.hadoop.hbase.TableNotFoundException:
> > org.apache.hadoop.hbase.TableNotFoundException:
> use_case_drop
> > >        at
> sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> > >        at
> >
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
> > >        at
> >
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
> > >        at
> java.lang.reflect.Constructor.newInstance(Constructor.java:513)
> > >        at
> >
> org.apache.hadoop.ipc.RemoteException.instantiateException(RemoteException.java:95)
> > >        at
> >
> org.apache.hadoop.ipc.RemoteException.unwrapRemoteException(RemoteException.java:79)
> > >        at
> >
> org.apache.hadoop.hbase.client.HBaseAdmin.disableTableAsync(HBaseAdmin.java:531)
> > >        at
> >
> org.apache.hadoop.hbase.client.HBaseAdmin.disableTable(HBaseAdmin.java:550)
> > >        at
> >
> org.apache.hadoop.hbase.client.HBaseAdmin.disableTable(HBaseAdmin.java:538)
> > >        at
> com.sample.hbase.HBaseDropCreate.main(HBaseDropCreate.java:80)
> > >
> > >
> >
>

Reply via email to