首页
Python
Java
前端
数据库
Linux
Chatgpt专题
开发者工具箱
brokerendpoint专题
java.lang.ClassCastException: kafka.cluster.BrokerEndPoint cannot be cast to kafka.cluster.Broker
使用SparkStreaming 读取kafka数据进行处理,程序启动报异常: java.lang.ClassCastException: kafka.cluster.BrokerEndPoint cannot be cast to kafka.cluster.Broker 原因是kafka client版本和 spark-streaming-kafka 版本不匹配造成的。 pom文件改成
阅读更多...