Execute Kafka Shell Scripts
This page describes how to execute Kafka shell scripts.
less than a minute
When working with Kafka, you may need to execute shell scripts to perform administrative tasks. This page describes how to execute Kafka shell scripts.
Before you begin
You need to have a UMH cluster. If you do not already have a cluster, you can create one by using the Management Console .
Open a shell in the Kafka container
From the Pod section in UMHLens / OpenLens, click on united-manufacturing-hub-kafka-0 to open the details page.
Click the Pod Shell button to open a shell in the container.
Navigate to the Kafka bin directory:
cd /opt/bitnami/kafka/bin
Execute any Kafka shell scripts. For example, to list all topics:
./kafka-topics.sh --list --zookeeper zookeeper:2181
To exit the shell:
exit
What’s next
Last modified May 5, 2023: feat: finishing touches (1147002)