加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
README.adoc 2.20 KB
一键复制 编辑 原始数据 按行查看 历史
Chris Bono 提交于 2022-04-15 13:05 . Add schema registry to Kafka tools

Docker Compose scripts for Kafka

Kafka Cluster

Runs a multi-node Kafka cluster w/ 3 brokers available at locahost:9091,localhost:9092,localhost:9093.

To start the brokers run the following command:

docker-compose -f ./kafka-cluster.yml up

To stop the brokers run the following command:

docker-compose -f ./kafka-cluster.yml down
Tip
To start the containers in the foreground simply add -d to the start command. To stop containers that are running in the foreground simple issue CTRL-C command.

Control Center UI

Runs a Confluent Control Center that exposes a UI at http://locahost:9021.

Note
The scripts must be chained together as the UI depends on the brokers

To start the brokers and the Control Center UI run the following command:

docker-compose -f ./kafka-cluster.yml -f ./control-center-ui.yml up

To stop the brokers and the Control Center UI run the following command:

docker-compose -f ./kafka-cluster.yml -f ./control-center-ui.yml down

Schema Registry

Note
The scripts must be chained together as the schema registry depends on the brokers

To start the brokers and the schema registry run the following command:

docker-compose -f ./kafka-cluster.yml -f ./schema-registry.yml up

To stop the brokers and the schema registry run the following command:

docker-compose -f ./kafka-cluster.yml -f ./schema-registry.yml down

All The Things

The scripts can be chained together to start the cluster, UI and schema registry with the following commmand:

docker-compose -f kafka-cluster.yml -f ./control-center-ui.yml -f ./schema-registry.yml up

Likewise, to stop all the things:

docker-compose -f kafka-cluster.yml -f ./control-center-ui.yml -f ./schema-registry.yml down
Tip
The only "UI" representation of the schema registry is by navigating to a Topic and then clicking the Schema tab for the topic
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化