79077656

Date: 2024-10-11 09:45:33
Score: 1
Natty:
Report link

After a test, with parameter --ignore-formatted, the script bin/kafka-storage.sh format new directories and keep the existing data.

bin/kafka-storage.sh format -t $KAFKA_CLUSTER_ID -c config/kraft/server.properties --ignore-formatted

All parameters can be found in the StorageTool source code

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Peter