Trying to implement a sample deepstream_test_4.py in deepstream-5.0 for metadata & buffer

I am trying to implement deeptstream_test_4.py as shown in the topic, and
having trouble running it with Kafka.
I am not sure where it says in README file about deepstream_test_4.py

$ python3 deepstream_test_4.py -i -p --conn-str= -s <0/1>

and I write it as

$ python3 deepstream_test_4.py -i test1.mp4 -p libnvds_kafka_proto.so --conn-str= “my local laptop ip instead of Jetson ip ; my laptop port ; myopic I created” -s 0

I am very confused what I should put to implement the python file in “Connection String”.

I am trying to implement with Jetson Nano and it says “unable to connect to broker library” and
"Error: gst-library-error-quark: coulters not configure supporting library. (5): /dvs/git/dirty/git-master-linux/deepstream/sdk/src/gst-plugins/gst-nvmsgbroker/gstnvmsgbroker.c(332): 1st_nvmsgbroker_start (): /GstPipleline:pipeline0/GstNvMsgBroker:nvmsg-broker: "

Please let me know what I should put in that section and also other sections If I missed.

Thank you.

Hi,
connection string: "yourserver.yourdomain.net;9092;yourtopic
first one is kafka server running on host ip; port default to 9092; yourtopic is your created topic
$ python3 deepstream_test_4.py -i test1.mp4 -p libnvds_kafka_proto.so --conn-str= “my local laptop ip instead of Jetson ip ; my laptop port ; myopic I created” -s 0
and please use absolute path for kafka adapter library
additionally, you can enable logging to see where goes wrong,
chmod u+x ~/path to ds sdk/sources/tools/nvds_logger/setup_nvds_logger.sh
sudo ~/path to ds sdk/sources/tools/nvds_logger/setup_nvds_logger.sh
and make sure kafka server running.