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

K8S docker 部署1.1.5 kafka.bootstrap.servers参数以环境变量形式传入貌似无效 #3829

Closed
solaxxx opened this issue Sep 21, 2021 · 0 comments
Milestone

Comments

@solaxxx
Copy link

solaxxx commented Sep 21, 2021

environment

  • canal 1.1.5

Issue Description

用的k8S部署,镜像直接用的1.1.5官方镜像
通过环境变量env传入kafka.bootstrap.servers
值是 etl-kafka-svc.etl.svc.cluster.local:9092 这种svc的形式
image

在容器中查看,发现一直报 kafka timeout 60000ms的错误,设置logback.xml为debug模式,发现logs/canal/canal.log里面输出的kafka连接信息是127.0.0.1,随即在容器中直接修改了canal.properties中的kafka.bootstrap.servers,通过startup.sh启动后好了。

@solaxxx solaxxx changed the title 1.1.5 kafka.bootstrap.servers参数以环境变量形式传入貌似无效 K8S docker 形式部署1.1.5 kafka.bootstrap.servers参数以环境变量形式传入貌似无效 Sep 21, 2021
@solaxxx solaxxx changed the title K8S docker 形式部署1.1.5 kafka.bootstrap.servers参数以环境变量形式传入貌似无效 K8S docker 部署1.1.5 kafka.bootstrap.servers参数以环境变量形式传入貌似无效 Sep 21, 2021
@agapple agapple closed this as completed Oct 9, 2021
@agapple agapple added this to the v1.1.6 milestone Oct 9, 2021
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

2 participants