Skip to content

Commit 746e2fb

Browse files
authored
Fix open source cluster deployment startup CLI (#634)
1 parent 3515a8d commit 746e2fb

File tree

12 files changed

+83
-30
lines changed

12 files changed

+83
-30
lines changed

src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,17 @@ On each server, navigate to the `sbin` directory and start the DataNode:
157157
./start-datanode.sh -d # The "-d" flag starts the process in the background.
158158
```
159159

160-
### 3.6 Verify Activation
160+
### 3.6 Start CLI
161161

162-
Check the `ClusterActivationStatus` field. If it shows `ACTIVATED`, the database has been successfully activated.
162+
Enter the IoTDB CLI.
163+
164+
```SQL
165+
# For Linux or macOS
166+
./start-cli.sh -sql_dialect table
167+
168+
# For Windows
169+
./start-cli.bat -sql_dialect table
170+
```
163171

164172
## 4. Maintenance
165173

src/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Enter the container, log in to the database through CLI, and use the `show clust
166166

167167
```SQL
168168
docker exec -it iotdb /bin/bash #Entering the container
169-
./start-cli.sh -h iotdb #Log in to the database
169+
./start-cli.sh -sql_dialect table -h iotdb #Log in to the database
170170
IoTDB> show cluster #View status
171171
```
172172

@@ -370,7 +370,7 @@ docker-compose -f datanode.yml up -d #Background startup
370370

371371
```SQL
372372
docker exec -it iotdb-datanode /bin/bash #Entering the container
373-
./start-cli.sh -h iotdb-1 #Log in to the database
373+
./start-cli.sh -sql_dialect table -h iotdb-1 #Log in to the database
374374
IoTDB> show cluster #View status
375375
```
376376

src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,17 @@ Navigate to the `sbin` directory of IoTDB and start the DataNode:
125125
./sbin/start-datanode.sh -d # The "-d" flag starts the process in the background.
126126
```
127127

128-
### 2.5 Verify Activation
128+
### 3.5 Start CLI
129129

130-
Check the `ClusterActivationStatus` field. If it shows `ACTIVATED`, the database has been successfully activated.
130+
Enter the IoTDB CLI.
131131

132-
![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png)
132+
```SQL
133+
# For Linux or macOS
134+
./start-cli.sh -sql_dialect table
135+
136+
# For Windows
137+
./start-cli.bat -sql_dialect table
138+
```
133139

134140
## 3. Common Issues
135141

src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,17 @@ On each server, navigate to the `sbin` directory and start the DataNode:
157157
./start-datanode.sh -d # The "-d" flag starts the process in the background.
158158
```
159159

160-
### 3.6 Verify Activation
160+
### 3.6 Start CLI
161161

162-
Check the `ClusterActivationStatus` field. If it shows `ACTIVATED`, the database has been successfully activated.
162+
Enter the IoTDB CLI.
163+
164+
```SQL
165+
# For Linux or macOS
166+
./start-cli.sh -sql_dialect table
167+
168+
# For Windows
169+
./start-cli.bat -sql_dialect table
170+
```
163171

164172
## 4. Maintenance
165173

src/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ Enter the container, log in to the database through CLI, and use the `show clust
166166

167167
```SQL
168168
docker exec -it iotdb /bin/bash #Entering the container
169-
./start-cli.sh -h iotdb #Log in to the database
169+
./start-cli.sh -sql_dialect table -h iotdb #Log in to the database
170170
IoTDB> show cluster #View status
171171
```
172172

@@ -370,7 +370,7 @@ docker-compose -f datanode.yml up -d #Background startup
370370

371371
```SQL
372372
docker exec -it iotdb-datanode /bin/bash #Entering the container
373-
./start-cli.sh -h iotdb-1 #Log in to the database
373+
./start-cli.sh -sql_dialect table -h iotdb-1 #Log in to the database
374374
IoTDB> show cluster #View status
375375
```
376376

src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,17 @@ Navigate to the `sbin` directory of IoTDB and start the DataNode:
125125
./sbin/start-datanode.sh -d # The "-d" flag starts the process in the background.
126126
```
127127

128-
### 2.5 Verify Activation
128+
### 2.5 Start CLI
129129

130-
Check the `ClusterActivationStatus` field. If it shows `ACTIVATED`, the database has been successfully activated.
130+
Enter the IoTDB CLI.
131131

132-
![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png)
132+
```SQL
133+
# For Linux or macOS
134+
./start-cli.sh -sql_dialect table
135+
136+
# For Windows
137+
./start-cli.bat -sql_dialect table
138+
```
133139

134140
## 3. Common Issues
135141

src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,17 @@ cd sbin
154154
./start-datanode.sh -d #-d参数将在后台进行启动
155155
```
156156

157-
### 3.5 验证激活
157+
### 3.5 启动 CLI
158158

159-
当看到“Result”字段状态显示为success表示激活成功
159+
表模型 CLI 进入命令:
160160

161-
![](/img/%E9%9B%86%E7%BE%A4-%E9%AA%8C%E8%AF%81.png)
161+
```SQL
162+
# Linux或MACOS系统
163+
./start-cli.sh -sql_dialect table
164+
165+
# windows系统
166+
./start-cli.bat -sql_dialect table
167+
```
162168

163169
## 4. 节点维护步骤
164170

src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ docker-compose -f docker-compose-standalone.yml up -d #后台启动
164164

165165
```SQL
166166
docker exec -it iotdb /bin/bash #进入容器
167-
./start-cli.sh -h iotdb #登录数据库
167+
./start-cli.sh -sql_dialect table -h iotdb #登录数据库
168168
IoTDB> show cluster #查看服务状态
169169
```
170170

@@ -363,7 +363,7 @@ docker-compose -f datanode.yml up -d #后台启动
363363

364364
```SQL
365365
docker exec -it iotdb-datanode /bin/bash #进入容器
366-
./start-cli.sh -h iotdb-1 #登录数据库
366+
./start-cli.sh -sql_dialect table -h iotdb-1 #登录数据库
367367
IoTDB> show cluster #查看服务状态
368368
```
369369

src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,11 +116,18 @@ DataNode 配置
116116
```shell
117117
./sbin/start-datanode.sh -d #“-d”参数将在后台进行启动
118118
```
119-
### 2.5 验证激活
120119

121-
当看到“ClusterActivationStatus”字段状态显示为ACTIVATED表示激活成功
120+
### 3.5 启动 CLI
122121

123-
![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png)
122+
表模型 CLI 进入命令:
123+
124+
```SQL
125+
# Linux或MACOS系统
126+
./start-cli.sh -sql_dialect table
127+
128+
# windows系统
129+
./start-cli.bat -sql_dialect table
130+
```
124131

125132
## 3. 常见问题
126133

src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,17 @@ cd sbin
154154
./start-datanode.sh -d #-d参数将在后台进行启动
155155
```
156156

157-
### 3.5 验证激活
157+
### 3.5 启动 CLI
158158

159-
当看到“Result”字段状态显示为success表示激活成功
159+
表模型 CLI 进入命令:
160160

161-
![](/img/%E9%9B%86%E7%BE%A4-%E9%AA%8C%E8%AF%81.png)
161+
```SQL
162+
# Linux或MACOS系统
163+
./start-cli.sh -sql_dialect table
164+
165+
# windows系统
166+
./start-cli.bat -sql_dialect table
167+
```
162168

163169
## 4. 节点维护步骤
164170

0 commit comments

Comments
 (0)