Search results
Apache Kafka® provides a suite of command-line interface (CLI) tools that can be accessed from the /bin directory after downloading and extracting the Kafka files. These tools offer a range of capabilities, including starting and stopping Kafka, managing topics, and handling partitions.
- Topic Operations
Confluent Tip. The Confluent CLI with the kafka-topic...
- Manage Consumer Groups
Apache Kafka® provides a kafka-consumer-groups.sh tool that...
- Batch Processing for Efficiency
To avoid this, Kafka employs a standardized binary message...
- Message Delivery Guarantees
The previous topics helped you understand how producers and...
- Design Overview
Topics in this section¶. The topics in this section are an...
- Replication
In Kafka, all topics must have a replication factor...
- Topic Operations
Kafka Topics CLI, i.e., kafka-topics is used to create, delete, describe, or change a topic in Kafka. Make sure you have started Kafka beforehand. CLI Extensions. Use CLI commands with appropriate extensions for your platform, e.g., kafka-topics.bat for windows, kafka-topics.sh for Linux and Mac.
11 maj 2024 · To list all the Kafka topics in a cluster, we can use the bin/kafka-topics.sh shell script bundled in the downloaded Kafka distribution. All we have to do is to pass the –list option, along with the information about the cluster. For instance, we can pass the Zookeeper service address: $ bin/kafka-topics.sh --list --zookeeper localhost:2181.
Kafka ships with some tools you can use to accomplish this. List topics: # ./bin/kafka-topics.sh --list --zookeeper localhost:2181. test_topic_1. test_topic_2. ... List partitions and offsets:
30 sty 2024 · Creating a new topic in Kafka can be done using the Kafka CLI command kafka-topics. Here’s the basic syntax: bin/kafka-topics.sh --create --bootstrap-server <host>:<port> --replication-factor <number> -- partitions <number> --topic <topic_name>.
Manage topic configuration. confluent kafka topic consume: Consume messages from a Kafka topic. confluent kafka topic create: Create a Kafka topic. confluent kafka topic delete: Delete one or more Kafka topics. confluent kafka topic describe: Describe a Kafka topic. confluent kafka topic list: List Kafka topics. confluent kafka topic produce
Confluent Tip. The Confluent CLI with the kafka-topic subcommand makes it easier create, modify and delete topics using the command line. For more information, see confluent kafka topic. Alternatively, you can use the Kafka CLI tools provided when you install Confluent Platform.