---
title: 查询索引
description: "索引创建完成后可使用命令查询索引相关信息，包括索引列定义、覆盖列定义、索引状态等。"
url: https://www.hikunpeng.com/document/detail/zh/kunpengboostkithistory/2300/bds/kunpengbds_omniruntime_20_0201.html
sourcePath: /source/zh/kunpengboostkithistory/2300/bds/kunpengbds_omniruntime_20_0201.html
indexId: 734dca2cc54ee46776242d3baa9c5485a407f1df9381ad9edef123131933babc78
---
# 查询索引

索引创建完成后可使用命令查询索引相关信息，包括索引列定义、覆盖列定义、索引状态等。

#### 使用方法

执行以下命令可查看索引的定义及状态。

```
hbase com.huawei.boostkit.hindex.mapreduce.GlobalTableIndexer -Dtablename.to.show=
tablename
```

查询结果会打印索引列定义、覆盖列定义、索引状态等，如下所示。

```
The index information of table :
IndexName : idx_0, IndexColumns : [cf_0:q_0 -> type:STRING, cf_0:q_1 -> type:STRING], CoveredColumns : [cf_0:q_0 -> type:STRING], IndexState : ACTIVE
IndexName : idx_1, IndexColumns : [cf_0:q_0 -> type:STRING, cf_0:q_1 -> type:STRING, cf_0:q_2 -> type:STRING], CoveredColumns : [], IndexState : ACTIVE
```
