mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2025-09-07 21:09:33 +00:00
update 优化 kafka 示例 支持自动创建 topic
This commit is contained in:
@@ -32,13 +32,3 @@ sh mqadmin updateTopic -n <nameserver_address> -t <topic_name> -c <cluster_name>
|
||||
```shell
|
||||
bin/mqadmin updatetopic -n localhost:9876 -t transaction-topic -c DefaultCluster -a +message.type=TRANSACTION
|
||||
```
|
||||
|
||||
kafka:
|
||||
|
||||
```shell
|
||||
kafka-topics.sh --create --topic <topic_name> --bootstrap-server <broker_list> --partitions <num_partitions> --replication-factor <replication_factor>
|
||||
```
|
||||
|
||||
```shell
|
||||
kafka-topics.sh --create --topic test-topic --bootstrap-server localhost:9092 --partitions 3 --replication-factor 1
|
||||
```
|
||||
|
Reference in New Issue
Block a user