Skip to content

Commit 39e4620

Browse files
authored
fix ainode deployment (#776)
1 parent 15d53d2 commit 39e4620

File tree

16 files changed

+308
-486
lines changed

16 files changed

+308
-486
lines changed

src/UserGuide/Master/Tree/Deployment-and-Maintenance/AINode_Deployment_apache.md

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
AINode is the third type of endogenous node provided by IoTDB after the Configurable Node and DataNode. This node extends its ability to perform machine learning analysis on time series by interacting with the DataNode and Configurable Node of the IoTDB cluster. It supports the introduction of existing machine learning models from external sources for registration and the use of registered models to complete time series analysis tasks on specified time series data through simple SQL statements. The creation, management, and inference of models are integrated into the database engine. Currently, machine learning algorithms or self-developed models are available for common time series analysis scenarios, such as prediction and anomaly detection.
2828

2929
### 1.2 Delivery Method
30-
It is an additional package outside the IoTDB cluster, with independent installation and activation.
30+
It is an additional package outside the IoTDB cluster, with independent installation.
3131

3232
### 1.3 Deployment mode
3333
<div >
@@ -82,42 +82,31 @@
8282

8383
Recommend downloading the py311 version application and importing it into the iotdb dedicated folder in the user's root directory
8484
85-
3. Switch to the iotdb dedicated folder to install the Python environment
86-
87-
Taking Miniconda 3-py311_24.5.0-0-Lux-x86_64 as an example:
85+
3. Verify Python version
8886
8987
```shell
90-
bash ./Miniconda3-py311_24.5.0-0-Linux-x86_64.sh
91-
```
92-
> Type "Enter", "Long press space", "Enter", "Yes", "Yes" according to the prompt <br>
93-
> Close the current SSH window and reconnect
94-
95-
4. Create a dedicated environment
96-
97-
```shell
98-
conda create -n ainode_py python=3.11.9
88+
python --version
9989
```
90+
4. Create a virtual environment (execute in the ainode directory)
10091
101-
Type 'y' according to the prompt
92+
```shell
93+
python -m venv venv
94+
```
10295
103-
5. Activate dedicated environment
96+
5. Activate the virtual environment
10497
105-
```shell
106-
conda activate ainode_py
107-
```
98+
```shell
99+
source venv/bin/activate
100+
```
108101
109-
6. Verify Python version
110102
111-
```shell
112-
python --version
113-
```
114-
7. Download and import AINode to a dedicated folder, switch to the dedicated folder and extract the installation package
103+
6. Download and import AINode to a dedicated folder, switch to the dedicated folder and extract the installation package
115104
116105
```shell
117106
unzip iotdb-enterprise-ainode-1.3.3.2.zip
118107
```
119108
120-
8. Configuration item modification
109+
7. Configuration item modification
121110
122111
```shell
123112
vi iotdb-enterprise-ainode-1.3.3.2/conf/iotdb-ainode.properties
@@ -127,13 +116,13 @@
127116
> ain_seed_config_node=iotdb-1:10710 (Cluster communication node IP: communication node port)<br>
128117
> ain_inference_rpc_address=iotdb-3 (IP address of the server running AINode)
129118
130-
9. Replace Python source
119+
8. Replace Python source
131120
132121
```shell
133122
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
134123
```
135124
136-
10. Start the AINode node
125+
9. Start the AINode node
137126
138127
```shell
139128
nohup bash iotdb-enterprise-ainode-1.3.3.2/sbin/start-ainode.sh > myout.file 2>& 1 &

src/UserGuide/Master/Tree/Deployment-and-Maintenance/AINode_Deployment_timecho.md

Lines changed: 22 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
AINode is the third type of endogenous node provided by IoTDB after the Configurable Node and DataNode. This node extends its ability to perform machine learning analysis on time series by interacting with the DataNode and Configurable Node of the IoTDB cluster. It supports the introduction of existing machine learning models from external sources for registration and the use of registered models to complete time series analysis tasks on specified time series data through simple SQL statements. The creation, management, and inference of models are integrated into the database engine. Currently, machine learning algorithms or self-developed models are available for common time series analysis scenarios, such as prediction and anomaly detection.
2828

2929
### 1.2 Delivery Method
30-
It is an additional package outside the IoTDB cluster, with independent installation and activation.
30+
It is an additional package outside the IoTDB cluster, with independent installation.
3131

3232
### 1.3 Deployment mode
3333
<div >
@@ -107,71 +107,59 @@
107107
./start-datanode.sh -d #The parameter'd 'will be started in the background
108108
```
109109
110-
2. Check the kernel architecture of Linux
110+
2. Check the kernel architecture of Linux
111111
```shell
112112
uname -m
113-
```
113+
```
114114
115-
3. Import Python environment [Download](https://repo.anaconda.com/miniconda/)
115+
3. Import Python environment [Download](https://repo.anaconda.com/miniconda/)
116116
117117
Recommend downloading the py311 version application and importing it into the iotdb dedicated folder in the user's root directory
118118
119-
4. Switch to the iotdb dedicated folder to install the Python environment
120-
121-
Taking Miniconda 3-py311_24.5.0-0-Lux-x86_64 as an example:
122-
123-
```shell
124-
bash ./Miniconda3-py311_24.5.0-0-Linux-x86_64.sh
125-
```
126-
> Type "Enter", "Long press space", "Enter", "Yes", "Yes" according to the prompt <br>
127-
> Close the current SSH window and reconnect
119+
4. Verify Python version
128120
129-
5. Create a dedicated environment
121+
```shell
122+
python --version
123+
```
124+
5. Create a virtual environment (execute in the ainode directory)
130125

131126
```shell
132-
conda create -n ainode_py python=3.11.9
133-
```
127+
python -m venv venv
128+
```
134129

135-
Type 'y' according to the prompt
136-
137-
6. Activate dedicated environment
130+
6. Activate the virtual environment
138131

139132
```shell
140-
conda activate ainode_py
141-
```
133+
source venv/bin/activate
134+
```
142135

143-
7. Verify Python version
144-
145-
```shell
146-
python --version
147-
```
148-
8. Download and import AINode to a dedicated folder, switch to the dedicated folder and extract the installation package
136+
7. Download and import AINode to a dedicated folder, switch to the dedicated folder and extract the installation package
149137

150138
```shell
151139
unzip iotdb-enterprise-ainode-1.3.3.2.zip
152-
```
140+
```
153141

154-
9. Configuration item modification
142+
8. Configuration item modification
155143

156144
```shell
157145
vi iotdb-enterprise-ainode-1.3.3.2/conf/iotdb-ainode.properties
158-
```
146+
```
159147
Configuration item modification:[detailed information](#configuration-item-modification)
160148

161149
> ain_seed_config_node=iotdb-1:10710 (Cluster communication node IP: communication node port)<br>
162150
> ain_inference_rpc_address=iotdb-3 (IP address of the server running AINode)
163151
164-
10. Replace Python source
152+
9. Replace Python source
165153

166154
```shell
167155
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
168-
```
156+
```
169157

170-
11. Start the AINode node
158+
10. Start the AINode node
171159

172160
```shell
173161
nohup bash iotdb-enterprise-ainode-1.3.3.2/sbin/start-ainode.sh > myout.file 2>& 1 &
174-
```
162+
```
175163
> Return to the default environment of the system: conda deactivate
176164
177165
### 3.2 Configuration item modification

src/UserGuide/V1.3.x/Deployment-and-Maintenance/AINode_Deployment_apache.md

Lines changed: 15 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
AINode is the third type of endogenous node provided by IoTDB after the Configurable Node and DataNode. This node extends its ability to perform machine learning analysis on time series by interacting with the DataNode and Configurable Node of the IoTDB cluster. It supports the introduction of existing machine learning models from external sources for registration and the use of registered models to complete time series analysis tasks on specified time series data through simple SQL statements. The creation, management, and inference of models are integrated into the database engine. Currently, machine learning algorithms or self-developed models are available for common time series analysis scenarios, such as prediction and anomaly detection.
2828

2929
### Delivery Method
30-
It is an additional package outside the IoTDB cluster, with independent installation and activation.
30+
It is an additional package outside the IoTDB cluster, with independent installation.
3131

3232
### Deployment mode
3333
<div >
@@ -82,42 +82,31 @@
8282

8383
Recommend downloading the py311 version application and importing it into the iotdb dedicated folder in the user's root directory
8484
85-
3. Switch to the iotdb dedicated folder to install the Python environment
86-
87-
Taking Miniconda 3-py311_24.5.0-0-Lux-x86_64 as an example:
85+
3. Verify Python version
8886
8987
```shell
90-
bash ./Miniconda3-py311_24.5.0-0-Linux-x86_64.sh
91-
```
92-
> Type "Enter", "Long press space", "Enter", "Yes", "Yes" according to the prompt <br>
93-
> Close the current SSH window and reconnect
94-
95-
4. Create a dedicated environment
96-
97-
```shell
98-
conda create -n ainode_py python=3.11.9
88+
python --version
9989
```
90+
4. Create a virtual environment (execute in the ainode directory)
10091
101-
Type 'y' according to the prompt
92+
```shell
93+
python -m venv venv
94+
```
10295
103-
5. Activate dedicated environment
96+
5. Activate the virtual environment
10497
105-
```shell
106-
conda activate ainode_py
107-
```
98+
```shell
99+
source venv/bin/activate
100+
```
108101
109-
6. Verify Python version
110102
111-
```shell
112-
python --version
113-
```
114-
7. Download and import AINode to a dedicated folder, switch to the dedicated folder and extract the installation package
103+
6. Download and import AINode to a dedicated folder, switch to the dedicated folder and extract the installation package
115104
116105
```shell
117106
unzip iotdb-enterprise-ainode-1.3.3.2.zip
118107
```
119108
120-
8. Configuration item modification
109+
7. Configuration item modification
121110
122111
```shell
123112
vi iotdb-enterprise-ainode-1.3.3.2/conf/iotdb-ainode.properties
@@ -127,13 +116,13 @@
127116
> ain_seed_config_node=iotdb-1:10710 (Cluster communication node IP: communication node port)<br>
128117
> ain_inference_rpc_address=iotdb-3 (IP address of the server running AINode)
129118
130-
9. Replace Python source
119+
8. Replace Python source
131120
132121
```shell
133122
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
134123
```
135124
136-
10. Start the AINode node
125+
9. Start the AINode node
137126
138127
```shell
139128
nohup bash iotdb-enterprise-ainode-1.3.3.2/sbin/start-ainode.sh > myout.file 2>& 1 &

src/UserGuide/V1.3.x/Deployment-and-Maintenance/AINode_Deployment_timecho.md

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
AINode is the third type of endogenous node provided by IoTDB after the Configurable Node and DataNode. This node extends its ability to perform machine learning analysis on time series by interacting with the DataNode and Configurable Node of the IoTDB cluster. It supports the introduction of existing machine learning models from external sources for registration and the use of registered models to complete time series analysis tasks on specified time series data through simple SQL statements. The creation, management, and inference of models are integrated into the database engine. Currently, machine learning algorithms or self-developed models are available for common time series analysis scenarios, such as prediction and anomaly detection.
2828

2929
### Delivery Method
30-
It is an additional package outside the IoTDB cluster, with independent installation and activation.
30+
It is an additional package outside the IoTDB cluster, with independent installation.
3131

3232
### Deployment mode
3333
<div >
@@ -107,71 +107,59 @@
107107
./start-datanode.sh -d #The parameter'd 'will be started in the background
108108
```
109109
110-
2. Check the kernel architecture of Linux
110+
2. Check the kernel architecture of Linux
111111
```shell
112-
uname -m
113-
```
112+
uname -m
113+
```
114114
115-
3. Import Python environment [Download](https://repo.anaconda.com/miniconda/)
115+
3. Import Python environment [Download](https://repo.anaconda.com/miniconda/)
116116
117-
Recommend downloading the py311 version application and importing it into the iotdb dedicated folder in the user's root directory
118-
119-
4. Switch to the iotdb dedicated folder to install the Python environment
120-
121-
Taking Miniconda 3-py311_24.5.0-0-Lux-x86_64 as an example:
117+
Recommend downloading the py311 version application and importing it into the iotdb dedicated folder in the user's root directory
122118
123-
```shell
124-
bash ./Miniconda3-py311_24.5.0-0-Linux-x86_64.sh
125-
```
126-
> Type "Enter", "Long press space", "Enter", "Yes", "Yes" according to the prompt <br>
127-
> Close the current SSH window and reconnect
119+
4. Verify Python version
128120
129-
5. Create a dedicated environment
121+
```shell
122+
python --version
123+
```
124+
5. Create a virtual environment (execute in the ainode directory)
130125

131126
```shell
132-
conda create -n ainode_py python=3.11.9
133-
```
134-
135-
Type 'y' according to the prompt
127+
python -m venv venv
128+
```
136129

137-
6. Activate dedicated environment
130+
6. Activate the virtual environment
138131

139132
```shell
140-
conda activate ainode_py
141-
```
133+
source venv/bin/activate
134+
```
142135

143-
7. Verify Python version
144-
145-
```shell
146-
python --version
147-
```
148-
8. Download and import AINode to a dedicated folder, switch to the dedicated folder and extract the installation package
136+
7. Download and import AINode to a dedicated folder, switch to the dedicated folder and extract the installation package
149137

150138
```shell
151139
unzip iotdb-enterprise-ainode-1.3.3.2.zip
152-
```
140+
```
153141

154-
9. Configuration item modification
142+
8. Configuration item modification
155143

156144
```shell
157145
vi iotdb-enterprise-ainode-1.3.3.2/conf/iotdb-ainode.properties
158-
```
146+
```
159147
Configuration item modification:[detailed information](#configuration-item-modification)
160148

161149
> ain_seed_config_node=iotdb-1:10710 (Cluster communication node IP: communication node port)<br>
162150
> ain_inference_rpc_address=iotdb-3 (IP address of the server running AINode)
163151
164-
10. Replace Python source
152+
9. Replace Python source
165153

166154
```shell
167155
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
168-
```
156+
```
169157

170-
11. Start the AINode node
158+
10. Start the AINode node
171159

172160
```shell
173161
nohup bash iotdb-enterprise-ainode-1.3.3.2/sbin/start-ainode.sh > myout.file 2>& 1 &
174-
```
162+
```
175163
> Return to the default environment of the system: conda deactivate
176164
177165
### Configuration item modification

0 commit comments

Comments
 (0)