Rate This Document
Findability
Accuracy
Completeness
Readability

Building Index Data

Only when an index table is in the INACTIVE state, you can use the index build tool to fill in the index data. If you need to rebuild index data, change the index status to INACTIVE first. After the index data is rebuilt, the index status automatically changes to ACTIVE.

If a data table contains a large amount of data, the build takes a long time. You are advised to run the nohup command in the background to prevent the operation from being interrupted unexpectedly.

Run the following command to batch build index data of a data table:

hbase com.huawei.boostkit.hindex.mapreduce.GlobalTableIndexer -Dtablename.to.index=tablename -Dindexnames.to.build='idx_0'

Parameter description:

  • tablename.to.index: Name of the data table where the index whose status you want to change is located.
  • indexnames.to.build: Name of the index for which data needs to be built in batches. You can specify multiple indexes and separate them with number signs (#).