Reply
Explorer
Posts: 34
Registered: ‎11-24-2015

kafka log dir

My user wants the output of below command - but from linux.

 

bin/windows/kafka-run-class.bat kafka.tools.DumpLogSegments --files C:/tmp/kafka-logs/test-topic-1/00000000000000000000.log --print-data-log

 

I think I should run  kafka-run-class.sh.

 

But where do i see the specific log file for the topic as above ?

 

I checked in /var/log/kafka - but that only has the log file for kafka itself and not for any specific topic.

 

I don't see any /tmp/kafka-logs in any of the machines that host kafka in the cluster.

 

Appreciate any help.

Highlighted
Posts: 1,760
Kudos: 379
Solutions: 282
Registered: ‎07-31-2013

Re: kafka log dir

A log is a fundamental storage unit in Kafka: https://kafka.apache.org/intro#intro_topics

Its easily confused with a generic service log file.

The log 'data' files reside in the disk directories defined by Kafka - Configuration - 'Data Directories' in Cloudera Manager (log.dirs in a broker's configuration properties).
Announcements
New solutions