Canal Admin配置管理和节点运维Web的安装部署

2021/10/9 23:03:15

本文主要是介绍Canal Admin配置管理和节点运维Web的安装部署,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

目录

  • 1. 组件说明
  • 2. 下载解压
  • 3. 初始化元数据库canal_manager
  • 4. canal.admin-1.1.5/conf/application.yml
  • 5. canal.deployer-1.1.5/conf/canal.properties
  • 6. 启动

Canal Admin提供一种更方便的管理canal.deploy、instance的操作

1. 组件说明

组件版本服务器安装教程作用
canal1.1.5canal1, canal2, canal3canal HA安装 + mysql多节点自动切换为Canal Admin提供运维接口
zookeeper3.6.3canal1, canal2, canal3zookeeper全分布式安装
mysql8.0.25canal1, canal2mysql master-master架构搭建canal.deploy源数据库
mysql8.0.25canal3centos7安装mysql8.0.25版本Client Admin的配置储存数据库

2. 下载解压

[root@canal1 ~]#
[root@canal1 ~]# wget https://github.com/alibaba/canal/releases/download/canal-1.1.5/canal.admin-1.1.5.tar.gz
[root@canal1 ~]#
[root@canal1 ~]# mkdir canal.admin-1.1.5
[root@canal1 ~]# 
[root@canal1 ~]# tar -zxvf canal.admin-1.1.5.tar.gz -C canal.admin-1.1.5
[root@canal1 ~]#

3. 初始化元数据库canal_manager

[root@canal1 ~]# 
[root@canal1 ~]# mysql -h canal3 -P 3306 -u root -pRoot_123 -e "source /root/canal.admin-1.1.5/conf/canal_manager.sql"
mysql: [Warning] Using a password on the command line interface can be insecure.
[root@canal1 ~]#

4. canal.admin-1.1.5/conf/application.yml

[root@canal1 ~]#
[root@canal1 ~]# cat canal.admin-1.1.5/conf/application.yml
server:
  port: 8089
spring:
  jackson:
    date-format: yyyy-MM-dd HH:mm:ss
    time-zone: GMT+8

spring.datasource:
  address: canal3:3306
  database: canal_manager
  username: root
  password: Root_123
  driver-class-name: com.mysql.jdbc.Driver
  url: jdbc:mysql://${spring.datasource.address}/${spring.datasource.database}?useUnicode=true&characterEncoding=UTF-8&useSSL=false
  hikari:
    maximum-pool-size: 30
    minimum-idle: 1

canal:
  adminUser: admin
  adminPasswd: admin123
[root@canal1 ~]#

5. canal.deployer-1.1.5/conf/canal.properties

在3台服务器进行操作,修改部分为:

canal.admin.manager = canal1:8089
canal.admin.user = admin
canal.admin.passwd = admin123

canal.admin.register.auto = true
canal.admin.register.cluster =

然后重启canal.deployer

6. 启动

[root@canal1 ~]#
[root@canal1 ~]# canal.admin-1.1.5/bin/restart.sh
[root@canal1 ~]#

查看logs如下:

[root@canal1 ~]# 
......省略部分......
2021-07-30 03:43:04.404 [main] INFO  o.s.boot.web.embedded.tomcat.TomcatWebServer - Tomcat started on port(s): 8089 (http) with context path ''
2021-07-30 03:43:04.408 [main] INFO  com.alibaba.otter.canal.admin.CanalAdminApplication - Started CanalAdminApplication in 8.066 seconds (JVM running for 9.103)
[root@canal1 ~]# 

通过http://canal1:8089进行登录,密码用户名为:admin / 123456, 密码不是application.yml设置的admin123

canal admin



这篇关于Canal Admin配置管理和节点运维Web的安装部署的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程