You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by go...@apache.org on 2021/07/23 09:09:37 UTC

[incubator-inlong-website] branch master updated: [INLONG-792] tubemanager add a cluster after configuration (#107)

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

gosonzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-inlong-website.git


The following commit(s) were added to refs/heads/master by this push:
     new 370123a  [INLONG-792] tubemanager add a cluster after configuration (#107)
370123a is described below

commit 370123a780add38a7e728a5185d9903f5d5e0ede
Author: ziruipeng <zp...@connect.ust.hk>
AuthorDate: Fri Jul 23 17:09:32 2021 +0800

    [INLONG-792] tubemanager add a cluster after configuration (#107)
    
    Co-authored-by: stingpeng <st...@tencent.com>
---
 .../modules/tubemq/tubemq-manager/quick_start.md   | 22 ++++++++++++++++++----
 .../modules/tubemq/tubemq-manager/quick_start.md   | 22 +++++++++++++++++-----
 2 files changed, 35 insertions(+), 9 deletions(-)

diff --git a/docs/en-us/modules/tubemq/tubemq-manager/quick_start.md b/docs/en-us/modules/tubemq/tubemq-manager/quick_start.md
index d8d4e6e..cf27a7c 100644
--- a/docs/en-us/modules/tubemq/tubemq-manager/quick_start.md
+++ b/docs/en-us/modules/tubemq/tubemq-manager/quick_start.md
@@ -19,12 +19,26 @@ $ bin/start-manager.sh
 ```
 
 ### register TubeMQ cluster
-replace `master_ip` and other parameters of TubeMQ Clusters, .
+
+    vim bin/init-tube-cluster.sh
+
+replace the parameters below
 ```
-curl --header "Content-Type: application/json" --request POST --data \
-'{"masterIp":"master_ip","clusterName":"inlong","masterPort":"8715","masterWebPort":"8080","createUser":"manager","token":"abc"}' \
-http://127.0.0.1:8089/v1/cluster?method=add
+TUBE_MANAGER_IP=  
+TUBE_MANAGER_PORT=   
+TUBE_MASTER_IP=   
+TUBE_MASTER_PORT=
+TUBE_MASTER_WEB_PORT=
+TUBE_MASTER_TOKEN=
+```
+
+then run:
 ```
+sh bin/init-tube-cluster.sh
+```
+
+this will create a cluster with id = 1, note that this operation should not be executed repeatedly.
+
 
 ### Appendix: Other Operation interface
 
diff --git a/docs/zh-cn/modules/tubemq/tubemq-manager/quick_start.md b/docs/zh-cn/modules/tubemq/tubemq-manager/quick_start.md
index d40cce6..41a0e4e 100644
--- a/docs/zh-cn/modules/tubemq/tubemq-manager/quick_start.md
+++ b/docs/zh-cn/modules/tubemq/tubemq-manager/quick_start.md
@@ -18,13 +18,25 @@ spring.datasource.password=mysql_password
 $ bin/start-manager.sh 
 ```
 
-### 注册TubeMQ集群
-替换`master_ip`等TubeMQ集群参数,然后执行以下命令:
+### 初始化TubeMQ集群
+
+    vim bin/init-tube-cluster.sh
+
+替换如下六个参数
+```
+TUBE_MANAGER_IP=   //tube manager服务启动ip
+TUBE_MANAGER_PORT=   //tube manager服务启动port
+TUBE_MASTER_IP=   //tube 集群master ip
+TUBE_MASTER_PORT=
+TUBE_MASTER_WEB_PORT=
+TUBE_MASTER_TOKEN=
+```
+
+然后执行以下命令:
 ```
-curl --header "Content-Type: application/json" --request POST --data \
-'{"masterIp":"master_ip","clusterName":"inlong","masterPort":"8715","masterWebPort":"8080","createUser":"manager","token":"abc"}' \
-http://127.0.0.1:8089/v1/cluster?method=add
+sh bin/init-tube-cluster.sh
 ```
+如上操作会创建一个clusterId为1的tube集群,注意该操作只进行一次,之后重启服务无需新建集群
 
 ### 附录:其它操作接口