You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Claudio Carcaci (Jira)" <ji...@apache.org> on 2021/08/05 14:48:00 UTC

[jira] [Created] (KAFKA-13171) KIP-500 Setup and named docker volumes

Claudio Carcaci created KAFKA-13171:
---------------------------------------

             Summary: KIP-500 Setup and named docker volumes
                 Key: KAFKA-13171
                 URL: https://issues.apache.org/jira/browse/KAFKA-13171
             Project: Kafka
          Issue Type: Improvement
    Affects Versions: 2.8.0
            Reporter: Claudio Carcaci


Following the KIP-500 instructions to enable the Kraft mode ([https://github.com/apache/kafka/blob/trunk/config/kraft/README.md)] the command:
{code:java}
$ ./bin/kafka-storage.sh format -t <uuid> -c ./config/kraft/server.properties
{code}
will create a "meta.properties" file in the logs folder (i.e. /tmp/kraft-combined-logs).

If I build a Docker image with Kraft mode enabled and I mount a named volume on the /tmp/kraft-combined-logs the content of the folder will be overwritten (emptied) by the Docker named volume content. So I will lose the meta.properties file.

A possible solution would be to create the meta.properties file in a separated folder and store all the created logs elsewhere so that by mounting a named volume the logs folder can start empty.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)