我已经从这里下载了kafkahttps://www.apache.org/dyn/closer.cgi?path=/kafka/3.4.0/kafka_2.13-3.4.0.tgz
Zookeeper 启动,但是当我运行这个命令时
bin/kafka-server-start.sh config/server.properties
我知道了
[2023-03-12 14:25:29,772] ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)
java.lang.NoSuchMethodError: scala.Predef$.refArrayOps([Ljava/lang/Object;)Ljava/lang/Object;
at kafka.Kafka$.getPropsFromArgs(Kafka.scala:43) ~[kafka_2.13-3.4.0.jar:?]
at kafka.Kafka$.main(Kafka.scala:92) [kafka_2.13-3.4.0.jar:?]
at kafka.Kafka.main(Kafka.scala) [kafka_2.13-3.4.0.jar:?]
Exception in thread "main" java.lang.NoSuchMethodError: scala.Option.orNull(Lscala/$less$colon$less;)Ljava/lang/Object;
at kafka.utils.Exit$.exit(Exit.scala:28)
at kafka.Kafka$.main(Kafka.scala:128)
at kafka.Kafka.main(Kafka.scala)
我试图检查它是否在 libs 中有 scala lib,并且在该 scala 版本中是否存在 orNull 方法