Technologieaustausch

Allgemeine Operationen von Terminal-Kafka-Anweisungen unter Windows

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

1. Thema erstellen

kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 1 --topic test

2. Sehen Sie sich die Themenliste an

kafka-topics.bat --list --bootstrap-server localhost:9092

3. Legen Sie die maximale Nachrichtengröße des Themas fest

kafka-topics.bat --bootstrap-server localhost:9092 --alter --topic Test --config max.message.bytes=52428800