From 692cbc5887c9d92dd92dd8eb674c7aa84b88a449 Mon Sep 17 00:00:00 2001 From: Leto_b Date: Wed, 4 Jun 2025 14:32:10 +0800 Subject: [PATCH] update activate database --- .../Cluster-Deployment_timecho.md | 3 +- .../Stand-Alone-Deployment_timecho.md | 4 +- .../Cluster-Deployment_timecho.md | 2 - .../Stand-Alone-Deployment_timecho.md | 2 - .../Cluster-Deployment_timecho.md | 4 +- .../Stand-Alone-Deployment_timecho.md | 4 +- .../Cluster-Deployment_timecho.md | 2 - .../Stand-Alone-Deployment_timecho.md | 2 - .../Cluster-Deployment_timecho.md | 3 +- .../Stand-Alone-Deployment_timecho.md | 3 +- .../Cluster-Deployment_timecho.md | 102 ++++++++++-------- .../Stand-Alone-Deployment_timecho.md | 93 ++++++++-------- .../Cluster-Deployment_timecho.md | 1 - .../Stand-Alone-Deployment_timecho.md | 1 - .../Cluster-Deployment_timecho.md | 102 ++++++++++-------- .../Stand-Alone-Deployment_timecho.md | 93 ++++++++-------- 16 files changed, 216 insertions(+), 205 deletions(-) diff --git a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md index 6248f0a10..1d49f04a6 100644 --- a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md +++ b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md @@ -190,8 +190,7 @@ On each server, navigate to the `sbin` directory and start the DataNode: ```Bash show system info ``` - -**Note**: Activation is currently supported only in the Tree Model. + 3. Copy the returned machine code of each server (displayed as a green string) and send it to the Timecho team: diff --git a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md index 96ebbbdeb..79c1d802f 100644 --- a/src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md +++ b/src/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md @@ -157,9 +157,7 @@ Navigate to the `sbin` directory of IoTDB and start the DataNode: ```Bash show system info -``` - -**Note**: Activation is currently supported only in the Tree Model. +``` 3. Copy the returned machine code (displayed as a green string) and send it to the Timecho team: diff --git a/src/UserGuide/Master/Tree/Deployment-and-Maintenance/Cluster-Deployment_timecho.md b/src/UserGuide/Master/Tree/Deployment-and-Maintenance/Cluster-Deployment_timecho.md index 00f48fed3..294158998 100644 --- a/src/UserGuide/Master/Tree/Deployment-and-Maintenance/Cluster-Deployment_timecho.md +++ b/src/UserGuide/Master/Tree/Deployment-and-Maintenance/Cluster-Deployment_timecho.md @@ -197,8 +197,6 @@ cd sbin show system info ``` - **Note**: Activation is currently supported only in the Tree Model. - 3. Copy the returned machine code of each server (displayed as a green string) and send it to the Timecho team: ```Bash diff --git a/src/UserGuide/Master/Tree/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md b/src/UserGuide/Master/Tree/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md index 4a11206a1..6c454ce56 100644 --- a/src/UserGuide/Master/Tree/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md +++ b/src/UserGuide/Master/Tree/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md @@ -161,8 +161,6 @@ Navigate to the `sbin` directory of IoTDB and start the DataNode: show system info ``` - **Note**: Activation is currently supported only in the Tree Model. - 3. Copy the returned machine code (displayed as a green string) and send it to the Timecho team: ```Bash diff --git a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md index 8cee9db6a..3e9d77484 100644 --- a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md +++ b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md @@ -189,9 +189,7 @@ On each server, navigate to the `sbin` directory and start the DataNode: ```Bash show system info - ``` - -**Note**: Activation is currently supported only in the Tree Model. + ``` 3. Copy the returned machine code of each server (displayed as a green string) and send it to the Timecho team: diff --git a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md index 96ebbbdeb..79c1d802f 100644 --- a/src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md +++ b/src/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md @@ -157,9 +157,7 @@ Navigate to the `sbin` directory of IoTDB and start the DataNode: ```Bash show system info -``` - -**Note**: Activation is currently supported only in the Tree Model. +``` 3. Copy the returned machine code (displayed as a green string) and send it to the Timecho team: diff --git a/src/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md b/src/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md index ba17b9ad1..c5fbcb13f 100644 --- a/src/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md +++ b/src/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md @@ -197,8 +197,6 @@ cd sbin show system info ``` - **Note**: Activation is currently supported only in the Tree Model. - 3. Copy the returned machine code of each server (displayed as a green string) and send it to the Timecho team: ```Bash diff --git a/src/UserGuide/latest/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md b/src/UserGuide/latest/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md index 4a11206a1..6c454ce56 100644 --- a/src/UserGuide/latest/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md +++ b/src/UserGuide/latest/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md @@ -161,8 +161,6 @@ Navigate to the `sbin` directory of IoTDB and start the DataNode: show system info ``` - **Note**: Activation is currently supported only in the Tree Model. - 3. Copy the returned machine code (displayed as a green string) and send it to the Timecho team: ```Bash diff --git a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md index 1e1379e5c..50e59743e 100644 --- a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md +++ b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md @@ -185,8 +185,7 @@ cd sbin ./start-cli.bat ``` - - 执行以下内容获取激活所需机器码: - - 注:当前仅支持在树模型中进行激活 + - 执行以下内容获取激活所需机器码: ```Bash show system info diff --git a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md index 6f5e1f842..17790acfe 100644 --- a/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md +++ b/src/zh/UserGuide/Master/Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md @@ -144,8 +144,7 @@ DataNode 配置 # windows系统 ./start-cli.bat ``` -- 执行以下内容获取激活所需机器码: - - 注:当前仅支持在树模型中进行激活 +- 执行以下内容获取激活所需机器码: ```Bash show system info diff --git a/src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Cluster-Deployment_timecho.md b/src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Cluster-Deployment_timecho.md index 56b636e3d..3bef355d8 100644 --- a/src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Cluster-Deployment_timecho.md +++ b/src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Cluster-Deployment_timecho.md @@ -138,75 +138,87 @@ cd iotdb-enterprise-{version}-bin 先启动第一个iotdb-1的confignode, 保证种子confignode节点先启动,然后依次启动第2和第3个confignode节点 -```Bash +```shell cd sbin -./start-confignode.sh -d #“-d”参数将在后台进行启动 +./start-confignode.sh -d #“-d”参数将在后台进行启动 ``` -如果启动失败,请参考[常见问题](#常见问题)。 -### 3.4 激活数据库 +如果启动失败,请参考下[常见问题](#常见问题) -#### **方式一:激活文件拷贝激活** +### 3.4 启动DataNode 节点 -- 依次启动3个confignode节点后,每台机器各自的`activation`文件夹, 分别拷贝每台机器的`system_info`文件给天谋工作人员; -- 工作人员将返回每个ConfigNode节点的license文件,这里会返回3个license文件; -- 将3个license文件分别放入对应的ConfigNode节点的`activation`文件夹下; +分别进入iotdb的sbin目录下,依次启动3个datanode节点: -#### 方式二:激活脚本激活 +```shell +cd sbin +./start-datanode.sh -d #-d参数将在后台进行启动 +``` -- 依次获取3台机器的机器码,分别进入安装目录的`sbin`目录,执行激活脚本`start-activate.sh`: +### 3.5 激活数据库 - ```Bash - cd sbin - ./start-activate.sh - ``` +#### 方式一:激活文件拷贝激活 -- 显示如下信息,这里显示的是1台机器的机器码 : +- 依次启动3个Confignode、Datanode节点后,每台机器各自的activation文件夹, 分别拷贝每台机器的system_info文件给天谋工作人员; +- 工作人员将返回每个ConfigNode、Datanode节点的license文件,这里会返回3个license文件; +- 将3个license文件分别放入对应的ConfigNode节点的activation文件夹下; - ```Bash - Please copy the system_info's content and send it to Timecho: - 01-KU5LDFFN-PNBEHDRH - Please enter license: - ``` +#### 方式二:激活脚本激活 +- 依次获取3台机器的机器码,进入 IoTDB CLI -- 其他2个节点依次执行激活脚本`start-activate.sh`,然后将获取的3台机器的机器码都复制给天谋工作人员 -- 工作人员会返回3段激活码,正常是与提供的3个机器码的顺序对应的,请分别将各自的激活码粘贴到上一步的命令行提示处 `Please enter license:`,如下提示: + - 表模型 CLI 进入命令: - ```Bash - Please enter license: - Jw+MmF+Atxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx5bAOXNeob5l+HO5fEMgzrW8OJPh26Vl6ljKUpCvpTiw== - License has been stored to sbin/../activation/license - Import completed. Please start cluster and excute 'show cluster' to verify activation status - ``` + ```SQL + # Linux或MACOS系统 + ./start-cli.sh -sql_dialect table + + # windows系统 + ./start-cli.bat -sql_dialect table + ``` -### 3.5 启动DataNode 节点 + - 树模型 CLI 进入命令: - 分别进入iotdb的`sbin`目录下,依次启动3个datanode节点: + ```SQL + # Linux或MACOS系统 + ./start-cli.sh + + # windows系统 + ./start-cli.bat + ``` -```Go -cd sbin -./start-datanode.sh -d #-d参数将在后台进行启动 -``` + - 执行以下内容获取激活所需机器码: -### 3.6 验证部署 + ```Bash + show system info + ``` -可直接执行`./sbin`目录下的Cli启动脚本: + - 显示如下信息,这里显示的是1台机器的机器码 : -```Plain -./start-cli.sh -h ip(本机ip或域名) -p 端口号(6667) -``` + ```Bash + +--------------------------------------------------------------+ + | SystemInfo| + +--------------------------------------------------------------+ + |01-TE5NLES4-UDDWCMYE,01-GG5NLES4-XXDWCMYE,01-FF5NLES4-WWWWCMYE| + +--------------------------------------------------------------+ + Total line number = 1 + It costs 0.030s + ``` + +- 其他2个节点依次进入到IoTDB树模型的CLI中,执行语句后将获取的3台机器的机器码都复制给天谋工作人员 - 成功启动后,出现如下界面显示IOTDB安装成功。 +- 工作人员会返回3段激活码,正常是与提供的3个机器码的顺序对应的,请分别将各自的激活码粘贴到CLI中,如下提示: -![](/img/%E4%BC%81%E4%B8%9A%E7%89%88%E6%88%90%E5%8A%9F.png) + - 注:激活码前后需要用`'`符号进行标注,如所示 + + ```Bash + IoTDB> activate '01-D4EYQGPZ-EAUJJODW-NUKRDR6F-TUQS3B75-EDZFLK3A-6BOKJFFZ-ALDHOMN7-NB2E4BHI-7ZKGFVK6-GCIFXA4T-UG3XJTTD-SHJV6F2P-Q27B4OMJ-R47ZDIM3-UUASUXG2-OQXGVZCO-MMYKICZU-TWFQYYAO-ZOAGOKJA-NYHQTA5U-EWAR4EP5-MRC6R2CI-PKUTKRCT-7UDGRH3F-7BYV4P5D-6KKIA===,01-D4EYQGPZ-EAUJJODW-NUKRDR6F-TUQS3B75-EDZFLK3A-6BOKJFFZ-ALDHOMN7-NB2E4BHI-7ZKGFVK6-GCIFXA4T-UG3XJTTD-SHJV6F2P-Q27B4OMJ-R47ZDIM3-UUASUXG2-OQXGVZCO-MMYKICZU-TWFQYYAO-ZOAGOKJA-NYHQTA5U-EWAR4EP5-MRC6R2CI-PKUTKRCT-7UDGRH3F-7BYV4P5D-6KKIA===,01-D4EYQGPZ-EAUJJODW-NUKRDR6F-TUQS3B75-EDZFLK3A-6BOKJFFZ-ALDHOMN7-NB2E4BHI-7ZKGFVK6-GCIFXA4T-UG3XJTTD-SHJV6F2P-Q27B4OMJ-R47ZDIM3-UUASUXG2-OQXGVZCO-MMYKICZU-TWFQYYAO-ZOAGOKJA-NYHQTA5U-EWAR4EP5-MRC6R2CI-PKUTKRCT-7UDGRH3F-7BYV4P5D-6KKIA===' + ``` -出现安装成功界面后,继续看下是否激活成功,使用 `show cluster`命令 +### 3.6 验证激活 -当看到最右侧显示`ACTIVATED`表示激活成功 +当看到“Result”字段状态显示为success表示激活成功 -![](/img/%E4%BC%81%E4%B8%9A%E7%89%88%E6%BF%80%E6%B4%BB.png) +![](/img/%E9%9B%86%E7%BE%A4-%E9%AA%8C%E8%AF%81.png) -> 出现`ACTIVATED(W)`为被动激活,表示此ConfigNode没有license文件(或没有签发时间戳最新的license文件),其激活依赖于集群中其它Activate状态的ConfigNode。此时建议检查license文件是否已放入license文件夹,没有请放入license文件,若已存在license文件,可能是此节点license文件与其他节点信息不一致导致,请联系天谋工作人员重新申请. ### 3.7 一键启停集群 diff --git a/src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md b/src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md index 04456e320..cc677aae9 100644 --- a/src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md +++ b/src/zh/UserGuide/Master/Tree/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md @@ -112,73 +112,76 @@ cd iotdb-enterprise-{version}-bin 进入iotdb的sbin目录下,启动confignode ```shell -./start-confignode.sh -d #“-d”参数将在后台进行启动 +./sbin/start-confignode.sh -d #“-d”参数将在后台进行启动 ``` -如果启动失败,请参考[常见问题](#常见问题)。 -### 2.4 激活数据库 +如果启动失败,请参考下方[常见问题](#常见问题)。 -#### 方式一:激活文件拷贝激活 +### 2.4 启动 DataNode 节点 -- 启动confignode节点后,进入activation文件夹, 将 system_info文件复制给天谋工作人员 -- 收到工作人员返回的 license文件 -- 将license文件放入对应节点的activation文件夹下; - -#### 方式二:激活脚本激活 - -- 获取激活所需机器码,进入安装目录的sbin目录,执行激活脚本: +进入iotdb的sbin目录下,启动datanode: ```shell - cd sbin -./start-activate.sh +./sbin/start-datanode.sh -d #“-d”参数将在后台进行启动 ``` -- 显示如下信息,请将机器码(即该串字符)复制给天谋工作人员: - -```shell -Please copy the system_info's content and send it to Timecho: -01-KU5LDFFN-PNBEHDRH -Please enter license: -``` +### 2.5 激活数据库 -- 将工作人员返回的激活码输入上一步的命令行提示处 `Please enter license:`,如下提示: +#### 方式一:文件激活 -```shell -Please enter license: -Jw+MmF+AtexsfgNGOFgTm83BgXbq0zT1+fOfPvQsLlj6ZsooHFU6HycUSEGC78eT1g67KPvkcLCUIsz2QpbyVmPLr9x1+kVjBubZPYlVpsGYLqLFc8kgpb5vIrPLd3hGLbJ5Ks8fV1WOVrDDVQq89YF2atQa2EaB9EAeTWd0bRMZ+s9ffjc/1Zmh9NSP/T3VCfJcJQyi7YpXWy5nMtcW0gSV+S6fS5r7a96PjbtE0zXNjnEhqgRzdU+mfO8gVuUNaIy9l375cp1GLpeCh6m6pF+APW1CiXLTSijK9Qh3nsL5bAOXNeob5l+HO5fEMgzrW8OJPh26Vl6ljKUpCvpTiw== -License has been stored to sbin/../activation/license -Import completed. Please start cluster and excute 'show cluster' to verify activation status -``` +- 启动Confignode、Datanode节点后,进入activation文件夹, 将 system_info文件复制给天谋工作人员 +- 收到工作人员返回的 license文件 +- 将license文件放入对应节点的activation文件夹下; -### 2.5 启动DataNode 节点 +#### 方式二:命令激活 +- 进入 IoTDB CLI + - 表模型 CLI 进入命令: + ```SQL + # Linux或MACOS系统 + ./start-cli.sh -sql_dialect table + + # windows系统 + ./start-cli.bat -sql_dialect table + ``` -进入iotdb的sbin目录下,启动datanode: + - 树模型 CLI 进入命令: + ```SQL + # Linux或MACOS系统 + ./start-cli.sh + + # windows系统 + ./start-cli.bat + ``` +- 执行以下内容获取激活所需机器码: -```shell -cd sbin -./start-datanode.sh -d #-d参数将在后台进行启动 +```Bash +show system info ``` -### 2.6 验证部署 +- 将返回机器码(即绿色字符串)复制给天谋工作人员: -可直接执行 ./sbin 目录下的 Cli 启动脚本: - -```shell -./start-cli.sh -h ip(本机ip或域名) -p 端口号(6667) +```Bash ++--------------------------------------------------------------+ +| SystemInfo| ++--------------------------------------------------------------+ +| 01-TE5NLES4-UDDWCMYE| ++--------------------------------------------------------------+ +Total line number = 1 +It costs 0.030s ``` -成功启动后,出现如下界面显示IOTDB安装成功。 - -![](/img/%E5%90%AF%E5%8A%A8%E6%88%90%E5%8A%9F.png) +- 将工作人员返回的激活码输入到CLI中,输入以下内容 + - 注:激活码前后需要用`'`符号进行标注,如所示 -出现安装成功界面后,继续看下是否激活成功,使用`show cluster`命令 - -当看到最右侧显示ACTIVATED表示激活成功 +```Bash +IoTDB> activate '01-D4EYQGPZ-EAUJJODW-NUKRDR6F-TUQS3B75-EDZFLK3A-6BOKJFFZ-ALDHOMN7-NB2E4BHI-7ZKGFVK6-GCIFXA4T-UG3XJTTD-SHJV6F2P-Q27B4OMJ-R47ZDIM3-UUASUXG2-OQXGVZCO-MMYKICZU-TWFQYYAO-ZOAGOKJA-NYHQTA5U-EWAR4EP5-MRC6R2CI-PKUTKRCT-7UDGRH3F-7BYV4P5D-6KKIA===' +``` -![](/img/show%20cluster.png) +### 2.6 验证激活 -> 出现`ACTIVATED(W)`为被动激活,表示此ConfigNode没有license文件(或没有签发时间戳最新的license文件)。此时建议检查license文件是否已放入license文件夹,没有请放入license文件,若已存在license文件,可能是此节点license文件与其他节点信息不一致导致,请联系天谋工作人员重新申请. +当看到“ClusterActivationStatus”字段状态显示为ACTIVATED表示激活成功 +![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png) ## 3. 常见问题 diff --git a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md index 8594e3a9a..8f116f1e0 100644 --- a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md +++ b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Cluster-Deployment_timecho.md @@ -186,7 +186,6 @@ cd sbin ``` - 执行以下内容获取激活所需机器码: - - 注:当前仅支持在树模型中进行激活 ```Bash show system info diff --git a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md index 6f5e1f842..55813c0cd 100644 --- a/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md +++ b/src/zh/UserGuide/latest-Table/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md @@ -145,7 +145,6 @@ DataNode 配置 ./start-cli.bat ``` - 执行以下内容获取激活所需机器码: - - 注:当前仅支持在树模型中进行激活 ```Bash show system info diff --git a/src/zh/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md b/src/zh/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md index 56b636e3d..3bef355d8 100644 --- a/src/zh/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md +++ b/src/zh/UserGuide/latest/Deployment-and-Maintenance/Cluster-Deployment_timecho.md @@ -138,75 +138,87 @@ cd iotdb-enterprise-{version}-bin 先启动第一个iotdb-1的confignode, 保证种子confignode节点先启动,然后依次启动第2和第3个confignode节点 -```Bash +```shell cd sbin -./start-confignode.sh -d #“-d”参数将在后台进行启动 +./start-confignode.sh -d #“-d”参数将在后台进行启动 ``` -如果启动失败,请参考[常见问题](#常见问题)。 -### 3.4 激活数据库 +如果启动失败,请参考下[常见问题](#常见问题) -#### **方式一:激活文件拷贝激活** +### 3.4 启动DataNode 节点 -- 依次启动3个confignode节点后,每台机器各自的`activation`文件夹, 分别拷贝每台机器的`system_info`文件给天谋工作人员; -- 工作人员将返回每个ConfigNode节点的license文件,这里会返回3个license文件; -- 将3个license文件分别放入对应的ConfigNode节点的`activation`文件夹下; +分别进入iotdb的sbin目录下,依次启动3个datanode节点: -#### 方式二:激活脚本激活 +```shell +cd sbin +./start-datanode.sh -d #-d参数将在后台进行启动 +``` -- 依次获取3台机器的机器码,分别进入安装目录的`sbin`目录,执行激活脚本`start-activate.sh`: +### 3.5 激活数据库 - ```Bash - cd sbin - ./start-activate.sh - ``` +#### 方式一:激活文件拷贝激活 -- 显示如下信息,这里显示的是1台机器的机器码 : +- 依次启动3个Confignode、Datanode节点后,每台机器各自的activation文件夹, 分别拷贝每台机器的system_info文件给天谋工作人员; +- 工作人员将返回每个ConfigNode、Datanode节点的license文件,这里会返回3个license文件; +- 将3个license文件分别放入对应的ConfigNode节点的activation文件夹下; - ```Bash - Please copy the system_info's content and send it to Timecho: - 01-KU5LDFFN-PNBEHDRH - Please enter license: - ``` +#### 方式二:激活脚本激活 +- 依次获取3台机器的机器码,进入 IoTDB CLI -- 其他2个节点依次执行激活脚本`start-activate.sh`,然后将获取的3台机器的机器码都复制给天谋工作人员 -- 工作人员会返回3段激活码,正常是与提供的3个机器码的顺序对应的,请分别将各自的激活码粘贴到上一步的命令行提示处 `Please enter license:`,如下提示: + - 表模型 CLI 进入命令: - ```Bash - Please enter license: - Jw+MmF+Atxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx5bAOXNeob5l+HO5fEMgzrW8OJPh26Vl6ljKUpCvpTiw== - License has been stored to sbin/../activation/license - Import completed. Please start cluster and excute 'show cluster' to verify activation status - ``` + ```SQL + # Linux或MACOS系统 + ./start-cli.sh -sql_dialect table + + # windows系统 + ./start-cli.bat -sql_dialect table + ``` -### 3.5 启动DataNode 节点 + - 树模型 CLI 进入命令: - 分别进入iotdb的`sbin`目录下,依次启动3个datanode节点: + ```SQL + # Linux或MACOS系统 + ./start-cli.sh + + # windows系统 + ./start-cli.bat + ``` -```Go -cd sbin -./start-datanode.sh -d #-d参数将在后台进行启动 -``` + - 执行以下内容获取激活所需机器码: -### 3.6 验证部署 + ```Bash + show system info + ``` -可直接执行`./sbin`目录下的Cli启动脚本: + - 显示如下信息,这里显示的是1台机器的机器码 : -```Plain -./start-cli.sh -h ip(本机ip或域名) -p 端口号(6667) -``` + ```Bash + +--------------------------------------------------------------+ + | SystemInfo| + +--------------------------------------------------------------+ + |01-TE5NLES4-UDDWCMYE,01-GG5NLES4-XXDWCMYE,01-FF5NLES4-WWWWCMYE| + +--------------------------------------------------------------+ + Total line number = 1 + It costs 0.030s + ``` + +- 其他2个节点依次进入到IoTDB树模型的CLI中,执行语句后将获取的3台机器的机器码都复制给天谋工作人员 - 成功启动后,出现如下界面显示IOTDB安装成功。 +- 工作人员会返回3段激活码,正常是与提供的3个机器码的顺序对应的,请分别将各自的激活码粘贴到CLI中,如下提示: -![](/img/%E4%BC%81%E4%B8%9A%E7%89%88%E6%88%90%E5%8A%9F.png) + - 注:激活码前后需要用`'`符号进行标注,如所示 + + ```Bash + IoTDB> activate '01-D4EYQGPZ-EAUJJODW-NUKRDR6F-TUQS3B75-EDZFLK3A-6BOKJFFZ-ALDHOMN7-NB2E4BHI-7ZKGFVK6-GCIFXA4T-UG3XJTTD-SHJV6F2P-Q27B4OMJ-R47ZDIM3-UUASUXG2-OQXGVZCO-MMYKICZU-TWFQYYAO-ZOAGOKJA-NYHQTA5U-EWAR4EP5-MRC6R2CI-PKUTKRCT-7UDGRH3F-7BYV4P5D-6KKIA===,01-D4EYQGPZ-EAUJJODW-NUKRDR6F-TUQS3B75-EDZFLK3A-6BOKJFFZ-ALDHOMN7-NB2E4BHI-7ZKGFVK6-GCIFXA4T-UG3XJTTD-SHJV6F2P-Q27B4OMJ-R47ZDIM3-UUASUXG2-OQXGVZCO-MMYKICZU-TWFQYYAO-ZOAGOKJA-NYHQTA5U-EWAR4EP5-MRC6R2CI-PKUTKRCT-7UDGRH3F-7BYV4P5D-6KKIA===,01-D4EYQGPZ-EAUJJODW-NUKRDR6F-TUQS3B75-EDZFLK3A-6BOKJFFZ-ALDHOMN7-NB2E4BHI-7ZKGFVK6-GCIFXA4T-UG3XJTTD-SHJV6F2P-Q27B4OMJ-R47ZDIM3-UUASUXG2-OQXGVZCO-MMYKICZU-TWFQYYAO-ZOAGOKJA-NYHQTA5U-EWAR4EP5-MRC6R2CI-PKUTKRCT-7UDGRH3F-7BYV4P5D-6KKIA===' + ``` -出现安装成功界面后,继续看下是否激活成功,使用 `show cluster`命令 +### 3.6 验证激活 -当看到最右侧显示`ACTIVATED`表示激活成功 +当看到“Result”字段状态显示为success表示激活成功 -![](/img/%E4%BC%81%E4%B8%9A%E7%89%88%E6%BF%80%E6%B4%BB.png) +![](/img/%E9%9B%86%E7%BE%A4-%E9%AA%8C%E8%AF%81.png) -> 出现`ACTIVATED(W)`为被动激活,表示此ConfigNode没有license文件(或没有签发时间戳最新的license文件),其激活依赖于集群中其它Activate状态的ConfigNode。此时建议检查license文件是否已放入license文件夹,没有请放入license文件,若已存在license文件,可能是此节点license文件与其他节点信息不一致导致,请联系天谋工作人员重新申请. ### 3.7 一键启停集群 diff --git a/src/zh/UserGuide/latest/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md b/src/zh/UserGuide/latest/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md index 04456e320..cc677aae9 100644 --- a/src/zh/UserGuide/latest/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md +++ b/src/zh/UserGuide/latest/Deployment-and-Maintenance/Stand-Alone-Deployment_timecho.md @@ -112,73 +112,76 @@ cd iotdb-enterprise-{version}-bin 进入iotdb的sbin目录下,启动confignode ```shell -./start-confignode.sh -d #“-d”参数将在后台进行启动 +./sbin/start-confignode.sh -d #“-d”参数将在后台进行启动 ``` -如果启动失败,请参考[常见问题](#常见问题)。 -### 2.4 激活数据库 +如果启动失败,请参考下方[常见问题](#常见问题)。 -#### 方式一:激活文件拷贝激活 +### 2.4 启动 DataNode 节点 -- 启动confignode节点后,进入activation文件夹, 将 system_info文件复制给天谋工作人员 -- 收到工作人员返回的 license文件 -- 将license文件放入对应节点的activation文件夹下; - -#### 方式二:激活脚本激活 - -- 获取激活所需机器码,进入安装目录的sbin目录,执行激活脚本: +进入iotdb的sbin目录下,启动datanode: ```shell - cd sbin -./start-activate.sh +./sbin/start-datanode.sh -d #“-d”参数将在后台进行启动 ``` -- 显示如下信息,请将机器码(即该串字符)复制给天谋工作人员: - -```shell -Please copy the system_info's content and send it to Timecho: -01-KU5LDFFN-PNBEHDRH -Please enter license: -``` +### 2.5 激活数据库 -- 将工作人员返回的激活码输入上一步的命令行提示处 `Please enter license:`,如下提示: +#### 方式一:文件激活 -```shell -Please enter license: -Jw+MmF+AtexsfgNGOFgTm83BgXbq0zT1+fOfPvQsLlj6ZsooHFU6HycUSEGC78eT1g67KPvkcLCUIsz2QpbyVmPLr9x1+kVjBubZPYlVpsGYLqLFc8kgpb5vIrPLd3hGLbJ5Ks8fV1WOVrDDVQq89YF2atQa2EaB9EAeTWd0bRMZ+s9ffjc/1Zmh9NSP/T3VCfJcJQyi7YpXWy5nMtcW0gSV+S6fS5r7a96PjbtE0zXNjnEhqgRzdU+mfO8gVuUNaIy9l375cp1GLpeCh6m6pF+APW1CiXLTSijK9Qh3nsL5bAOXNeob5l+HO5fEMgzrW8OJPh26Vl6ljKUpCvpTiw== -License has been stored to sbin/../activation/license -Import completed. Please start cluster and excute 'show cluster' to verify activation status -``` +- 启动Confignode、Datanode节点后,进入activation文件夹, 将 system_info文件复制给天谋工作人员 +- 收到工作人员返回的 license文件 +- 将license文件放入对应节点的activation文件夹下; -### 2.5 启动DataNode 节点 +#### 方式二:命令激活 +- 进入 IoTDB CLI + - 表模型 CLI 进入命令: + ```SQL + # Linux或MACOS系统 + ./start-cli.sh -sql_dialect table + + # windows系统 + ./start-cli.bat -sql_dialect table + ``` -进入iotdb的sbin目录下,启动datanode: + - 树模型 CLI 进入命令: + ```SQL + # Linux或MACOS系统 + ./start-cli.sh + + # windows系统 + ./start-cli.bat + ``` +- 执行以下内容获取激活所需机器码: -```shell -cd sbin -./start-datanode.sh -d #-d参数将在后台进行启动 +```Bash +show system info ``` -### 2.6 验证部署 +- 将返回机器码(即绿色字符串)复制给天谋工作人员: -可直接执行 ./sbin 目录下的 Cli 启动脚本: - -```shell -./start-cli.sh -h ip(本机ip或域名) -p 端口号(6667) +```Bash ++--------------------------------------------------------------+ +| SystemInfo| ++--------------------------------------------------------------+ +| 01-TE5NLES4-UDDWCMYE| ++--------------------------------------------------------------+ +Total line number = 1 +It costs 0.030s ``` -成功启动后,出现如下界面显示IOTDB安装成功。 - -![](/img/%E5%90%AF%E5%8A%A8%E6%88%90%E5%8A%9F.png) +- 将工作人员返回的激活码输入到CLI中,输入以下内容 + - 注:激活码前后需要用`'`符号进行标注,如所示 -出现安装成功界面后,继续看下是否激活成功,使用`show cluster`命令 - -当看到最右侧显示ACTIVATED表示激活成功 +```Bash +IoTDB> activate '01-D4EYQGPZ-EAUJJODW-NUKRDR6F-TUQS3B75-EDZFLK3A-6BOKJFFZ-ALDHOMN7-NB2E4BHI-7ZKGFVK6-GCIFXA4T-UG3XJTTD-SHJV6F2P-Q27B4OMJ-R47ZDIM3-UUASUXG2-OQXGVZCO-MMYKICZU-TWFQYYAO-ZOAGOKJA-NYHQTA5U-EWAR4EP5-MRC6R2CI-PKUTKRCT-7UDGRH3F-7BYV4P5D-6KKIA===' +``` -![](/img/show%20cluster.png) +### 2.6 验证激活 -> 出现`ACTIVATED(W)`为被动激活,表示此ConfigNode没有license文件(或没有签发时间戳最新的license文件)。此时建议检查license文件是否已放入license文件夹,没有请放入license文件,若已存在license文件,可能是此节点license文件与其他节点信息不一致导致,请联系天谋工作人员重新申请. +当看到“ClusterActivationStatus”字段状态显示为ACTIVATED表示激活成功 +![](/img/%E5%8D%95%E6%9C%BA-%E9%AA%8C%E8%AF%81.png) ## 3. 常见问题