Like kafka with one click through homewbrew. If homebrew is not installed, open the terminal to install it.
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
After installing homebrew, open the terminal directly and execute the following command
brew install kafka
Zookeeper needs to be configured to start kafka, but the installed kafka comes with zookeeper.
First, zookeeper needs to be started.
Go to the following file location and start zookeeper:
Start successfully:
Similarly, start kafka.
Create a topic through Kafka, and the command is shown in the red box below.
View the created topic and send a message.
Received message successfully