Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-13347

kafka-topics.sh required arguments and defaults

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 3.0.0
    • None
    • docs
    • None
    • WSL Debian GNU/Linux 10 (buster)

    Description

      Step 3 of the quickstart suggests that partitions and replication-factor are optional 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). If not supplied
      for create, defaults to the cluster
      default.

      ...
      --replication-factor <Integer: The replication factor for each
      replication factor> partition in the topic being
      created. If not supplied, defaults
      to the cluster default.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            blackstrype Scott M Messner
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: