alibaba / canal

阿里巴巴 MySQL binlog 增量订阅&消费组件
Apache License 2.0
28.5k stars 7.62k forks source link

docker compose 部署的canal-server、canal-admin,canal-server注册不到canal-admin中,版本 v1.1.7 #5272

Open XiaoNing0430 opened 1 month ago

XiaoNing0430 commented 1 month ago

docker compose 部署的canal-server、canal-admin,canal-server注册不到canal-admin中

镜像版本

canal/canal-server:v1.1.7
canal/canal-admin:v1.1.7

canal-server配置

# canal admin config
canal.admin.manager = canal-admin:8089
canal.admin.port = 11110
canal.admin.user = admin
canal.admin.passwd = 4ACFE3202A5FF5CF467898FC58AAB1D615029441
# admin auto register
canal.admin.register.auto = true
canal.admin.register.cluster = canal-single-node
canal.admin.register.name = 

canal-admin配置

spring.datasource:
  address: mysql-8.3.0:3306
  database: canal_manager
  username: canal
  password: canal
  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: admin

canal-server报错如下

image

zhangsanhelisi commented 1 month ago

canal_manager库 有 这个 canal这个用户吗

XiaoNing0430 commented 1 month ago

canal_manager库 有 这个 canal这个用户吗

数据库用户吗?有的

dyrnq commented 2 weeks ago

需要先在canal-admin中创建名字为canal-single-node的集群,因为配置制定了canal.admin.register.cluster = canal-single-node

dyrnq commented 2 weeks ago

或者你的意思是这样?

canal.admin.register.cluster = 
canal.admin.register.name = canal-single-node