Skip to content

Commit f5fd225

Browse files
committed
fix topic creation
1 parent 7792699 commit f5fd225

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/modules/kafka/examples/getting_started/getting_started.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ sleep 15
9393
echo "Creating test topic test-data-topic"
9494
# tag::create-topic[]
9595
kubectl exec -n default simple-kafka-broker-default-0 -c kafka -t -- /stackable/kafka/bin/kafka-topics.sh \
96-
--list \
96+
--create \
97+
--topic test-data-topic \
98+
--partitions 1 \
9799
--bootstrap-server localhost:9092
98100
# end::create-topic[]
99101

docs/modules/kafka/examples/getting_started/getting_started.sh.j2

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ sleep 15
9393
echo "Creating test topic test-data-topic"
9494
# tag::create-topic[]
9595
kubectl exec -n default simple-kafka-broker-default-0 -c kafka -t -- /stackable/kafka/bin/kafka-topics.sh \
96-
--list \
96+
--create \
97+
--topic test-data-topic \
98+
--partitions 1 \
9799
--bootstrap-server localhost:9092
98100
# end::create-topic[]
99101

0 commit comments

Comments
 (0)