Okay.. so add_table can be run even if there is an existing table by the same name on the new DFS? Can you give me a basic idea of how add_table works/what it really does inside? I am basically interested in dumping processed HBase data into backup servers instead of dumping raw data. That would save me a lot of space and headache in the event of a system crash etc. Is add_table reliable for this?
thanks, hari On Thu, Nov 18, 2010 at 10:08 PM, Andrew Purtell <[email protected]>wrote: > I would say "yes", conditionally. > > But indeed you have to use add_table.rb to add the copied over regions to > the META region of the target cluster. > > And of course if you copy over table data as HFiles you have to at least > disable the table on the source cluster or shut it down before the copy, so > to be sure all pending writes are flushed from memstore to disk and that > splits and compactions do not run while you are copying. Splits/compactions > change hfile layout on disk. You must freeze the table so your copy is > consistent (source data remains unchanged start to finish). > > Best regards, > > - Andy > > > --- On Wed, 11/17/10, Lars George <[email protected]> wrote: > > > From: Lars George <[email protected]> > > Subject: Re: Restoring table from HFiles > > To: [email protected] > > Date: Wednesday, November 17, 2010, 11:51 PM > > I would not say "no" immediately. I > > know some have done so (given the > > version was the same) and used add_table.rb to add the > > table to META. > > YMMV. > > > > Lars > > > > On Thu, Nov 18, 2010 at 6:01 AM, Ted Yu <[email protected]> > > wrote: > > > No. > > > > > > See https://issues.apache.org/jira/browse/HBASE-1684 > > > > > > On Wed, Nov 17, 2010 at 8:25 PM, Hari Sreekumar < > [email protected]>wrote: > > > > > >> Hi, > > >> > > >> I just wanted to know if it is possible to > > copy an HBase table into > > >> another HDFS by simply copying the > > <tablename> directory from old HDFS to > > >> local system and dumping it into it into new > > HDFS? > > >> > > >> thanks, > > >> hari > > >> > > > > > > > > >
