From 5195dfc8e97122ac882f699ddadb08af73bdb69d Mon Sep 17 00:00:00 2001 From: W1y1r <2730956796@qq.com> Date: Thu, 6 Mar 2025 12:11:59 +0800 Subject: [PATCH] Fix open source cluster deployment startup CLI --- .../Cluster-Deployment_apache.md | 12 ++++++++++-- .../Docker-Deployment_apache.md | 4 ++-- .../Stand-Alone-Deployment_apache.md | 12 +++++++++--- .../Cluster-Deployment_apache.md | 12 ++++++++++-- .../Docker-Deployment_apache.md | 4 ++-- .../Stand-Alone-Deployment_apache.md | 12 +++++++++--- .../Cluster-Deployment_apache.md | 12 +++++++++--- .../Docker-Deployment_apache.md | 4 ++-- .../Stand-Alone-Deployment_apache.md | 13 ++++++++++--- .../Cluster-Deployment_apache.md | 12 +++++++++--- .../Docker-Deployment_apache.md | 4 ++-- .../Stand-Alone-Deployment_apache.md | 12 +++++++++--- 12 files changed, 83 insertions(+), 30 deletions(-) diff --git a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md index 2a8d7c6cf..29e8e8dae 100644 --- a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md +++ b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md @@ -157,9 +157,17 @@ On each server, navigate to the `sbin` directory and start the DataNode: ./start-datanode.sh -d # The "-d" flag starts the process in the background. ``` -### 3.6 Verify Activation +### 3.6 Start CLI -Check the `ClusterActivationStatus` field. If it shows `ACTIVATED`, the database has been successfully activated. + Enter the IoTDB CLI. + +```SQL +# For Linux or macOS +./start-cli.sh -sql_dialect table + +# For Windows +./start-cli.bat -sql_dialect table +``` ## 4. Maintenance diff --git a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md index c287573b4..b13314d66 100644 --- a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md +++ b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md @@ -166,7 +166,7 @@ Enter the container, log in to the database through CLI, and use the `show clust ```SQL docker exec -it iotdb /bin/bash #Entering the container -./start-cli.sh -h iotdb #Log in to the database +./start-cli.sh -sql_dialect table -h iotdb #Log in to the database IoTDB> show cluster #View status ``` @@ -370,7 +370,7 @@ docker-compose -f datanode.yml up -d #Background startup ```SQL docker exec -it iotdb-datanode /bin/bash #Entering the container - ./start-cli.sh -h iotdb-1 #Log in to the database + ./start-cli.sh -sql_dialect table -h iotdb-1 #Log in to the database IoTDB> show cluster #View status ``` diff --git a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md index fe3c3eb52..194d1e8a2 100644 --- a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md +++ b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md @@ -125,11 +125,17 @@ Navigate to the `sbin` directory of IoTDB and start the DataNode: ./sbin/start-datanode.sh -d # The "-d" flag starts the process in the background. ``` -### 2.5 Verify Activation +### 3.5 Start CLI -Check the `ClusterActivationStatus` field. If it shows `ACTIVATED`, the database has been successfully activated. + Enter the IoTDB CLI. -![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png) +```SQL +# For Linux or macOS +./start-cli.sh -sql_dialect table + +# For Windows +./start-cli.bat -sql_dialect table +``` ## 3. Common Issues diff --git a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md index 2a8d7c6cf..29e8e8dae 100644 --- a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md +++ b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md @@ -157,9 +157,17 @@ On each server, navigate to the `sbin` directory and start the DataNode: ./start-datanode.sh -d # The "-d" flag starts the process in the background. ``` -### 3.6 Verify Activation +### 3.6 Start CLI -Check the `ClusterActivationStatus` field. If it shows `ACTIVATED`, the database has been successfully activated. + Enter the IoTDB CLI. + +```SQL +# For Linux or macOS +./start-cli.sh -sql_dialect table + +# For Windows +./start-cli.bat -sql_dialect table +``` ## 4. Maintenance diff --git a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md index c287573b4..b13314d66 100644 --- a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md +++ b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md @@ -166,7 +166,7 @@ Enter the container, log in to the database through CLI, and use the `show clust ```SQL docker exec -it iotdb /bin/bash #Entering the container -./start-cli.sh -h iotdb #Log in to the database +./start-cli.sh -sql_dialect table -h iotdb #Log in to the database IoTDB> show cluster #View status ``` @@ -370,7 +370,7 @@ docker-compose -f datanode.yml up -d #Background startup ```SQL docker exec -it iotdb-datanode /bin/bash #Entering the container - ./start-cli.sh -h iotdb-1 #Log in to the database + ./start-cli.sh -sql_dialect table -h iotdb-1 #Log in to the database IoTDB> show cluster #View status ``` diff --git a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md index fe3c3eb52..f658c2dc6 100644 --- a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md +++ b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md @@ -125,11 +125,17 @@ Navigate to the `sbin` directory of IoTDB and start the DataNode: ./sbin/start-datanode.sh -d # The "-d" flag starts the process in the background. ``` -### 2.5 Verify Activation +### 2.5 Start CLI -Check the `ClusterActivationStatus` field. If it shows `ACTIVATED`, the database has been successfully activated. + Enter the IoTDB CLI. -![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png) +```SQL +# For Linux or macOS +./start-cli.sh -sql_dialect table + +# For Windows +./start-cli.bat -sql_dialect table +``` ## 3. Common Issues diff --git a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md index ce351d772..b9b82e0e4 100644 --- a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md +++ b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md @@ -154,11 +154,17 @@ cd sbin ./start-datanode.sh -d #-d参数将在后台进行启动 ``` -### 3.5 验证激活 +### 3.5 启动 CLI -当看到“Result”字段状态显示为success表示激活成功 +表模型 CLI 进入命令: -![](/img/%E9%9B%86%E7%BE%A4-%E9%AA%8C%E8%AF%81.png) +```SQL +# Linux或MACOS系统 +./start-cli.sh -sql_dialect table + +# windows系统 +./start-cli.bat -sql_dialect table +``` ## 4. 节点维护步骤 diff --git a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md index 9f315a1d4..1c37be02b 100644 --- a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md +++ b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Docker-Deployment_apache.md @@ -164,7 +164,7 @@ docker-compose -f docker-compose-standalone.yml up -d #后台启动 ```SQL docker exec -it iotdb /bin/bash #进入容器 - ./start-cli.sh -h iotdb #登录数据库 + ./start-cli.sh -sql_dialect table -h iotdb #登录数据库 IoTDB> show cluster #查看服务状态 ``` @@ -363,7 +363,7 @@ docker-compose -f datanode.yml up -d #后台启动 ```SQL docker exec -it iotdb-datanode /bin/bash #进入容器 - ./start-cli.sh -h iotdb-1 #登录数据库 + ./start-cli.sh -sql_dialect table -h iotdb-1 #登录数据库 IoTDB> show cluster #查看服务状态 ``` diff --git a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md index 3dd6de563..d826e9735 100644 --- a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md +++ b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md @@ -116,11 +116,18 @@ DataNode 配置 ```shell ./sbin/start-datanode.sh -d #“-d”参数将在后台进行启动 ``` -### 2.5 验证激活 -当看到“ClusterActivationStatus”字段状态显示为ACTIVATED表示激活成功 +### 3.5 启动 CLI -![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png) +表模型 CLI 进入命令: + +```SQL +# Linux或MACOS系统 +./start-cli.sh -sql_dialect table + +# windows系统 +./start-cli.bat -sql_dialect table +``` ## 3. 常见问题 diff --git a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md index ce351d772..b9b82e0e4 100644 --- a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md +++ b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_apache.md @@ -154,11 +154,17 @@ cd sbin ./start-datanode.sh -d #-d参数将在后台进行启动 ``` -### 3.5 验证激活 +### 3.5 启动 CLI -当看到“Result”字段状态显示为success表示激活成功 +表模型 CLI 进入命令: -![](/img/%E9%9B%86%E7%BE%A4-%E9%AA%8C%E8%AF%81.png) +```SQL +# Linux或MACOS系统 +./start-cli.sh -sql_dialect table + +# windows系统 +./start-cli.bat -sql_dialect table +``` ## 4. 节点维护步骤 diff --git a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md index 9f315a1d4..1c37be02b 100644 --- a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md +++ b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Docker-Deployment_apache.md @@ -164,7 +164,7 @@ docker-compose -f docker-compose-standalone.yml up -d #后台启动 ```SQL docker exec -it iotdb /bin/bash #进入容器 - ./start-cli.sh -h iotdb #登录数据库 + ./start-cli.sh -sql_dialect table -h iotdb #登录数据库 IoTDB> show cluster #查看服务状态 ``` @@ -363,7 +363,7 @@ docker-compose -f datanode.yml up -d #后台启动 ```SQL docker exec -it iotdb-datanode /bin/bash #进入容器 - ./start-cli.sh -h iotdb-1 #登录数据库 + ./start-cli.sh -sql_dialect table -h iotdb-1 #登录数据库 IoTDB> show cluster #查看服务状态 ``` diff --git a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md index 3dd6de563..e45d1bed8 100644 --- a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md +++ b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_apache.md @@ -116,11 +116,17 @@ DataNode 配置 ```shell ./sbin/start-datanode.sh -d #“-d”参数将在后台进行启动 ``` -### 2.5 验证激活 +### 3.5 启动 CLI -当看到“ClusterActivationStatus”字段状态显示为ACTIVATED表示激活成功 +表模型 CLI 进入命令: -![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png) +```SQL +# Linux或MACOS系统 +./start-cli.sh -sql_dialect table + +# windows系统 +./start-cli.bat -sql_dialect table +``` ## 3. 常见问题