Hey, this turns out to be an antivirus firewall issue on my machine, as it recently migrated from one AV to another. Thanks for the reply.
On Mon, Jan 30, 2023 at 9:15 AM xiao cheng <xiaocheng.2...@gmail.com> wrote: > Hi Sunil, > > Yes. I use the default server config file that came with the tarball. > JAVA_HOME is set properly too. > I also tried to switch from jdk 17 and jdk 11 to see if that helps and > that still didn't work. > > echo $JAVA_HOME > > /opt/homebrew/Cellar/openjdk@11/11.0.18/libexec/openjdk.jdk/Contents/Home > > On Mon, Jan 30, 2023, 6:23 AM sunil chaudhari <sunilmchaudhar...@gmail.com> > wrote: > >> So did you provided server.properties properly? >> Check if property file exists at location. >> JAVA_HOME os availble? >> >> Regards, >> Sunil. >> >> On Mon, 30 Jan 2023 at 4:47 AM, xiao cheng <xiaocheng.2...@gmail.com> >> wrote: >> >> > Hi Sunil, >> > bin/kafka-server-start.sh --help give me output of >> > >> > bin/kafka-server-start.sh --help >> > >> > [2023-01-30 00:14:32,122] INFO Registered >> kafka:type=kafka.Log4jController >> > MBean (kafka.utils.Log4jControllerRegistration$) >> > >> > USAGE: java [options] kafka.Kafka server.properties [--override >> > property=value]* >> > >> > Option Description >> > >> > ------ ----------- >> > >> > --override <String> Optional property that should override values set >> in >> > >> > server.properties file >> > >> > --version Print version information and exit. >> > >> > >> > >> > >> > On Sat, Jan 28, 2023 at 12:58 AM sunil chaudhari < >> > sunilmchaudhar...@gmail.com> wrote: >> > >> > > 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... >> > > > >> > > >> > >> >