I\'m trying to open a Kafka (tried versions 0.11.0.2 and 1.0.1) stream using createDirectStream
method and getting this AbstractMethodError error:
E
I had the same exception, in my case I created the application jar with dependency to spark-streaming-kafka-0-10_2.11
of version 2.1.0
, while trying to deploy to Spark 2.3.0 cluster.
I recieved same error. I set my dependencies same version as my spark interpreter is
%spark2.dep
z.reset()
z.addRepo("MavenCentral").url("https://mvnrepository.com/")
z.load("org.apache.spark:spark-streaming-kafka-0-10_2.11:2.3.0")
z.load("org.apache.kafka:kafka-clients:2.3.0")
Turns out I was using Spark 2.3 and I should've been using Spark 2.2. Apparently that method was made abstract in the later version so I was getting that error.