Last active
August 16, 2024 05:08
-
-
Save jarrad/3528a5d9128fe693ca84 to your computer and use it in GitHub Desktop.
Install Kafka on OSX via Homebrew
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$> brew cask install java | |
$> brew install kafka | |
$> vim ~/bin/kafka | |
# ~/bin/kafka | |
#!/bin/bash | |
zkServer start | |
kafka-server-start.sh /usr/local/etc/kafka/server.properties | |
$> chmod +x ~/bin/kafka |
WARN [AdminClient clientId=adminclient-1] Connection to node -1 (localhost/127.0.0.1:9092) could not be established. Node may not be available. (org.apache.kafka.clients.NetworkClient) whats the meaning of this ?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you want to use
kraft
instead ofzookeeper
, just replace the defaultserver.properties
with the default kraftserver.properties
.You can use
/usr/local/
instead of$(brew --prefix)
if you prefer.Then the zookeeper command is not necessary:
@spartiv -- the
info
is for showing the statusAfter installing
java
(viakafka
) I told OSX to use thejava
that I installed: (not sure if this is necessary)sudo ln -sfn $(brew --prefix)/opt/openjdk/libexec/openjdk.jdk /Library/Java/JavaVirtualMachines/openjdk.jdk