Skip to content
Advertisement

Apache Spark Streaming with Java & Kafka

I’m trying to run Spark Streaming example from the official Spark website

Those are the dependencies I use in my pom file:

JavaScript

This is my Java code:

JavaScript

When I try to run it from Eclipse I get following exception:

JavaScript

I run this from my IDE (eclipse). Do I have to create and deploy the JAR into spark to make it run. If anyone knows about the exception, please share your experience. Thanks in advance

Advertisement

Answer

Try using 2.3.1 also for the spark-streaming-kafka dependency.

Check also other related questions and their answers about java.lang.AbstractMethodError.

It usually means a mismatch between used libraries and their interfaces/implementations.

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