Installing kakfa on your local machine
To Install Kafka on Mac Manually, follow these steps:
from the Binary downloads
Download the latest version.
- Scala 2.13 - kafka_2.13-3.3.1.tgz (asc, sha512)
Unzip the file
Run ZooKeeper & Kafka
From the root folder of Apache Kafka, you can run ZooKeeper by executing the following command:
bin/zookeeper-server-start.sh config/zookeeper.properties
- Now, open a new terminal window & run the following command from the root of Apache Kafka to start the Kafka environment:
bin/kafka-server-start.sh config/server.properties
Create topics
Now, open a new terminal window & run the following command from the root of Apache Kafka to start the Kafka environment:
bin/kafka-topics.sh --bootstrap-server localhost:9092 --create --topic foobar
List topics
bin/kafka-topics.sh --bootstrap-server localhost:9092 --list
Delete topics
bin/kafka-topics.sh --bootstrap-server localhost:9092 --delete --topic foobar