Skip to content

Commit 08577d4

Browse files
committed
fix ainode deployment
1 parent 28896c9 commit 08577d4

16 files changed

Lines changed: 293 additions & 471 deletions

File tree

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

Lines changed: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 21 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 14 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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: 23 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -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)