Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Kafka Producer from remote server

avatar
New Contributor

Hello,

I have text file on remote server and a Kafka cluster, I have developed a Kafka producer that will stream text file line by line, i have tested  it on a cluster node and run a consumer on another node in the cluster, the data is being consumed correctly and everything is fine, the problem is when i run the producer on the remote machine and the consumer on the cluster the data are not being consumed.

I don't know how to make the configuration in order to make the producer talk to the consumer remotely.

Telnet and ping works between the remote machine and the cluster.

Any explanation or help would appreciated on order to run a producer on a remote machine and consume the data on the cluster.

Thank you so much

Joe Jim

2 REPLIES 2

avatar
New Contributor

Hey Joe,

Excuse me for being terse. Did you try the instructions in the link below. Depending on the OS and your DNS setup consider modifying /etc/hosts

 

Also, pay attention to the log files, great for debugging.

 

https://kafka.apache.org/quickstart

OR

https://s3.amazonaws.com/cdn.freshdesk.com/data/helpdesk/attachments/production/43013592764/original...

avatar
Master Mentor

@Joe_Jim 

By default, the broker binds to localhost. Can you share your server.properties and logs? I am of the opinion you need to update the server.properties listeners=PLAINTEXT://<IP:_TO_CHANGE>:9092