-1

I am using python script for kafka producer and getting the following error:

cimpl.KafkaException: KafkaError{code=\_UNKNOWN_TOPIC,val=-188,str="Unable to produce message: Local: Unknown topic"}

I am getting the following error:

cimpl.KafkaException: KafkaError{code=_UNKNOWN_TOPIC,val=-188,str="Unable to produce message: Local: Unknown topic"}
%4|1668330504.791|TERMINATE|rdkafka#producer-1| [thrd:app]: Producer terminating with 320 messages (1006004 bytes) still in queue or transit: use flush() to wait for outstanding message delivery
OneCricketeer
  • 179,855
  • 19
  • 132
  • 245
  • What is unclear from the exception and what debugging steps have you done? For example, try actually creating the topic you want to produce to, first? – OneCricketeer Nov 13 '22 at 13:33

1 Answers1

0

Looks like the topic you are producing to does not exist. You can create a topic using the create command. Read more here

SG31
  • 31
  • 2