-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
None
Requirement:
change mount point in log.dirs property and perform a rolling restart of the kafka cluster
Description:
imagine you need to substitute the mount point in log.dirs with a new one. The new mount point will contain the copied data from the old one, e.g
#old
log.dirs=/tmp/kakfa-logs-0
#new
log.dirs=/data/kakfa-logs-0
Steps:
- create an AMQ Streams cluster (minimum 3 brokers)
- create a topic with rf = 3 and partition = 3 (or more)
- send tons of messages with kafka producer to the new topic
- verify ISR and RF with kafka-topics --describe
- stop one of the brokers
- copy the data (cp command or similar) from the old mount point to the new mount point
- modify log.dirs property in server.properties for the stopped broker with the new mount point
- change the permission to the old mount point: chmod ugo-rwx
- restart the stopped broker
- send again tons of messages with kafka producer to the new topic
- verify ISR and RF with kafka-topics --describe
- verify errors on kafka logs
REPEAT the steps for the remaining brokers