- How to install Kafka using Homebrew
- How to start ZooKeeper and Kafka
- How to locate configuration files
- Differences between Intel and Apple Silicon paths
Installation overview
Step 1: Install Homebrew
If you don’t have Homebrew installed:Step 2: Install Kafka
Homebrew automatically installs Java as a dependency:Installation paths
Homebrew installs to different locations based on your chip architecture:| Component | Intel Mac | Apple Silicon Mac |
|---|---|---|
| Binaries | /usr/local/bin | /opt/homebrew/bin |
| Kafka config | /usr/local/etc/kafka | /opt/homebrew/etc/kafka |
| ZooKeeper config | /usr/local/etc/zookeeper | /opt/homebrew/etc/zookeeper |
| Kafka data | /usr/local/var/lib/kafka-logs | /opt/homebrew/var/lib/kafka-logs |
Step 3: Start ZooKeeper
ZooKeeper has to be running before Kafka starts:Step 4: Start Kafka
Open a new terminal window and start Kafka:localhost:9092.
Optional: Change data directories
Change ZooKeeper data directory: Edit/usr/local/etc/zookeeper/zoo.cfg:
/usr/local/etc/kafka/server.properties:
See it in practice with ConduktorConduktor Console can connect to your local Kafka cluster at
localhost:9092 for visual topic management.Next steps
- CLI tutorials to create topics and produce messages
- Native Mac installation for more control over versions
- Mac KRaft installation for ZooKeeper-free setup