Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[INLONG-5215][TubeMQ] Fix execution error of init-tube-cluster.sh script #5216

Merged
merged 1 commit into from
Jul 26, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion inlong-tubemq/tubemq-manager/bin/init-tube-cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
# 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


# 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