Updated on 2024-12-24 GMT+08:00

Deleting Indexes

Scenario

You can use the GSI tool to delete an index.

Usage

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.
  • indexnames.to.drop: indicates the name of the index to be deleted. You can specify multiple indexes and separate them with number signs (#).