In my local machine, I have created a Apache kafka producer connection and an adapter using it. When I send a message to the kafka topic from my local machine, it is working fine.
But when I create a docker image from this MSR instance and run it as a docker container (in same machine or from different machine), the adapter service run to push message to the kafka topic is throwing the below error
[ADA.507.4010] Error sending kafka message
org.apache.kafka.common.errors.TimeoutException: Topic not present in metadata after 60000 ms.
I can successfully telnet the kafka server and port from the machine where I am running the container. I did some research and saw that jar file version mismatches could cause this too. But same is working fine in my local. I build the image from this machine, so it would have all the necessary jar files. But for some reason this error occurs when it is run as a container.
The kafka I am connecting to is confluent kafka docker container version 7.6.1. I have placed the jar files wm-kafka-v9.jar, kafka-tools-3.6.2.jar, kafka-clients-3.6.2.jar in the WmKafkaAdapter/code/jars folder.
Do we need to follow anything addition when running it as a container. Does anyone have any inputs related to this?
#Kafka-Adapters#MSR-docker-container#Kafka-Producer-Connection#Kafka-in-docker-container#webMethods