Skip to content

Commit

Permalink
This configuration file needs to be configured only when the start-al…
Browse files Browse the repository at this point in the history
…l.sh,stop-all.sh, and destroy.sh scripts are required. You also need to modify this configuration file when the cluster nodes change (apache#11911)

Co-authored-by: 2b3c511 <rong.li@timecho.com>
  • Loading branch information
2b3c511 and 2b3c511 authored Jan 17, 2024
1 parent 8fefc91 commit 85fe36d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand Down

0 comments on commit 85fe36d

Please sign in to comment.