Ok , I see. Is it possible to do it using one map/reduce job. Map phase will scan required rows using filter. Reduce phase use this row and delete it from the table. My question is it possible to execute delete using reducers and not executing it from a single client. Also can I use the same table as source and sink in the same job?
On Tue, Jun 19, 2012 at 1:18 AM, Jean-Daniel Cryans <[email protected]>wrote: > In order to delete a row in HBase you need to know that it exists, so > the way I'd go around this is running a MR job that scans and for each > row that matches the filter would emit a Delete. > > Hope this helps, > > J-D > > On Mon, Jun 18, 2012 at 3:08 PM, Oleg Ruchovets <[email protected]> > wrote: > > Hi , > > I need to delete rows from hbase table by criteria. > > For example I need to delete all rows started with "12345". > > I didn't find a way to set a row prefix for delete operation. > > What is the best way ( practice ) to delete rows by criteria from hbase > > table? > > > > Thanks in advance. > > Oleg. >
