Updated on 2024-05-29 GMT+08:00

Deleting an Index

Scenarios

You can use the global secondary index tool to delete an index.

How to Use

Run the following command on the HBase client to delete an index:

hbase org.apache.hadoop.hbase.hindex.global.mapreduce.GlobalTableIndexer -Dtablename.to.index='table' -Dindexnames.to.drop='idx1#idx2'

The parameters are described as follows:

  • tablename.to.index: indicates the name of the table where the index to be deleted is located.
  • indexnames.to.drop: indicates the name of the index to be deleted. You can specify multiple indexes and separate them with number signs (#).