方式一、使用homebrew
1、brew安装
代码语言:javascript复制brew install kafka
可以看出来 kafka 3系列版本内置了zookeeper,不需要单独运行安装zk
代码语言:javascript复制Running `brew update --auto-update`...
==> Fetching dependencies for kafka: zookeeper
==> Fetching zookeeper
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/zookeeper-3.9.1.arm64_ventura.bottle.tar.gz
Already downloaded: /Users/ybbj100588/Library/Caches/Homebrew/downloads/25f874e120f16f23aee027bc8e8bd207b94389aa0ff7525907803e64ae42d3d6--zookeeper-3.9.1.arm64_ventura.bottle.tar.gz
==> Fetching kafka
==> Downloading https://mirrors.ustc.edu.cn/homebrew-bottles/kafka-3.6.0.arm64_ventura.bottle.tar.gz
Already downloaded: /Users/ybbj100588/Library/Caches/Homebrew/downloads/3d085bcd0a274ea506e6943ac1b68cdbe6b62ad016d9fbf720461546f70e504e--kafka-3.6.0.arm64_ventura.bottle.tar.gz
==> Installing dependencies for kafka: zookeeper
==> Installing kafka dependency: zookeeper
==> Pouring zookeeper-3.9.1.arm64_ventura.bottle.tar.gz
Warning: The post-install step did not complete successfully
You can try again using:
brew postinstall zookeeper
==> Summary