java.lang.AbstractMethodError, org.apache.spark.internal.Logging$class.initializeLogIfNecessary

廉价感情. 提交于 2019-12-02 00:31:02

I got a similar issue and it turns out that the problem was an incompatibility between spark version and the versions of the used packages.

For your case - according to cloudera doc cdh 5.12 comes with Spark 1.6 which in turns requires scala 2.10, while the used package org.apache.spark:spark-sql-kafka-0-10_2.11:2.2.0 is compiled with scala 2.11. You can try to use org.apache.spark:spark-streaming-kafka_2.10:1.6.1 instead.

Credits: https://community.hortonworks.com/articles/197922/spark-23-structured-streaming-integration-with-apa.html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!