Deleting an Index
If an index is no longer needed, you can run the command to delete it.
How to Use
Run the following command to delete an index:
hbase com.huawei.boostkit.hindex.mapreduce.GlobalTableIndexer -Dtablename.to.index=tablename -Dindexnames.to.drop='idx_0#idx_1'
- If an exception occurs during index deletion, the index table may become inconsistent with the metadata. In this case, manual verification is required. If the metadata does not exist, delete the associated index table.
- An index in the BUILDING or DROPPING state cannot be deleted. You can change the index status to INACTIVE and then delete the index.
- Parameter description:
- tablename.to.index: Name of the data table where the index to be deleted is located.
- indexnames.to.drop: Name of the index to be deleted. You can specify multiple indexes and separate them with number signs (#).
Parent topic: Using the Feature