Python testapp4 with kafka failing to connect

I am testing out the kafka in deepstream-tes4 and the output says it has problem connecting to kafka

Using winsys: x11
%3|1596690595.198|FAIL|rdkafka#producer-1| [thrd:127.0.0.1:9092/1001]: 127.0.0.1:9092/1001: Connect to ipv4#127.0.0.1:9092 failed: Connection refused
%3|1596690595.199|ERROR|rdkafka#producer-1| [thrd:127.0.0.1:9092/1001]: 127.0.0.1:9092/1001: Connect to ipv4#127.0.0.1:9092 failed: Connection refused

eventhough my config are as follow:

python3 deepstream_test_4.py -i ‘/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_720p.h264’ -p ‘/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_kafka_proto.so’ --conn-str=“35.240.135.252;9092;nvidia_topic” -s=0

So I don’t know why its still trying to connect to 127.0.0.1

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson Nano)
• DeepStream Version 5.0
• JetPack Version (4.4)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)

Please check sources/libs/kafka_protocol_adaptor, there have README and test sample, to troubleshoot the issue.