Not able to connect to Kafka broker installed on Redhat OCP from an external client

Confluent Kafka is installed on Redhat ocp, Control center is accessible outside and able to create topics right from the COntrol center. While producing or consuming events to this topic, from an external client or command line client this topic is not reachable. Any suggestions?

In ControlCenter Cluster settings, Listeners are INTERNAL://:9071,REPLICATION://:9072,EXTERNAL://:9092.

Below is the error from the command line kafka when tried connecting to the topic in the cluster.
WARN [Producer clientId=console-producer] Bootstrap broker xx:9092 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
WARN [Producer clientId=console-producer] Bootstrap broker xx:9092 (id: -1 rack: null) disconnected (org.apache.kafka.clients.NetworkClient)
ERROR Error when sending message to topic TESTTOPIC with key: null, value: 2 bytes with error: (org.apache.kafka.clients.producer.internals.ErrorLoggingCallback)
org.apache.kafka.common.errors.TimeoutException: Topic TESTTOPIC not present in metadata after 60000 ms.

Hi,

how do does your connecting string look like respectively how do you try to connect ?

M

hi @mmuehlbeyer - As of now connecting it from the Kafka command line tools

kafka-console-producer.bat --bootstrap-server :9092 --producer.config …\producer.properties --topic TESTTOPIC

producer.properties values are as in below format

security.protocol=SASL_PLAINTEXT
sasl.mechanism=SCRAM-SHA-256
sasl.jaas.config=org.apache.kafka.common.security.scram.ScramLoginModule required
username=
password=;

ok I see
any errors in kafka server logs?
telnet does work?

M