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

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

Open
XiaoNing0430 opened this issue Sep 17, 2024 · 4 comments

Comments

@XiaoNing0430
Copy link

XiaoNing0430 commented Sep 17, 2024

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
Copy link

canal_manager库 有 这个 canal这个用户吗

@XiaoNing0430
Copy link
Author

canal_manager库 有 这个 canal这个用户吗

数据库用户吗?有的

@XiaoNing0430 XiaoNing0430 changed the title docker compose 部署的canal-server、canal-admin,canal-server注册不到canal-admin中 docker compose 部署的canal-server、canal-admin,canal-server注册不到canal-admin中,版本 v1.1.7 Sep 18, 2024
@dyrnq
Copy link

dyrnq commented Oct 24, 2024

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

@dyrnq
Copy link

dyrnq commented Oct 24, 2024

或者你的意思是这样?

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants