Deployment

All deploying files at inlong-tubemq-manager directory.

Environment Preparation

  • Install and start MySQL 5.7+
  • Load sql/apache_tube_manager.sql through the command to complete the initialization of the table structure and basic data:
  1. # Create database and table with username and password:
  2. mysql -uDB_USER -pDB_PASSWD < sql/apache_tube_manager.sql

Configuration

  1. # MySQL configuration for Manager
  2. spring.datasource.url=jdbc:mysql://mysql_ip:mysql_port/apache_tube_manager
  3. spring.datasource.username=mysql_username
  4. spring.datasource.password=mysql_password
  5. # If you are on JDK version 11+, add the following extra
  6. spring.jaxb-compatibility-mode=true
  7. spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQLDialect

Dependencies

Start

  1. $ bin/start-manager.sh

Restart

  1. $ bin/restart-manager.sh

Register TubeMQ cluster

  1. vim bin/init-tube-cluster.sh

replace the parameters below

  1. TUBE_MANAGER_IP=
  2. TUBE_MANAGER_PORT=
  3. TUBE_MASTER_IP=
  4. TUBE_MASTER_PORT=
  5. TUBE_MASTER_WEB_PORT=
  6. TUBE_MASTER_TOKEN=

then run:

  1. sh bin/init-tube-cluster.sh

this will create a cluster with id = 1, note that this operation should not be executed repeatedly.