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
Topic Operations¶. A Kafka topic is the fundamental unit of...
- 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...
- Kafka APIs
Use these APIs to implement your own components that consume...
- Kafka and the File System
Kafka has access to virtually unlimited disk space without...
- 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.
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>.
26 sty 2022 · Manage Kafka topics using command-line utilities. This blog post is based on my experience with the Ansible automation engine, but I will keep things agnostic to any particular automation software, so you can use the right approach for your own setup.
Open a new terminal. Start the Kafka producer by executing the following command: bin/kafka-console-producer.sh --topic test_topic --bootstrap-server localhost:9092. After running this command, type some messages and press Enter. Each line of input you type will be sent as a message to the test_topic you just created.
Learn what the default configurations of a Kafka topic are, and how to make changes to the Kafka topic configuration via the CLI.
kafka.admin.TopicCommand is a command-line tool that can alter, create, delete, describe and list topics in a Kafka cluster.