磁盘达到使用率,清理磁盘历史文件。发现zookeeper的历史snapshot文件挺多的,开启自动清理策略

1.add or check zoo.cfg

# Set to "0" to disable auto purge feature,Purge task interval in hours
autopurge.purgeInterval=1

# The number of snapshots to retain in dataDir
autopurge.snapRetainCount=3

2.restart zookeeper or wait 1 houres

  • restart zookeeper