Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to consume custom java objects in spark streaming #704

Open
ADDale opened this issue Jan 22, 2019 · 0 comments
Open

Unable to consume custom java objects in spark streaming #704

ADDale opened this issue Jan 22, 2019 · 0 comments

Comments

@ADDale
Copy link

ADDale commented Jan 22, 2019

I have a simple java producer which is pushing message to kafka. I can read message using simple java consumer but not using spark streaming. Using spark streaming all messages are coming as null.

I have attached the code snippet.
I am passing the custom deserializer class in kafka properties.
Please confirm if we need to pass it in kafkautils.createdirect stream method as well? Somehow the method is throwing invalid argument types if I try to pass as per javdoc documents.

Please help as I am new to Spark.

img_20190122_200511

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant