Kakfa Spark Streaming Import Error

Hi Team,

While importing this command , I am getting an error.
from kafka import KafkaProducer
cannot import name ‘KafkaProducer’

Can anyone help please .

Regards,
Aman

Hi @Aman_Deep,

KafkaProducer package might not be installed in the lab. You could install it in the virtual environment by following this blog