Created 02-28-2024 09:23 PM
Hello,I am a beginner starting to learn Kafka and Cloudera. I am running a simple java code for producer,and am using Cloudera SMM through Docker Desktop. On running my java code,I keep getting this error-"Disconnecting from node 1001 due to socket connection setup timeout". There are no issues in my code or pom. I am using Java Maven in VSCode. Please help me to fix this issue
Created 02-29-2024 09:08 PM
The Kafka broker address is specified as "localhost". Is the broker running on the same host as the producer?I guess not.
Created 02-28-2024 11:14 PM
@Andy1989 Welcome to our community! To help you get the best possible answer, I have tagged in our Kafka experts @Yuexin Zhang @ywu @Babasaheb @ who may be able to assist you further
Please feel free to provide any additional information or details about your query, and we hope that you will find a satisfactory solution to your question.
Regards,
Vidya Sargur,Created 02-28-2024 11:24 PM
Hello @Andy1989 ,
"socket connection setup timeout" sounds like some network issue on client side.
May I know you specify Kafka broker address and port in your code?
Is the address solvable from client side and is the port number of Kafka broker correct?
Created 02-29-2024 12:50 AM
This is my producer code-
Created 02-29-2024 09:08 PM
The Kafka broker address is specified as "localhost". Is the broker running on the same host as the producer?I guess not.
Created 03-12-2024 02:43 AM
@Andy1989, Did the response assist in resolving your query? If it did, kindly mark the relevant reply as the solution, as it will aid others in locating the answer more easily in the future.
Regards,
Vidya Sargur,