Hi,

I'm trying to bind embedded zookeeper to specific interface (on Windows/JDK11). 
I added these lines to zoo.cfg

clientPort=2181
clientPortAddress=192.168.1.10

and starting solr with this command:

solr.cmd start -c -z 192.168.1.10:2181


The output of netstat -abnp TCP doesn't show anything listening on 2181

and this is what is in solr.log:

2024-05-28 10:16:35.293 INFO  (main) [c: s: r: x: t:] 
o.a.s.c.c.ConnectionManager Waiting up to 30000ms for client to connect to 
ZooKeeper
2024-05-28 10:16:36.347 WARN  (main-SendThread(192.168.1.10:2181)) [c: s: r: x: 
t:] o.a.z.ClientCnxn Session 0x0 for server myhost/192.168.1.10:2181, Closing 
socket connection. Attempting reconnect except it is a SessionExpiredException. 
=> java.net.ConnectException: Connection refused: no further information
      at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
java.net.ConnectException: Connection refused: no further information
      at java.base/sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) 
~[?:?]
      at 
java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:779)
 ~[?:?]
      at 
org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:344)
 ~[?:?]
      at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1274) 
~[?:?]


Is this bug or am I missing something?

With Regards,
Ragnar

Reply via email to