Lesson
To produce a message into an Apache Kafka topic using Java, you'll need to use the Kafka Producer API provided by the Apache Kafka library. Go to /usr /local/zookeeper/bin on the terminal and press enter Lets use the scripts to stop publisher & consumer using below steps. Consuming message from Kafka Topic using built-in consumer scripts Publishing dummy messages using built-in producer scripts Several tools/scripts are included in the bin directory of the Apache Kafka binary installation, which we will learn in detail in the Apache Kafka Advance Course. Now type on a new terminal cd /user/local/ kafka /bin (Extract Kafka) Go to the location of Kafka and extract the tar ball. -Open the terminal by CTRL+ALT+T - Go to the folder where zookeeper tar ball is copied by using the following commands. In this document, we are going to explain how we can use a single-node Apache Kafka cluster for development and learning purposes.