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

Querying Index Information

Scenarios

You can use the global secondary index tool to view the definition and status of indexes related to a data table in batches.

How to Use

Run the following command on the HBase client to view the definition and status of the index:

Indicates the name of the hbase org.apache.hadoop.hbase.hindex.global.mapreduce.GlobalTableIndexer -Dtablename.to.show=' data table.'

Figure 1 shows the query result. The index column definition, overwrite column definition, TTL, pre-partition information, and index status are printed.

Figure 1 Index query result