Kafka - Unable to send a message to a remote server using Java

后端 未结 4 1131
轻奢々
轻奢々 2020-12-09 09:46

I\'m trying to create a Kafka cluster to send messages to a remote control. I have configured everything as described here. I am running this on a Linux r

4条回答
  •  粉色の甜心
    2020-12-09 10:22

    In your kafka server.properties there is a commented configuration

    #advertised.host.name=
    

    Uncomment this and add the IP of the Linux Machine in which kafka is running.

    advertised.host.name=
    

    And connect from clients to This should fix your issue.

    EDIT

    Optionally you can uncomment the

    #advertised.port=9092
    

    Also if you are listening on a different port than the default one.

提交回复
热议问题