是否有等效的 Debezium 命令来在没有 Docker 容器的情况下启动 Kafka Connect [英] Is there a equivalent Debezium command to starting Kafka Connect without Docker container

查看:32
本文介绍了是否有等效的 Debezium 命令来在没有 Docker 容器的情况下启动 Kafka Connect的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

debezium kafka 连接命令是:docker run -it --rm --name connect -p 8083:8083 -e GROUP_ID=1 -e CONFIG_STORAGE_TOPIC=my_connect_configs -e OFFSET_STORAGE_TOPIC=my_connect_offsets -e STATUS_STORAGE_TOPIC=my_connect_statuses --linkkeeperkazookafkafka --link mysql:mysql debezium/connect:0.9

The debezium kafka connect command is : docker run -it --rm --name connect -p 8083:8083 -e GROUP_ID=1 -e CONFIG_STORAGE_TOPIC=my_connect_configs -e OFFSET_STORAGE_TOPIC=my_connect_offsets -e STATUS_STORAGE_TOPIC=my_connect_statuses --link zookeeper:zookeeper --link kafka:kafka --link mysql:mysql debezium/connect:0.9

是否有一种等效的方法可以不在带有标志的 docker 容器内运行以指定 zookeeper 实例和 kafka 引导服务器/代理?我的 kafka 和 zookeeper 在本地运行在我的 mac 上,但不在 docker 容器内.

Is there an equivalent way to not run inside a docker container with flags to specify the zookeeper instance and kafka bootstrap servers/broker ? I have my kafka and zookeeper running on my mac locally but not inside a docker container .

谢谢

推荐答案

没有标志",只有属性文件.docker 镜像只是在这些文件中使用变量替换.

There are no "flags", just properties files. The docker image is just using variable substitution inside of those files.

您可以参考 Debezium 安装文档,它只是一个插件Kafka Connect,它包含在您的 Kafka 安装中.

You can refer to the Debezium installation documentation, and it is just a plugin to Kafka Connect, which is included with your Kafka installation.

在您的 Kafka 安装中找到 connect-standalone.properties 以开始使用.您要编辑的一个重要属性是 plugin.path,它必须是放置 Debezium JAR 文件的完整父路径.然后Kafka也在那里配置

Find connect-standalone.properties in your Kafka install to get started. One important property you will want to edit is plugin.path, which must be the full parent path to where you put the Debezium JAR files. Then Kafka is configured there as well

然后你会运行它来启动一个节点

Then you would run this to start a single node

connect-standalone.sh connect-standalone.properties your-debezium-config.properties

(Docker 镜像正在运行 connect-distributed.sh,但您不需要只在 Mac 上运行集群)

(Docker image is running connect-distributed.sh, but you wouldn't need to run a Cluster just on your Mac)

这篇关于是否有等效的 Debezium 命令来在没有 Docker 容器的情况下启动 Kafka Connect的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆