Kafka QuickStart, advertised.host.name gives kafka.common.LeaderNotAvailableException

前端 未结 6 1029
一生所求
一生所求 2020-12-04 15:04

I am able to get a simple one-node Kafka (kafka_2.11-0.8.2.1) working locally on one linux machine, but when I try to run a producer remotely I\'m getting some confusing err

6条回答
  •  北海茫月
    2020-12-04 15:18

    So to summarize, the solution to this was to add a route via NAT so that the machine can access its own external IP address.

    Zookeeper uses the address it finds in advertised.host.name both to tell clients where to find the broker as well as to communicate with the broker itself. The error that gets reported doesn't make this very clear, and it's confusing because a client has no problem opening a TCP connection.

提交回复
热议问题