This is an automated email from the ASF dual-hosted git repository.
haonan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/iotdb.git
The following commit(s) were added to refs/heads/master by this push:
new 85fe36d324c This configuration file needs to be configured only when
the start-all.sh,stop-all.sh, and destroy.sh scripts are required. You also
need to modify this configuration file when the cluster nodes change (#11911)
85fe36d324c is described below
commit 85fe36d324cd9f19a69d44e985e2b8b5b702e0e1
Author: Summer <[email protected]>
AuthorDate: Wed Jan 17 14:33:30 2024 +0800
This configuration file needs to be configured only when the
start-all.sh,stop-all.sh, and destroy.sh scripts are required. You also need to
modify this configuration file when the cluster nodes change (#11911)
Co-authored-by: 2b3c511 <[email protected]>
---
.../node-commons/src/assembly/resources/conf/iotdb-cluster.properties | 3 +++
iotdb-core/node-commons/src/assembly/resources/sbin/destroy-all.sh | 1 +
2 files changed, 4 insertions(+)
diff --git
a/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-cluster.properties
b/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-cluster.properties
index 1e0d07d5d28..3661551c69d 100644
---
a/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-cluster.properties
+++
b/iotdb-core/node-commons/src/assembly/resources/conf/iotdb-cluster.properties
@@ -17,6 +17,9 @@
# under the License.
#
+# This configuration file needs to be configured only when the
start-all.sh,stop-all.sh, and destroy.sh scripts are required.
+# You also need to modify this configuration file when the cluster nodes change
+
# Configure ConfigNodes machine addresses separated by ,
confignode_address_list=
# Configure DataNodes machine addresses separated by ,
diff --git a/iotdb-core/node-commons/src/assembly/resources/sbin/destroy-all.sh
b/iotdb-core/node-commons/src/assembly/resources/sbin/destroy-all.sh
index 251499f8042..289a5c6c8f9 100644
--- a/iotdb-core/node-commons/src/assembly/resources/sbin/destroy-all.sh
+++ b/iotdb-core/node-commons/src/assembly/resources/sbin/destroy-all.sh
@@ -27,6 +27,7 @@ fi
export IOTDB_HOME="`dirname "$0"`/.."
IOTDB_CLUSTER_PATH="${IOTDB_HOME}"/conf/iotdb-cluster.properties
if [ ! -f ${IOTDB_CLUSTER_PATH} ]; then
+ exec ${IOTDB_HOME}/sbin/stop-standalone.sh -f >/dev/null 2>&1 &
exec rm -rf ${IOTDB_HOME}/data/
exec ${IOTDB_HOME}/sbin/destroy-datanode.sh -f >/dev/null 2>&1 &
exec ${IOTDB_HOME}/sbin/destroy-confignode.sh -f >/dev/null 2>&1 &