-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to change kafka log path #729
Comments
Same question herre |
You can use |
The default storage path for kafka configuration files is tmp/kafka logs. If you modify the kafka configuration file, the data storage path for kafka is as follows: In addition to storing data, there are also Kafka's running log files, so we'd better also migrate them to a large disk. The kafka log file is stored in the logs folder of the kafka installation directory by default. In v2.7.1 and earlier versions, modifications cannot be directly defined in the configuration file, but only the running file/kafka/bin/kafka run class.sh can be modified Since log.dirs is in the plural form, it actually supports configuring multiple paths, because Kafka can "load evenly" store data in multiple directories. Of course, it must be mounted to multiple disks instead of multiple directories on the same disk. Attaching multiple disks and allowing multiple heads to perform write operations simultaneously will greatly improve the throughput of Kafka. For example, you can specify two different disks (mnt1, mnt2) as the data storage directory, and modify the configuration file as follows: log.dirs=/mnt1/kafka/data,/mnt2/kafka/data |
I change the logs.dir in server.properties ,but does not take effect.the value will be change after each reboot with docker-compose down/up,,why ?
log.dirs=/kafka/kafka-logs-56a3b229e3a1---change the log.dirs does not take effect
how to fix the log path ,even reboot kafka by docker-compose down/up ?
The text was updated successfully, but these errors were encountered: