- Fill out client.ini, adding your cluster and client details and setting any necessary configurations
- If using CP-Demo, make sure
Kafka1
,Kafka2
, andSchemaRegistry
are up usingdocker ps
All clients are called with the same syntax:
python3 <filename> client.ini
e.g python3 Producer.py client.ini
If you run into this error, use pip3 to install the missing module
pip3 install confluent_kafka
- If using a key, make sure you fill out the appropriate code regarding your keys
- Make sure
key_serializer
is correct in the functioninit_producer_serializer
- Uncomment the key sections of
producer.produce(...)
in the fuctionproduce_specific_message
- Make sure
- If you're not using a key for any messages, no changes need to be made