Reputation: 83
I have one machine where kafka it to be ran and another machine where zookeeper is running. How to connect kafka broker (from one machine) to zookeeper (to another machine) ?
I have tried to open 2181 port for zookeeper and 9092 for kafka broken and also modified server.properties config file like that:
advertised.listeners=PLAINTEXT://3.8.97.85:9092
zookeeper.connect=3.10.180.209:2181
where 3.8.97.85 is kafka's IP address, and 3.10.180.209 - zookeeper IP, but get error: "ZooKeeperClientTimeoutException: Timed out waiting for connection while in state: CONNECTING"
Upvotes: 0
Views: 362
Reputation: 191743
Latest Kafka no longer requires Zookeeper...
What you've done is correct. Perhaps there's another networking issue, such as at the router since 3.x.x.x
is not a reserved private network space.
Debug your network connectivity using tools like netcat or telnet
Upvotes: 0