diff --git a/src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md b/src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md index 5410373fa..f861a815c 100644 --- a/src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md +++ b/src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md @@ -194,6 +194,38 @@ IoTDB> SHOW CURRENT_TIMESTAMP +-----------------------------+ ``` + +### 1.8 Viewing Region Information + +**Description**: Displays regions' information of the current cluster. + +**Syntax**: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW REGIONS +``` + +**Result**: + +```SQL ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 6|SchemaRegion|Running|tcollector| 670| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.194| | +| 7| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.196| 169.85 KB| +| 8| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.198| 161.63 KB| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. Status Configuration ### 2.1 Set Connection Tree/Table Model diff --git a/src/UserGuide/Master/Table/User-Manual/Maintenance-commands.md b/src/UserGuide/Master/Table/User-Manual/Maintenance-commands.md index 2f60fa005..a00c7e6b4 100644 --- a/src/UserGuide/Master/Table/User-Manual/Maintenance-commands.md +++ b/src/UserGuide/Master/Table/User-Manual/Maintenance-commands.md @@ -306,6 +306,38 @@ IoTDB> SHOW QUERIES WHERE elapsed_time > 30; +-----------------------+-----------------------------+-----------+------------+------------+----+ ``` + +### 1.9 Viewing Region Information + +**Description**: Displays regions' information of the current cluster. + +**Syntax**: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW REGIONS +``` + +**Result**: + +```SQL ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 6|SchemaRegion|Running|tcollector| 670| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.194| | +| 7| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.196| 169.85 KB| +| 8| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.198| 161.63 KB| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. Status Setting ### 2.1 Setting the Connected Model diff --git a/src/UserGuide/Master/Tree/User-Manual/Maintenance-commands.md b/src/UserGuide/Master/Tree/User-Manual/Maintenance-commands.md index 79d5e6f84..1f317e179 100644 --- a/src/UserGuide/Master/Tree/User-Manual/Maintenance-commands.md +++ b/src/UserGuide/Master/Tree/User-Manual/Maintenance-commands.md @@ -213,6 +213,38 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003 ``` +### 1.6 Viewing Region Information + +**Description**: Displays regions' information of the current cluster. + +**Syntax**: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW REGIONS +``` + +**Result**: + +```SQL ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 9|SchemaRegion|Running|root.__system| 21| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.555| | +| 10| DataRegion|Running|root.__system| 21| 21| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.556| 8.27 KB| +| 65|SchemaRegion|Running| root.ln| 1| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.113| | +| 66| DataRegion|Running| root.ln| 1| 1| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.425| 524 B| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. Status Setting ### 2.1 Setting the Connected Model diff --git a/src/UserGuide/V1.3.x/User-Manual/Maintenance-commands.md b/src/UserGuide/V1.3.x/User-Manual/Maintenance-commands.md index 130f3f797..9168ac26e 100644 --- a/src/UserGuide/V1.3.x/User-Manual/Maintenance-commands.md +++ b/src/UserGuide/V1.3.x/User-Manual/Maintenance-commands.md @@ -185,6 +185,38 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003 ``` +### 1.5 Viewing Region Information + +**Description**: Displays regions' information of the current cluster. + +**Syntax**: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW REGIONS +``` + +**Result**: + +```SQL ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 9|SchemaRegion|Running|root.__system| 21| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.555| | +| 10| DataRegion|Running|root.__system| 21| 21| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.556| 8.27 KB| +| 65|SchemaRegion|Running| root.ln| 1| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.113| | +| 66| DataRegion|Running| root.ln| 1| 1| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.425| 524 B| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. Status Setting ### 2.1 Updating Configuration Items diff --git a/src/UserGuide/dev-1.3/User-Manual/Maintenance-commands.md b/src/UserGuide/dev-1.3/User-Manual/Maintenance-commands.md index 130f3f797..9168ac26e 100644 --- a/src/UserGuide/dev-1.3/User-Manual/Maintenance-commands.md +++ b/src/UserGuide/dev-1.3/User-Manual/Maintenance-commands.md @@ -185,6 +185,38 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003 ``` +### 1.5 Viewing Region Information + +**Description**: Displays regions' information of the current cluster. + +**Syntax**: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW REGIONS +``` + +**Result**: + +```SQL ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 9|SchemaRegion|Running|root.__system| 21| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.555| | +| 10| DataRegion|Running|root.__system| 21| 21| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.556| 8.27 KB| +| 65|SchemaRegion|Running| root.ln| 1| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.113| | +| 66| DataRegion|Running| root.ln| 1| 1| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.425| 524 B| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. Status Setting ### 2.1 Updating Configuration Items diff --git a/src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md b/src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md index 5410373fa..f861a815c 100644 --- a/src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md +++ b/src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md @@ -194,6 +194,38 @@ IoTDB> SHOW CURRENT_TIMESTAMP +-----------------------------+ ``` + +### 1.8 Viewing Region Information + +**Description**: Displays regions' information of the current cluster. + +**Syntax**: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW REGIONS +``` + +**Result**: + +```SQL ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 6|SchemaRegion|Running|tcollector| 670| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.194| | +| 7| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.196| 169.85 KB| +| 8| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.198| 161.63 KB| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. Status Configuration ### 2.1 Set Connection Tree/Table Model diff --git a/src/UserGuide/latest-Table/User-Manual/Maintenance-commands.md b/src/UserGuide/latest-Table/User-Manual/Maintenance-commands.md index ea9533fb4..a00c7e6b4 100644 --- a/src/UserGuide/latest-Table/User-Manual/Maintenance-commands.md +++ b/src/UserGuide/latest-Table/User-Manual/Maintenance-commands.md @@ -307,6 +307,37 @@ IoTDB> SHOW QUERIES WHERE elapsed_time > 30; ``` +### 1.9 Viewing Region Information + +**Description**: Displays regions' information of the current cluster. + +**Syntax**: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW REGIONS +``` + +**Result**: + +```SQL ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 6|SchemaRegion|Running|tcollector| 670| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.194| | +| 7| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.196| 169.85 KB| +| 8| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.198| 161.63 KB| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. Status Setting ### 2.1 Setting the Connected Model diff --git a/src/UserGuide/latest/User-Manual/Maintenance-commands.md b/src/UserGuide/latest/User-Manual/Maintenance-commands.md index 79d5e6f84..e207d2fca 100644 --- a/src/UserGuide/latest/User-Manual/Maintenance-commands.md +++ b/src/UserGuide/latest/User-Manual/Maintenance-commands.md @@ -212,6 +212,37 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003 +-----------------------------+-----------------------+----------+-----------+--------------------------------------+ ``` +### 1.6 Viewing Region Information + +**Description**: Displays regions' information of the current cluster. + +**Syntax**: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +**Example**: + +```SQL +IoTDB> SHOW REGIONS +``` + +**Result**: + +```SQL ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 9|SchemaRegion|Running|root.__system| 21| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.555| | +| 10| DataRegion|Running|root.__system| 21| 21| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.556| 8.27 KB| +| 65|SchemaRegion|Running| root.ln| 1| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.113| | +| 66| DataRegion|Running| root.ln| 1| 1| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.425| 524 B| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + ## 2. Status Setting diff --git a/src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md b/src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md index b931d0c55..4cbaab550 100644 --- a/src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md +++ b/src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md @@ -194,6 +194,38 @@ IoTDB> SHOW CURRENT_TIMESTAMP +-----------------------------+ ``` + +### 1.8 查看分区信息 + +**含义**:返回当前集群的分区信息。 + +#### 语法: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW REGIONS +``` + +执行结果如下: + +```SQL ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 6|SchemaRegion|Running|tcollector| 670| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.194| | +| 7| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.196| 169.85 KB| +| 8| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.198| 161.63 KB| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. 状态设置 ### 2.1 设置连接的树/表模型 diff --git a/src/zh/UserGuide/Master/Table/User-Manual/Maintenance-statement.md b/src/zh/UserGuide/Master/Table/User-Manual/Maintenance-statement.md index ff6e35dbf..e597f012c 100644 --- a/src/zh/UserGuide/Master/Table/User-Manual/Maintenance-statement.md +++ b/src/zh/UserGuide/Master/Table/User-Manual/Maintenance-statement.md @@ -306,6 +306,38 @@ IoTDB> SHOW QUERIES WHERE elapsed_time > 30 +-----------------------+-----------------------------+-----------+------------+------------+----+ ``` + +### 1.9 查看分区信息 + +**含义**:返回当前集群的分区信息。 + +#### 语法: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW REGIONS +``` + +执行结果如下: + +```SQL ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 6|SchemaRegion|Running|tcollector| 670| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.194| | +| 7| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.196| 169.85 KB| +| 8| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.198| 161.63 KB| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. 状态设置 ### 2.1 设置连接的模型 diff --git a/src/zh/UserGuide/Master/Tree/User-Manual/Maintenance-statement.md b/src/zh/UserGuide/Master/Tree/User-Manual/Maintenance-statement.md index 3c3c877a0..d586dd1a2 100644 --- a/src/zh/UserGuide/Master/Tree/User-Manual/Maintenance-statement.md +++ b/src/zh/UserGuide/Master/Tree/User-Manual/Maintenance-statement.md @@ -212,6 +212,38 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003 +-----------------------------+-----------------------+----------+-----------+--------------------------------------+ ``` +### 1.6 查看分区信息 + +**含义**:返回当前集群的分区信息。 + +#### 语法: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW REGIONS +``` + +执行结果如下: + +```SQL ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 9|SchemaRegion|Running|root.__system| 21| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.555| | +| 10| DataRegion|Running|root.__system| 21| 21| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.556| 8.27 KB| +| 65|SchemaRegion|Running| root.ln| 1| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.113| | +| 66| DataRegion|Running| root.ln| 1| 1| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.425| 524 B| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. 状态设置 ### 2.1 设置连接的模型 diff --git a/src/zh/UserGuide/V1.3.x/User-Manual/Maintenance-statement.md b/src/zh/UserGuide/V1.3.x/User-Manual/Maintenance-statement.md index d03d2c9c4..935e4525b 100644 --- a/src/zh/UserGuide/V1.3.x/User-Manual/Maintenance-statement.md +++ b/src/zh/UserGuide/V1.3.x/User-Manual/Maintenance-statement.md @@ -184,6 +184,39 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003 +-----------------------------+-----------------------+----------+-----------+--------------------------------------+ ``` + +### 1.5 查看分区信息 + +**含义**:返回当前集群的分区信息。 + +#### 语法: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW REGIONS +``` + +执行结果如下: + +```SQL ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 9|SchemaRegion|Running|root.__system| 21| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.555| | +| 10| DataRegion|Running|root.__system| 21| 21| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.556| 8.27 KB| +| 65|SchemaRegion|Running| root.ln| 1| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.113| | +| 66| DataRegion|Running| root.ln| 1| 1| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.425| 524 B| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. 状态设置 ### 2.1 更新配置项 diff --git a/src/zh/UserGuide/dev-1.3/User-Manual/Maintenance-statement.md b/src/zh/UserGuide/dev-1.3/User-Manual/Maintenance-statement.md index 188e2504b..3d877dd3b 100644 --- a/src/zh/UserGuide/dev-1.3/User-Manual/Maintenance-statement.md +++ b/src/zh/UserGuide/dev-1.3/User-Manual/Maintenance-statement.md @@ -184,6 +184,37 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003 +-----------------------------+-----------------------+----------+-----------+--------------------------------------+ ``` +### 1.5 查看分区信息 + +**含义**:返回当前集群的分区信息。 + +#### 语法: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW REGIONS +``` + +执行结果如下: + +```SQL ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 9|SchemaRegion|Running|root.__system| 21| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.555| | +| 10| DataRegion|Running|root.__system| 21| 21| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.556| 8.27 KB| +| 65|SchemaRegion|Running| root.ln| 1| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.113| | +| 66| DataRegion|Running| root.ln| 1| 1| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.425| 524 B| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + ## 2. 状态设置 ### 2.1 更新配置项 diff --git a/src/zh/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md b/src/zh/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md index b931d0c55..99c29c3a3 100644 --- a/src/zh/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md +++ b/src/zh/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md @@ -194,6 +194,37 @@ IoTDB> SHOW CURRENT_TIMESTAMP +-----------------------------+ ``` +### 1.8 查看分区信息 + +**含义**:返回当前集群的分区信息。 + +#### 语法: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW REGIONS +``` + +执行结果如下: + +```SQL ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 6|SchemaRegion|Running|tcollector| 670| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.194| | +| 7| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.196| 169.85 KB| +| 8| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.198| 161.63 KB| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. 状态设置 ### 2.1 设置连接的树/表模型 diff --git a/src/zh/UserGuide/latest-Table/User-Manual/Maintenance-statement.md b/src/zh/UserGuide/latest-Table/User-Manual/Maintenance-statement.md index ff6e35dbf..937912878 100644 --- a/src/zh/UserGuide/latest-Table/User-Manual/Maintenance-statement.md +++ b/src/zh/UserGuide/latest-Table/User-Manual/Maintenance-statement.md @@ -306,6 +306,37 @@ IoTDB> SHOW QUERIES WHERE elapsed_time > 30 +-----------------------+-----------------------------+-----------+------------+------------+----+ ``` +### 1.9 查看分区信息 + +**含义**:返回当前集群的分区信息。 + +#### 语法: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW REGIONS +``` + +执行结果如下: + +```SQL ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 6|SchemaRegion|Running|tcollector| 670| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.194| | +| 7| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.196| 169.85 KB| +| 8| DataRegion|Running|tcollector| 335| 335| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.198| 161.63 KB| ++--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. 状态设置 ### 2.1 设置连接的模型 diff --git a/src/zh/UserGuide/latest/User-Manual/Maintenance-statement.md b/src/zh/UserGuide/latest/User-Manual/Maintenance-statement.md index 3c3c877a0..bb2e5f358 100644 --- a/src/zh/UserGuide/latest/User-Manual/Maintenance-statement.md +++ b/src/zh/UserGuide/latest/User-Manual/Maintenance-statement.md @@ -212,6 +212,39 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003 +-----------------------------+-----------------------+----------+-----------+--------------------------------------+ ``` + +### 1.6 查看分区信息 + +**含义**:返回当前集群的分区信息。 + +#### 语法: + +```SQL +showRegionsStatement + : SHOW REGIONS + ; +``` + +#### 示例: + +```SQL +IoTDB> SHOW REGIONS +``` + +执行结果如下: + +```SQL ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +|RegionId| Type| Status| Database|SeriesSlotNum|TimeSlotNum|DataNodeId|RpcAddress|RpcPort|InternalAddress| Role| CreateTime|TsFileSize| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +| 9|SchemaRegion|Running|root.__system| 21| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.555| | +| 10| DataRegion|Running|root.__system| 21| 21| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-01T17:37:01.556| 8.27 KB| +| 65|SchemaRegion|Running| root.ln| 1| 0| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.113| | +| 66| DataRegion|Running| root.ln| 1| 1| 1| 0.0.0.0| 6667| 127.0.0.1|Leader|2025-08-25T14:46:50.425| 524 B| ++--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+ +``` + + ## 2. 状态设置 ### 2.1 设置连接的模型