Skip to content

Commit 4b15f69

Browse files
authored
cluster deployment document optimization (#388)
1 parent 50ac69d commit 4b15f69

File tree

8 files changed

+298
-9
lines changed

8 files changed

+298
-9
lines changed

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

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ cd sbin
142142
./start-confignode.sh -d #"- d" parameter will start in the background
143143
```
144144

145+
If the startup fails, please refer to [Common Questions](#common-questions) for solutions.
146+
147+
145148
### Start DataNode
146149

147150
Enter the `sbin` directory of iotdb and start three datanode nodes in sequence:
@@ -306,3 +309,39 @@ sbin/remove-datanode.sh [datanode_id]
306309
#Windows
307310
sbin/remove-datanode.bat [datanode_id]
308311
```
312+
## Common Questions
313+
314+
1. After starting the confignode command, does the node fail to start multiple times or receive prompts for running errors?
315+
316+
Step 1: Please check the startup log to see if any parameters that cannot be changed after the first startup have been modified.
317+
318+
Step 2: Please check the startup log for any other abnormalities. If there are any abnormal phenomena in the log, please contact Timecho Technical Support personnel for consultation on solutions.
319+
320+
Step 3: If it is the first deployment or data can be deleted, you can also clean up the environment according to the following steps, redeploy, and restart.
321+
322+
Clean up the environment:
323+
324+
​ Execute the following on all nodes:
325+
326+
1. Terminate all ConfigNode Node and DataNode processes.
327+
```Bash
328+
# 1. Stop the ConfigNode and DataNode services
329+
sbin/stop-standalone.sh
330+
331+
# 2. Check for any remaining processes
332+
jps
333+
# Or
334+
ps -ef|gerp iotdb
335+
336+
# 3. If there are any remaining processes, manually kill the
337+
kill -9 <pid>
338+
# If you are sure there is only one iotdb on the machine, you can use the following command to clean up residual processes
339+
ps -ef|grep iotdb|grep -v grep|tr -s ' ' ' ' |cut -d ' ' -f2|xargs kill -9
340+
```
341+
2. Delete the data and logs directories.
342+
343+
Explanation: Deleting the data directory is necessary, deleting the logs directory is for clean logs and is not mandatory.
344+
```Bash
345+
cd /data/iotdb
346+
rm -rf data logs
347+
```

src/UserGuide/Master/Deployment-and-Maintenance/Cluster-Deployment_timecho.md

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ cd sbin
142142
./start-confignode.sh -d #"- d" parameter will start in the background
143143
```
144144

145+
If the startup fails, please refer to [Common Questions](#common-questions) for solutions.
146+
147+
145148
### Activate Database
146149

147150
#### Method 1: Activate file copy activation
@@ -344,7 +347,42 @@ sbin/remove-datanode.sh [datanode_id]
344347
sbin/remove-datanode.bat [datanode_id]
345348
```
346349
347-
## Common Problem
350+
## Common Questions
348351
1. Multiple prompts indicating activation failure during deployment process
349352
- Use the `ls -al` command: Use the `ls -al` command to check if the owner information of the installation package root directory is the current user.
350-
- Check activation directory: Check all files in the `./activation` directory and whether the owner information is the current user.
353+
- Check activation directory: Check all files in the `./activation` directory and whether the owner information is the current user.
354+
355+
2. After starting the confignode command, does the node fail to start multiple times or receive prompts for running errors?
356+
357+
Step 1: Please check the startup log to see if any parameters that cannot be changed after the first startup have been modified.
358+
359+
Step 2: Please check the startup log for any other abnormalities. If there are any abnormal phenomena in the log, please contact Timecho Technical Support personnel for consultation on solutions.
360+
361+
Step 3: If it is the first deployment or data can be deleted, you can also clean up the environment according to the following steps, redeploy, and restart.
362+
363+
Clean up the environment:
364+
365+
​ Execute the following on all nodes:
366+
367+
1. Terminate all ConfigNode Node and DataNode processes.
368+
```Bash
369+
# 1. Stop the ConfigNode and DataNode services
370+
sbin/stop-standalone.sh
371+
372+
# 2. Check for any remaining processes
373+
jps
374+
# Or
375+
ps -ef|gerp iotdb
376+
377+
# 3. If there are any remaining processes, manually kill the
378+
kill -9 <pid>
379+
# If you are sure there is only one iotdb on the machine, you can use the following command to clean up residual processes
380+
ps -ef|grep iotdb|grep -v grep|tr -s ' ' ' ' |cut -d ' ' -f2|xargs kill -9
381+
```
382+
2. Delete the data and logs directories.
383+
384+
Explanation: Deleting the data directory is necessary, deleting the logs directory is for clean logs and is not mandatory.
385+
```Bash
386+
cd /data/iotdb
387+
rm -rf data logs
388+
```

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

Lines changed: 40 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,8 @@ cd sbin
142142
./start-confignode.sh -d #"- d" parameter will start in the background
143143
```
144144

145+
If the startup fails, please refer to [Common Questions](#common-questions) for solutions.
146+
145147
### Start DataNode
146148

147149
Enter the `sbin` directory of iotdb and start three datanode nodes in sequence:
@@ -306,4 +308,41 @@ sbin/remove-datanode.sh [dn_rpc_address:dn_rpc_port]
306308

307309
#Windows
308310
sbin/remove-datanode.bat [dn_rpc_address:dn_rpc_port]
309-
```
311+
```
312+
313+
## Common Questions
314+
315+
1. After starting the confignode command, does the node fail to start multiple times or receive prompts for running errors?
316+
317+
Step 1: Please check the startup log to see if any parameters that cannot be changed after the first startup have been modified.
318+
319+
Step 2: Please check the startup log for any other abnormalities. If there are any abnormal phenomena in the log, please contact Timecho Technical Support personnel for consultation on solutions.
320+
321+
Step 3: If it is the first deployment or data can be deleted, you can also clean up the environment according to the following steps, redeploy, and restart.
322+
323+
Clean up the environment:
324+
325+
​ Execute the following on all nodes:
326+
327+
1. Terminate all ConfigNode Node and DataNode processes.
328+
```Bash
329+
# 1. Stop the ConfigNode and DataNode services
330+
sbin/stop-standalone.sh
331+
332+
# 2. Check for any remaining processes
333+
jps
334+
# Or
335+
ps -ef|gerp iotdb
336+
337+
# 3. If there are any remaining processes, manually kill the
338+
kill -9 <pid>
339+
# If you are sure there is only one iotdb on the machine, you can use the following command to clean up residual processes
340+
ps -ef|grep iotdb|grep -v grep|tr -s ' ' ' ' |cut -d ' ' -f2|xargs kill -9
341+
```
342+
2. Delete the data and logs directories.
343+
344+
Explanation: Deleting the data directory is necessary, deleting the logs directory is for clean logs and is not mandatory.
345+
```Bash
346+
cd /data/iotdb
347+
rm -rf data logs
348+
```

src/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ Start the first confignode of IoTDB-1 first, ensuring that the seed confignode n
142142
cd sbin
143143
./start-confignode.sh -d #"- d" parameter will start in the background
144144
```
145+
If the startup fails, please refer to [Common Questions](#common-questions) for solutions.
145146

146147
### Activate Database
147148

@@ -347,7 +348,42 @@ sbin/remove-datanode.sh [dn_rpc_address:dn_rpc_port]
347348
sbin/remove-datanode.bat [dn_rpc_address:dn_rpc_port]
348349
```
349350
350-
## Common Problem
351+
## Common Questions
351352
1. Multiple prompts indicating activation failure during deployment process
352353
- Use the `ls -al` command: Use the `ls -al` command to check if the owner information of the installation package root directory is the current user.
353-
- Check activation directory: Check all files in the `./activation` directory and whether the owner information is the current user.
354+
- Check activation directory: Check all files in the `./activation` directory and whether the owner information is the current user.
355+
356+
2. After starting the confignode command, does the node fail to start multiple times or receive prompts for running errors?
357+
358+
Step 1: Please check the startup log to see if any parameters that cannot be changed after the first startup have been modified.
359+
360+
Step 2: Please check the startup log for any other abnormalities. If there are any abnormal phenomena in the log, please contact Timecho Technical Support personnel for consultation on solutions.
361+
362+
Step 3: If it is the first deployment or data can be deleted, you can also clean up the environment according to the following steps, redeploy, and restart.
363+
364+
Clean up the environment:
365+
366+
​ Execute the following on all nodes:
367+
368+
1. Terminate all ConfigNode Node and DataNode processes.
369+
```Bash
370+
# 1. Stop the ConfigNode and DataNode services
371+
sbin/stop-standalone.sh
372+
373+
# 2. Check for any remaining processes
374+
jps
375+
# Or
376+
ps -ef|gerp iotdb
377+
378+
# 3. If there are any remaining processes, manually kill the
379+
kill -9 <pid>
380+
# If you are sure there is only one iotdb on the machine, you can use the following command to clean up residual processes
381+
ps -ef|grep iotdb|grep -v grep|tr -s ' ' ' ' |cut -d ' ' -f2|xargs kill -9
382+
```
383+
2. Delete the data and logs directories.
384+
385+
Explanation: Deleting the data directory is necessary, deleting the logs directory is for clean logs and is not mandatory.
386+
```Bash
387+
cd /data/iotdb
388+
rm -rf data logs
389+
```

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

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ cd apache-iotdb-{version}-all-bin
141141
cd sbin
142142
./start-confignode.sh -d #“-d”参数将在后台进行启动
143143
```
144+
如果启动失败,请到[常见问题](#常见问题)查看解决方案。
144145

145146
### 启动DataNode 节点
146147

@@ -305,4 +306,38 @@ sbin/remove-datanode.sh [datanode_id]
305306

306307
#Windows
307308
sbin/remove-datanode.bat [datanode_id]
308-
```
309+
```
310+
311+
## 常见问题
312+
313+
1. 启动confignode的命令后,节点多次启动失败或出现运行错误的提示?
314+
315+
步骤 1: 请查看启动日志,检查是否修改了某些首次启动后不可改的参数。
316+
317+
步骤 2: 请查看启动日志,检查是否出现其他异常。日志中若存在异常现象,请联系天谋技术支持人员咨询解决方案。
318+
319+
步骤 3: 如果是首次部署或者数据可删除,也可按下述步骤清理环境,重新部署后,再次启动。
320+
321+
清理环境:
322+
1. 结束所有 ConfigNode 和 DataNode 进程。
323+
```Bash
324+
# 1. 停止 ConfigNode 和 DataNode 服务
325+
sbin/stop-standalone.sh
326+
327+
# 2. 检查是否还有进程残留
328+
jps
329+
# 或者
330+
ps -ef|gerp iotdb
331+
332+
# 3. 如果有进程残留,则手动kill
333+
kill -9 <pid>
334+
# 如果确定机器上仅有1个iotdb,可以使用下面命令清理残留进程
335+
ps -ef|grep iotdb|grep -v grep|tr -s ' ' ' ' |cut -d ' ' -f2|xargs kill -9
336+
```
337+
2. 删除 data 和 logs 目录。
338+
339+
说明:删除 data 目录是必要的,删除 logs 目录是为了纯净日志,非必需。
340+
```Bash
341+
cd /data/iotdb
342+
rm -rf data logs
343+
```

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

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ cd iotdb-enterprise-{version}-bin
142142
cd sbin
143143
./start-confignode.sh -d #“-d”参数将在后台进行启动
144144
```
145+
如果启动失败,请到[常见问题](#常见问题)查看解决方案。
145146

146147
### 激活数据库
147148

@@ -349,4 +350,36 @@ sbin/remove-datanode.bat [datanode_id]
349350
350351
1. 部署过程中多次提示激活失败
351352
- 使用 `ls -al` 命令:使用 `ls -al` 命令检查安装包根目录的所有者信息是否为当前用户。
352-
- 检查激活目录:检查 `./activation` 目录下的所有文件,所有者信息是否为当前用户。
353+
- 检查激活目录:检查 `./activation` 目录下的所有文件,所有者信息是否为当前用户。
354+
355+
2. 启动confignode的命令后,节点多次启动失败或出现运行错误的提示?
356+
357+
步骤 1: 请查看启动日志,检查是否修改了某些首次启动后不可改的参数。
358+
359+
步骤 2: 请查看启动日志,检查是否出现其他异常。日志中若存在异常现象,请联系天谋技术支持人员咨询解决方案。
360+
361+
步骤 3: 如果是首次部署或者数据可删除,也可按下述步骤清理环境,重新部署后,再次启动。
362+
363+
清理环境:
364+
1. 结束所有 ConfigNode 和 DataNode 进程。
365+
```Bash
366+
# 1. 停止 ConfigNode 和 DataNode 服务
367+
sbin/stop-standalone.sh
368+
369+
# 2. 检查是否还有进程残留
370+
jps
371+
# 或者
372+
ps -ef|gerp iotdb
373+
374+
# 3. 如果有进程残留,则手动kill
375+
kill -9 <pid>
376+
# 如果确定机器上仅有1个iotdb,可以使用下面命令清理残留进程
377+
ps -ef|grep iotdb|grep -v grep|tr -s ' ' ' ' |cut -d ' ' -f2|xargs kill -9
378+
```
379+
2. 删除 data 和 logs 目录。
380+
381+
说明:删除 data 目录是必要的,删除 logs 目录是为了纯净日志,非必需。
382+
```Bash
383+
cd /data/iotdb
384+
rm -rf data logs
385+
```

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

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ cd apache-iotdb-{version}-all-bin
141141
cd sbin
142142
./start-confignode.sh -d #“-d”参数将在后台进行启动
143143
```
144+
如果启动失败,请参考[常见问题](#常见问题)
144145

145146
### 启动DataNode 节点
146147

@@ -305,4 +306,38 @@ sbin/remove-datanode.sh [dn_rpc_address:dn_rpc_port]
305306

306307
#Windows
307308
sbin/remove-datanode.bat [dn_rpc_address:dn_rpc_port]
308-
```
309+
```
310+
311+
## 常见问题
312+
313+
1. Confignode节点启动失败
314+
315+
步骤 1: 请查看启动日志,检查是否修改了某些首次启动后不可改的参数。
316+
317+
步骤 2: 请查看启动日志,检查是否出现其他异常。日志中若存在异常现象,请联系天谋技术支持人员咨询解决方案。
318+
319+
步骤 3: 如果是首次部署或者数据可删除,也可按下述步骤清理环境,重新部署后,再次启动。
320+
321+
清理环境:
322+
1. 结束所有 ConfigNode 和 DataNode 进程。
323+
```Bash
324+
# 1. 停止 ConfigNode 和 DataNode 服务
325+
sbin/stop-standalone.sh
326+
327+
# 2. 检查是否还有进程残留
328+
jps
329+
# 或者
330+
ps -ef|gerp iotdb
331+
332+
# 3. 如果有进程残留,则手动kill
333+
kill -9 <pid>
334+
# 如果确定机器上仅有1个iotdb,可以使用下面命令清理残留进程
335+
ps -ef|grep iotdb|grep -v grep|tr -s ' ' ' ' |cut -d ' ' -f2|xargs kill -9
336+
```
337+
2. 删除 data 和 logs 目录。
338+
339+
说明:删除 data 目录是必要的,删除 logs 目录是为了纯净日志,非必需。
340+
```Bash
341+
cd /data/iotdb
342+
rm -rf data logs
343+
```

0 commit comments

Comments
 (0)