Please try executing..

bin/kafka-server-start.sh —help



On Fri, 27 Jan 2023 at 8:47 PM, xiao cheng <xiaocheng.2...@gmail.com> wrote:

> Hey all,
>
> I recently tried to run kafka locally on my macos again after a while (it
> used to work). I followed the quickstart guide from
> https://kafka.apache.org/quickstart.
>
> However, when I try to run it (bin/kafka-server-start.sh
> config/server.properties) again today I am seeing error message of
> [2023-01-27 15:39:11,900] ERROR Encountered an error while configuring the
> connection, closing it. (kafka.network.DataPlaneAcceptor)
> java.net.SocketException: Invalid argument
> at java.base/sun.nio.ch.Net.setIntOption0(Native Method)
> at java.base/sun.nio.ch.Net.setSocketOption(Net.java:455)
> at java.base/sun.nio.ch.Net.setSocketOption(Net.java:393)
> at
> java.base/sun.nio.ch
> .SocketChannelImpl.setOption(SocketChannelImpl.java:280)
> at
> java.base/sun.nio.ch
> .SocketAdaptor.setBooleanOption(SocketAdaptor.java:237)
> at java.base/sun.nio.ch
> .SocketAdaptor.setTcpNoDelay(SocketAdaptor.java:273)
> at
>
> kafka.network.Acceptor.configureAcceptedSocketChannel(SocketServer.scala:759)
> at kafka.network.Acceptor.accept(SocketServer.scala:737)
> at kafka.network.Acceptor.acceptNewConnections(SocketServer.scala:703)
> at kafka.network.Acceptor.run(SocketServer.scala:645)
> at java.base/java.lang.Thread.run(Thread.java:833)
>
> I tried:
> 1. clean up kafka logs from tmp folder
> 2. downloaded the latest kafka tar ball kafka_2.13-3.3.1.tgz
> <https://archive.apache.org/dist/kafka/3.3.1/kafka_2.13-3.3.1.tgz> 3.
> change the client port from 2181 to some other value
> 4. Double check to make sure no other process is using the port
>
> zookeeper comes up fine and with below env:
> [2023-01-27 15:37:06,512] INFO Server environment:host.name=10.1.30.184 (
> org.apache.zookeeper.server.ZooKeeperServer)
> [2023-01-27 15:37:06,512] INFO Server environment:java.version=17.0.5 (
> org.apache.zookeeper.server.ZooKeeperServer)
> [2023-01-27 15:37:06,512] INFO Server environment:java.vendor=Homebrew (
> org.apache.zookeeper.server.ZooKeeperServer)
> [2023-01-27 15:37:06,512] INFO Server environment:java.home
> =/opt/homebrew/Cellar/openjdk@17/17.0.5/libexec/openjdk.jdk/Contents/Home
> (
> org.apache.zookeeper.server.ZooKeeperServer)
> Please advise on things I need to do to get this fixed. I am almost certain
> it is my machine issue but I cannot figure out why...
>

Reply via email to