- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Kafka Producer from remote server
- Labels:
-
Apache Kafka
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎03-12-2020 02:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Created ‎03-12-2020 04:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@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
