shell
brew services start kafka
shell
brew services restart kafka
shell
brew services stop kafka
shell
brew services list
shell
sudo apt-get install openjdk-8-jdk
shell
wget "https://dlcdn.apache.org/kafka/3.3.1/kafka_2.13-3.3.1.tgz"
tar -xzf "kafka_2.13-3.3.1.tgz"
cd "kafka_2.13-3.3.1"
shell
bin/zookeeper-server-start.sh -daemon config/zookeeper.properties
bin/kafka-server-start.sh -daemon config/server.properties
shell
bin/zookeeper-server-start.sh config/zookeeper.properties
bin/kafka-server-start.sh config/server.properties
shell
bin/kafka-topics.sh -create --bootstrap-server 0.0.0.0:9092 --replication-factor 1 --partitions 1 --topic tests
shell
bin/kafka-server-stop.sh
bin/zookeeper-server-stop.sh
shell
bin/kafka-topics.sh --bootstrap-server localhost:9092 --delete --topic xxx