Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Issue in importing kafka_serializer.StringDecoder

Highlighted

Issue in importing kafka_serializer.StringDecoder

Contributor

In my project I need to use Kafka ad Spark streaming for doing real time analytics. So I am trying to import Kafka and Spark streaming dependencies. In order to read the Kakfa topics in my spark streaming program, I am trying to import kafka.serializer.StringDecoder. But I am not able to import it.screen-shot-2018-11-05-at-51111-pm.png

Even I wrote a dummy program to fix this issue. But still I couldn't find a solution.

1 REPLY 1

Re: Issue in importing kafka_serializer.StringDecoder

Contributor

I could fix this issue by adding "import _root_.kafka.serializer.StringDecoder" in my imports. I attached the screen shot of the my code.

screen-shot-2018-11-06-at-105540-am.png

Don't have an account?
Coming from Hortonworks? Activate your account here