问题

在idea编写的spark直连Kafka任务,运行时报错:
Spark fails with NoClassDefFoundError for org.apache.kafka.common.serialization.StringDeserializer

解决方法

版本不一致导致,导入dependencies.jar.或者版本更改一致即可
Exception in thread “main“ java.lang.NoClassDefFoundError: org/apache/kafka/common/..

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-04-10
  • 2021-06-13
  • 2022-12-23
猜你喜欢
  • 2021-11-16
  • 2021-08-23
  • 2021-11-22
  • 2021-10-22
  • 2021-10-05
  • 2022-12-23
相关资源
相似解决方案