Skip to content

Commit 7ea1bd6

Browse files
authored
add show available urls to maintenance statements from 208 (#973)
1 parent c1da9f4 commit 7ea1bd6

File tree

16 files changed

+483
-4
lines changed

16 files changed

+483
-4
lines changed

src/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ IoTDB> SHOW CURRENT_TIMESTAMP
195195
```
196196

197197

198-
### 1.8 Viewing Region Information
198+
### 1.8 View Region Information
199199

200200
**Description**: Displays regions' information of the current cluster.
201201

@@ -225,6 +225,36 @@ IoTDB> SHOW REGIONS
225225
+--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
226226
```
227227

228+
### 1.9 View Available Nodes
229+
230+
**Description**: Returns the RPC addresses and ports of all available DataNodes in the current cluster. Note: A DataNode is considered "available" if it is not in the REMOVING state.
231+
232+
> This feature is supported starting from v2.0.8.
233+
234+
**Syntax**:
235+
236+
```SQL
237+
showAvailableUrlsStatement
238+
: SHOW AVAILABLE URLS
239+
;
240+
```
241+
242+
**Example**:
243+
244+
```SQL
245+
IoTDB> SHOW AVAILABLE URLS
246+
```
247+
248+
**Result**:
249+
250+
```SQL
251+
+----------+-------+
252+
|RpcAddress|RpcPort|
253+
+----------+-------+
254+
| 0.0.0.0| 6667|
255+
+----------+-------+
256+
```
257+
228258

229259
## 2. Status Configuration
230260

src/UserGuide/Master/Table/User-Manual/Maintenance-commands_apache.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,36 @@ IoTDB> SHOW REGIONS
337337
+--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
338338
```
339339

340+
### 1.10 Viewing Available Nodes
341+
342+
**Description**: Returns the RPC addresses and ports of all available DataNodes in the current cluster. Note: A DataNode is considered "available" if it is not in the REMOVING state.
343+
344+
> This feature is supported starting from v2.0.8.
345+
346+
**Syntax**:
347+
348+
```SQL
349+
showAvailableUrlsStatement
350+
: SHOW AVAILABLE URLS
351+
;
352+
```
353+
354+
**Example**:
355+
356+
```SQL
357+
IoTDB> SHOW AVAILABLE URLS
358+
```
359+
360+
**Result**:
361+
362+
```SQL
363+
+----------+-------+
364+
|RpcAddress|RpcPort|
365+
+----------+-------+
366+
| 0.0.0.0| 6667|
367+
+----------+-------+
368+
```
369+
340370

341371
## 2. Status Setting
342372

src/UserGuide/Master/Table/User-Manual/Maintenance-commands_timecho.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,36 @@ IoTDB> SHOW REGIONS
337337
+--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
338338
```
339339

340+
### 1.10 Viewing Available Nodes
341+
342+
**Description**: Returns the RPC addresses and ports of all available DataNodes in the current cluster. Note: A DataNode is considered "available" if it is not in the REMOVING state.
343+
344+
> This feature is supported starting from v2.0.8.
345+
346+
**Syntax**:
347+
348+
```SQL
349+
showAvailableUrlsStatement
350+
: SHOW AVAILABLE URLS
351+
;
352+
```
353+
354+
**Example**:
355+
356+
```SQL
357+
IoTDB> SHOW AVAILABLE URLS
358+
```
359+
360+
**Result**:
361+
362+
```SQL
363+
+----------+-------+
364+
|RpcAddress|RpcPort|
365+
+----------+-------+
366+
| 0.0.0.0| 6667|
367+
+----------+-------+
368+
```
369+
340370

341371
## 2. Status Setting
342372

src/UserGuide/Master/Tree/User-Manual/Maintenance-commands.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,6 @@ IoTDB> SHOW QUERIES WHERE elapsedtime > 0.003
212212
+-----------------------------+-----------------------+----------+-----------+--------------------------------------+
213213
```
214214

215-
216215
### 1.6 Viewing Region Information
217216

218217
**Description**: Displays regions' information of the current cluster.
@@ -244,6 +243,36 @@ IoTDB> SHOW REGIONS
244243
+--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
245244
```
246245

246+
### 1.7 Viewing Available Nodes
247+
248+
**Description**: Returns the RPC addresses and ports of all available DataNodes in the current cluster. Note: A DataNode is considered "available" if it is not in the REMOVING state.
249+
250+
> This feature is supported starting from v2.0.8.
251+
252+
**Syntax**:
253+
254+
```SQL
255+
showAvailableUrlsStatement
256+
: SHOW AVAILABLE URLS
257+
;
258+
```
259+
260+
**Example**:
261+
262+
```SQL
263+
IoTDB> SHOW AVAILABLE URLS
264+
```
265+
266+
**Result**:
267+
268+
```SQL
269+
+----------+-------+
270+
|RpcAddress|RpcPort|
271+
+----------+-------+
272+
| 0.0.0.0| 6667|
273+
+----------+-------+
274+
```
275+
247276

248277
## 2. Status Setting
249278

src/UserGuide/latest-Table/SQL-Manual/SQL-Maintenance-Statements.md

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ IoTDB> SHOW CURRENT_TIMESTAMP
195195
```
196196

197197

198-
### 1.8 Viewing Region Information
198+
### 1.8 View Region Information
199199

200200
**Description**: Displays regions' information of the current cluster.
201201

@@ -225,6 +225,36 @@ IoTDB> SHOW REGIONS
225225
+--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
226226
```
227227

228+
### 1.9 View Available Nodes
229+
230+
**Description**: Returns the RPC addresses and ports of all available DataNodes in the current cluster. Note: A DataNode is considered "available" if it is not in the REMOVING state.
231+
232+
> This feature is supported starting from v2.0.8.
233+
234+
**Syntax**:
235+
236+
```SQL
237+
showAvailableUrlsStatement
238+
: SHOW AVAILABLE URLS
239+
;
240+
```
241+
242+
**Example**:
243+
244+
```SQL
245+
IoTDB> SHOW AVAILABLE URLS
246+
```
247+
248+
**Result**:
249+
250+
```SQL
251+
+----------+-------+
252+
|RpcAddress|RpcPort|
253+
+----------+-------+
254+
| 0.0.0.0| 6667|
255+
+----------+-------+
256+
```
257+
228258

229259
## 2. Status Configuration
230260

src/UserGuide/latest-Table/User-Manual/Maintenance-commands_apache.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,36 @@ IoTDB> SHOW REGIONS
337337
+--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
338338
```
339339

340+
### 1.10 Viewing Available Nodes
341+
342+
**Description**: Returns the RPC addresses and ports of all available DataNodes in the current cluster. Note: A DataNode is considered "available" if it is not in the REMOVING state.
343+
344+
> This feature is supported starting from v2.0.8.
345+
346+
**Syntax**:
347+
348+
```SQL
349+
showAvailableUrlsStatement
350+
: SHOW AVAILABLE URLS
351+
;
352+
```
353+
354+
**Example**:
355+
356+
```SQL
357+
IoTDB> SHOW AVAILABLE URLS
358+
```
359+
360+
**Result**:
361+
362+
```SQL
363+
+----------+-------+
364+
|RpcAddress|RpcPort|
365+
+----------+-------+
366+
| 0.0.0.0| 6667|
367+
+----------+-------+
368+
```
369+
340370

341371
## 2. Status Setting
342372

src/UserGuide/latest-Table/User-Manual/Maintenance-commands_timecho.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,36 @@ IoTDB> SHOW REGIONS
337337
+--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
338338
```
339339

340+
### 1.10 Viewing Available Nodes
341+
342+
**Description**: Returns the RPC addresses and ports of all available DataNodes in the current cluster. Note: A DataNode is considered "available" if it is not in the REMOVING state.
343+
344+
> This feature is supported starting from v2.0.8.
345+
346+
**Syntax**:
347+
348+
```SQL
349+
showAvailableUrlsStatement
350+
: SHOW AVAILABLE URLS
351+
;
352+
```
353+
354+
**Example**:
355+
356+
```SQL
357+
IoTDB> SHOW AVAILABLE URLS
358+
```
359+
360+
**Result**:
361+
362+
```SQL
363+
+----------+-------+
364+
|RpcAddress|RpcPort|
365+
+----------+-------+
366+
| 0.0.0.0| 6667|
367+
+----------+-------+
368+
```
369+
340370

341371
## 2. Status Setting
342372

src/UserGuide/latest/User-Manual/Maintenance-commands.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,36 @@ IoTDB> SHOW REGIONS
243243
+--------+------------+-------+-------------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
244244
```
245245

246+
### 1.7 Viewing Available Nodes
247+
248+
**Description**: Returns the RPC addresses and ports of all available DataNodes in the current cluster. Note: A DataNode is considered "available" if it is not in the REMOVING state.
249+
250+
> This feature is supported starting from v2.0.8.
251+
252+
**Syntax**:
253+
254+
```SQL
255+
showAvailableUrlsStatement
256+
: SHOW AVAILABLE URLS
257+
;
258+
```
259+
260+
**Example**:
261+
262+
```SQL
263+
IoTDB> SHOW AVAILABLE URLS
264+
```
265+
266+
**Result**:
267+
268+
```SQL
269+
+----------+-------+
270+
|RpcAddress|RpcPort|
271+
+----------+-------+
272+
| 0.0.0.0| 6667|
273+
+----------+-------+
274+
```
275+
246276

247277
## 2. Status Setting
248278

src/zh/UserGuide/Master/Table/SQL-Manual/SQL-Maintenance-Statements.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,6 @@ IoTDB> SHOW CURRENT_TIMESTAMP
194194
+-----------------------------+
195195
```
196196

197-
198197
### 1.8 查看分区信息
199198

200199
**含义**:返回当前集群的分区信息。
@@ -225,6 +224,36 @@ IoTDB> SHOW REGIONS
225224
+--------+------------+-------+----------+-------------+-----------+----------+----------+-------+---------------+------+-----------------------+----------+
226225
```
227226

227+
### 1.9 查看可用节点
228+
229+
**含义**:返回当前集群所有可用的 DataNode 的 RPC 地址和端口。注意:这里对于“可用”的定义为:处于非 REMOVING 状态的 DN 节点。
230+
231+
> V2.0.8 起支持该功能
232+
233+
#### 语法:
234+
235+
```SQL
236+
showAvailableUrlsStatement
237+
: SHOW AVAILABLE URLS
238+
;
239+
```
240+
241+
#### 示例:
242+
243+
```SQL
244+
IoTDB> SHOW AVAILABLE URLS
245+
```
246+
247+
执行结果如下:
248+
249+
```SQL
250+
+----------+-------+
251+
|RpcAddress|RpcPort|
252+
+----------+-------+
253+
| 0.0.0.0| 6667|
254+
+----------+-------+
255+
```
256+
228257

229258
## 2. 状态设置
230259

0 commit comments

Comments
 (0)