Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

[--alter --topic <topic-name> --partitions <number-of-partitions>]

This option allows you to add partitions to a topic. It is impossible to remove partitions. For further information on the arguments you can alter, refer to http://kafka.apache.org/082/documentation.html.

[--create --topic <topic-name> --partitions <number-of-partitions> --replication-factor <number-of-replications>]

You create your Kafka configuration using this option. You use this action to determine the name of the topic, how many partitions there are in the topic, and the replication factor for each partition. See the --create example provided below. You can create several topics, but you can only create them one by one.

For further information on the arguments you can create, refer to http://kafka.apache.org/082/documentation.html.

[--delete --topic <topic-name>]

You use this option to delete a topic.

[--describe [--topic <topic-name-regexp>]]

This option provides a description of all the topics that have been created, or you can specify for which topic you want to view the description. See the --describe example provided below.

 

For further information on the arguments, for which you can display a description, refer to http://kafka.apache.org/082/documentation.html.

[--list [--topic <topic-name-regexp>]]A list of all the topics is provided, or you can specify a topic.
[ --verbose-on-error]

If you are using Kafka embedded in Image Modified, you use this option to display the stack trace information in more detail when an error occurs.

...

CodeDescription

0

Will be returned if the command is successful.

1

Will be returned if a syntax error has occurred.

127

Will be returned if an internal Kafka error has occurred.


Page Properties
hiddentrue