Updated on 2024-10-09 GMT+08:00

Querying an HBase Global Secondary Index

Scenarios

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

Querying an HBase Global Secondary Index

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