Send (publish, produce) a message from a server to another server. In destination Kafka server, add this config to server.properties (my file is: /home/kafka/kafka/config/server.properties):

advertised.listeners=PLAINTEXT://10.5.11.16:9092 

Your IP is exactly which you set in producer… Or replace with domain.

If you want to delete a KAFKA topic:

bin/kafka-topics.sh --bootstrap-server localhost:9092 --delete --topic yourtopicname

So, it’s easy to send a KAFKA message to another server.

Some tricks about Kafka:

,

DMCA.com Protection Status


Leave a Reply

Your email address will not be published. Required fields are marked *