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

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

#### 使用方法

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

```
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
```
