79262997

Date: 2024-12-08 17:31:31
Score: 2
Natty:
Report link
  1. ############################# Log Basics #############################

    A comma separated list of directories under which to store log files

    #log.dirs=/tmp/kafka-logs

added a new store log files

log.dirs=/var/log/kafka
  1. in here we need a kafka directory you can run

sudo mkdir -p /var/log/kafka and then

sudo chmod 777 /var/log/kafka

ps: the tmp folder to which it was pointing initially is a temporary folder, so not very stable, you might have missed permissions or something and your kafka couldn't create logs there.

you won't need to change folders from now on

you created a kafka folder in the /var/logs/ location and kafka is going to store logs there from now on

What I need to do if the folder is full again?

rm -rf /var/log/kafka/*

Reasons:
  • Blacklisted phrase (0.5): I need
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • Self-answer (0.5):
  • Filler text (0.5): #############################
  • Filler text (0): #############################
  • Low reputation (1):
Posted by: Emma