Skip to content
Advertisement

kafka-python raise UnrecognizedBrokerVersion Error

I am getting this error when constructing KafkaProducer with the kafka-python package:

JavaScript

The code is as follows:

JavaScript

I am using Python 3.7 and an AWS MSK cluster.

Advertisement

Answer

Solved it by just adding security_protocol="SSL" to the KafkaProducer as follows:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement