window启动 kafka2.8.1报: No `meta.properties` found in /tmp/kraft-combined-logs
[2021-11-11 17:18:31,608] ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)kafka.common.KafkaException: No `meta.properties` found in D:kafka_2.12-2.8.1kraft-combined-logs (have you run `kafka
[2021-11-11 17:18:31,608] ERROR Exiting Kafka due to fatal exception (kafka.Kafka$)
kafka.common.KafkaException: No `meta.properties` found in D:kafka_2.12-2.8.1kraft-combined-logs (have you run `kafka-storage.sh` to format the directory?)
at kafka.server.BrokerMetadataCheckpoint$.$anonfun$getBrokerMetadataAndOfflineDirs$2(BrokerMetadataCheckpoint.scala:164)
at scala.collection.Iterator.foreach(Iterator.scala:943)
at scala.collection.Iterator.foreach$(Iterator.scala:943)
at scala.collection.AbstractIterator.foreach(Iterator.scala:1431)
at scala.collection.IterableLike.foreach(IterableLike.scala:74)
at scala.collection.IterableLike.foreach$(IterableLike.scala:73)
at scala.collection.AbstractIterable.foreach(Iterable.scala:56)
at kafka.server.BrokerMetadataCheckpoint$.getBrokerMetadataAndOfflineDirs(BrokerMetadataCheckpoint.scala:153)
at kafka.server.KafkaRaftServer$.initializeLogDirs(KafkaRaftServer.scala:150)
at kafka.server.KafkaRaftServer.<init>(KafkaRaftServer.scala:53)
at kafka.Kafka$.buildServer(Kafka.scala:79)
at kafka.Kafka$.main(Kafka.scala:87)
at kafka.Kafka.main(Kafka.scala)
1.解决方案
PS D:\kafka_2.12-2.8.1> .\bin\kafka-storage.sh random-uuid
PS D:\kafka_2.12-2.8.1> .\bin\windows\kafka-run-class.bat kafka.tools.StorageTool random-uuid
sptV73uhQTq8I6khCvixAg
PS D:\kafka_2.12-2.8.1> .\bin\windows\kafka-run-class.bat kafka.tools.StorageTool format -t sptV73uhQTq8I6khCvixAg -c ./config/kraft/server.properties
Formatting D:kafka_2.12-2.8.1kraft-combined-logs
PS D:\kafka_2.12-2.8.1> .\bin\windows\kafka-server-start.bat ./config/kraft/server.properties
更多推荐
所有评论(0)