Partage de technologie

Opérations courantes des instructions du terminal Kafka sous Windows

2024-07-12

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

1. Créer un sujet

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

2. Afficher la liste des sujets

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

3. Définissez la taille maximale du message du sujet

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