@@ -146,54 +146,6 @@ IF DEFINED CONFIG_FILE (
146146 set dn_data_region_consensus_port = 10760
147147)
148148
149- echo Check whether the ports are occupied....
150- set occupied = 0
151- set dn_rpc_port_occupied = 0
152- set dn_internal_port_occupied = 0
153- set dn_mpp_data_exchange_port_occupied = 0
154- set dn_schema_region_consensus_port_occupied = 0
155- set dn_data_region_consensus_port_occupied = 0
156- for /f " tokens=1,3,7 delims=: " %%i in ('netstat /ano') do (
157- if %%i == TCP (
158- if %%j == %dn_rpc_port% (
159- if !dn_rpc_port_occupied! == 0 (
160- echo The dn_rpc_port %dn_rpc_port% is already occupied, pid:%%k
161- set occupied = 1
162- set dn_rpc_port_occupied = 1
163- )
164- ) else if %%j == %dn_internal_port% (
165- if !dn_internal_port_occupied! == 0 (
166- echo The dn_internal_port %dn_internal_port% is already occupied, pid:%%k
167- set occupied = 1
168- set dn_internal_port_occupied = 1
169- )
170- ) else if %%j == %dn_mpp_data_exchange_port% (
171- if !dn_mpp_data_exchange_port_occupied! == 0 (
172- echo The dn_mpp_data_exchange_port %dn_mpp_data_exchange_port% is already occupied, pid:%%k
173- set occupied = 1
174- set dn_mpp_data_exchange_port_occupied = 1
175- )
176- ) else if %%j == %dn_schema_region_consensus_port% (
177- if !dn_schema_region_consensus_port_occupied! == 0 (
178- echo The dn_schema_region_consensus_port %dn_schema_region_consensus_port% is already occupied, pid:%%k
179- set occupied = 1
180- set dn_schema_region_consensus_port_occupied = 1
181- )
182- ) else if %%j == %dn_data_region_consensus_port% (
183- if !dn_data_region_consensus_port_occupied! == 0 (
184- echo The dn_data_region_consensus_port %dn_data_region_consensus_port% is already occupied, pid:%%k
185- set occupied = 1
186- )
187- )
188- )
189- )
190-
191- if %occupied% == 1 (
192- echo There exists occupied port, please change the configuration.
193- TIMEOUT /T 10 /NOBREAK
194- exit 0
195- )
196-
197149@ setlocal ENABLEDELAYEDEXPANSION ENABLEEXTENSIONS
198150set CONF_PARAMS = -s
199151if NOT DEFINED MAIN_CLASS set MAIN_CLASS = org.apache.iotdb.db.service.DataNode
0 commit comments