From the course: Apache Kafka Essential Training: Getting Started

Kafka client scripts

- [Instructor] In this chapter, we will explore the command line options in Kafka for managing topics as well as publishing and subscribing. In this video, we will explore various client shell scripts that are available in kafka. To begin, we need to log into the kafka container using the docker exec command. We do so by calling docker exec-it kafka-broker/bin/bash. This takes us inside the docker container. Now, let's navigate to the root directory for kafka here. It's installed under slash opt/bitnami/kafka. Let's explore the contents here. The config directory contains configuration that can be modified to suit a specific setup. Any configuration changes would require a restart of kafka. Do note that these files are inside the container and restarting the container would reset the files to their original value. If you need to modify and use these files, use host volumes. The logs directory contains log files generated by kafka and are useful for troubleshooting. The bin directory contains a number of shell scripts for kafka management, publishing, and subscribing. Let's explore this directory in detail. The bin directory contains a number of shell scripts that can be used to interact with kafka. The kafka server start and kafka server stop scripts can be used to start and stop kafka. We will explore other scripts later in the course. Now, we can start creating some topics in the next video.

Contents