Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
AdeleDev committed Nov 27, 2024
2 parents 5dc8e38 + edd168a commit d17702d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions module_1/python/topic.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Команда: docker exec -it kafka-1 ../../usr/bin/kafka-topics --create --topic test-topic --bootstrap-server localhost:9092 --partitions
3 --replication-factor 2

Вывод по топику:
PS C:\Users\-\IdeaProjects\Kafka_course_module_1> docker exec -it kafka_course_module_1_broker-1_1 ../../usr/bin/kafka-topics --describe --topic test-topic --bootstrap-server localhost:9092
Topic: test-topic TopicId: WHH4P3r1Q2OT_N8H4Kdzsw PartitionCount: 3 ReplicationFactor: 2 Configs:
Topic: test-topic Partition: 0 Leader: 1 Replicas: 1,2 Isr: 1,2
Topic: test-topic Partition: 1 Leader: 2 Replicas: 2,1 Isr: 2,1
Topic: test-topic Partition: 2 Leader: 1 Replicas: 1,2 Isr: 1,2

0 comments on commit d17702d

Please sign in to comment.