You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kafka.apache.org by "Scott M Messner (Jira)" <ji...@apache.org> on 2021/10/05 16:29:00 UTC
[jira] [Created] (KAFKA-13347) kafka-topics.sh required arguments
and defaults
Scott M Messner created KAFKA-13347:
---------------------------------------
Summary: kafka-topics.sh required arguments and defaults
Key: KAFKA-13347
URL: https://issues.apache.org/jira/browse/KAFKA-13347
Project: Kafka
Issue Type: Bug
Components: docs
Affects Versions: 3.0.0
Environment: WSL Debian GNU/Linux 10 (buster)
Reporter: Scott M Messner
Step 3 of the quickstart suggests that partitions and replication-factor are optional [kafka.apache.org/quickstart.|https://kafka.apache.org/quickstart] Also, the options list provided by bin/kafka-topics.sh explicitly mentions that " If not supplied for create, defaults to the cluster default." (kafka_2.13-3.0.0)
bin/kafka-topics.sh --create --topic quickstart-events --bootstrap-server localhost:9092
Missing required argument "[partitions]"
...
--partitions <Integer: # of partitions> The number of partitions for the topic
being created or altered (WARNING:
If partitions are increased for a
topic that has a key, the partition
logic or ordering of the messages
will be affected). *{color:#172b4d}If not supplied{color}*
*{color:#172b4d}for create, defaults to the cluster{color}*
*{color:#172b4d}default.{color}*
...
--replication-factor <Integer: The replication factor for each
replication factor> partition in the topic being
created. *If not supplied, defaults*
*to the cluster default.*
--
This message was sent by Atlassian Jira
(v8.3.4#803005)