site-docs is not in the form of topic-partition or topic-partition.uniqueId-delete

 

 

[2020-06-26 14:52:19,319] ERROR There was an error in one of the threads during logs loading: org.apache.kafka.common.KafkaException: Found directory /home/appleyuchi/bigdata/kafka_2.12-2.5.0-1/site-docs, 'site-docs' is not in the form of topic-partition or topic-partition.uniqueId-delete (if marked for deletion).
Kafka's log directories (and children) should only contain Kafka topic data. (kafka.log.LogManager)
[2020-06-26 14:52:19,322] ERROR [KafkaServer id=1] Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
org.apache.kafka.common.KafkaException: Found directory /home/appleyuchi/bigdata/kafka_2.12-2.5.0-1/site-docs, 'site-docs' is not in the form of topic-partition or topic-partition.uniqueId-delete (if marked for deletion).
Kafka's log directories (and children) should only contain Kafka topic data.
    at kafka.log.Log$.exception$1(Log.scala:2594)
    at kafka.log.Log$.parseTopicPartitionName(Log.scala:2616)
    at kafka.log.LogManager.loadLog(LogManager.scala:257)
    at kafka.log.LogManager.$anonfun$loadLogs$12(LogManager.scala:342)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    at java.util.concurrent.FutureTask.run(FutureTask.java:266)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:748)

 

解決方案:

上述報錯的意思是,

log.dirs這個變量設置的文件夾不乾淨,

除了log內容相關的,其他東西不能有,

示範:

log.dirs=/home/appleyuchi/bigdata/kafka_2.12-2.5.0-1/logs

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章