You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by zi...@apache.org on 2022/07/26 08:48:37 UTC

[inlong] branch master updated: [INLONG-5215][TubeMQ]Fix initialization script ‘init-tube-cluster.sh’ execution error (#5216)

This is an automated email from the ASF dual-hosted git repository.

zirui pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 7d235355c [INLONG-5215][TubeMQ]Fix initialization script ‘init-tube-cluster.sh’ execution error (#5216)
7d235355c is described below

commit 7d235355c987db71c1bdc2752806230735213edc
Author: baomingyu <ba...@163.com>
AuthorDate: Tue Jul 26 03:48:32 2022 -0500

    [INLONG-5215][TubeMQ]Fix initialization script ‘init-tube-cluster.sh’ execution error (#5216)
---
 inlong-tubemq/tubemq-manager/bin/init-tube-cluster.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/inlong-tubemq/tubemq-manager/bin/init-tube-cluster.sh b/inlong-tubemq/tubemq-manager/bin/init-tube-cluster.sh
index cef8cb945..2319ce43a 100644
--- a/inlong-tubemq/tubemq-manager/bin/init-tube-cluster.sh
+++ b/inlong-tubemq/tubemq-manager/bin/init-tube-cluster.sh
@@ -19,7 +19,9 @@
 # the parameters for init cluster
 TUBE_MANAGER_IP=127.0.0.1
 TUBE_MANAGER_PORT=8089
+TUBE_MASTER_ID=1
 TUBE_MASTER_IP=127.0.0.1
+TUBE_MASTER_STANDBY=fasle
 TUBE_MASTER_PORT=8715
 TUBE_MASTER_WEB_PORT=8080
 TUBE_MASTER_TOKEN=abc
@@ -27,5 +29,5 @@ TUBE_MASTER_TOKEN=abc
 
 # execute curl to add cluster, note that this command only need to execute once
 curl --header "Content-Type: application/json" --request POST --data \
-'{"masterIp":"'"$TUBE_MASTER_IP"'","clusterName":"inlong","masterPort":"'"$TUBE_MASTER_PORT"'","masterWebPort":"'"$TUBE_MASTER_WEB_PORT"'","createUser":"manager","token":"'"$TUBE_MASTER_TOKEN"'"}' \
+'{"id":0,"masterEntries":[{"id":1,"ip":"'"$TUBE_MASTER_IP"'","port":"'"$TUBE_MASTER_PORT"'","webPort":"'"$TUBE_MASTER_WEB_PORT"'","standby":"'"$TUBE_MASTER_STANDBY"'","token":"'"$TUBE_MASTER_TOKEN"'","clusterId":0}],"clusterName":"inlong","createUser":"manager","token":"'"$TUBE_MASTER_TOKEN"'","reloadBrokerSize":1}' \
 http://"$TUBE_MANAGER_IP":"$TUBE_MANAGER_PORT"/v1/cluster?method=add
\ No newline at end of file