Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to activate HBase Bulk Delete?

avatar

BulkDelete is not active by default and i'm trying to add to coprocessor region and restart, it didn't work. When i describe table i don't see bulk delete active

 

Here is my property value, i have appended BulkDelete property value to existing and restarted. 

 

<name>hbase.coprocessor.region.classes</name>
<value>org.apache.hadoop.hbase.security.token.TokenProvider,org.apache.hadoop.hbase.security.access.AccessController,org.apache.hadoop.hbase.coprocessor.example.BulkDeleteEndpoint</value>

 

Any help would be apreciated. 

 

Thanks,

Asif

1 ACCEPTED SOLUTION

avatar
Rising Star

Hi Asif,

 

You will need to do some code for that. Create a small table, put some data in it and call the bulk delete.

 

Here is an example:

https://github.com/apache/hbase/blob/master/hbase-examples/src/test/java/org/apache/hadoop/hbase/cop...

 

You might be able to re-use most of this code.

 

JM

 

 

View solution in original post

3 REPLIES 3

avatar
Rising Star

Hi Asif,

 

Bulk Delete is an EndPoint coprocessor. Therefore, it is not related to a specific table, but more loaded for a RegionServer.

 

Because of that, you will not see it when you will describe a table from the shell because it is not attached to that specific table.

 

Only observers are attached to the tables and are displayed in the describe command.

 

HTH,

 

Jean-Marc

avatar
Thanks Jims.

Any easy way to test this bulkdelete as a admin?

avatar
Rising Star

Hi Asif,

 

You will need to do some code for that. Create a small table, put some data in it and call the bulk delete.

 

Here is an example:

https://github.com/apache/hbase/blob/master/hbase-examples/src/test/java/org/apache/hadoop/hbase/cop...

 

You might be able to re-use most of this code.

 

JM