You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Rural Hunter (Jira)" <ji...@apache.org> on 2020/10/30 08:36:00 UTC
[jira] [Created] (HBASE-25230) Embedded zookeeper server not clean
up the old data
Rural Hunter created HBASE-25230:
------------------------------------
Summary: Embedded zookeeper server not clean up the old data
Key: HBASE-25230
URL: https://issues.apache.org/jira/browse/HBASE-25230
Project: HBase
Issue Type: Bug
Components: Zookeeper
Reporter: Rural Hunter
The size of zookeeper data dir keeps increasing. I checked the source code and found the zookeeper data cleanup manager is not started by hbase. The standalone zookeeper server runs the data cleanup manager but hbase does not. I suggest add the code below at the beginning of org.apache.hadoop.hbase.zookeeper.HQuorumPeer.runZKServer():
{code:java}
// Start and schedule the the purge task
DatadirCleanupManager purgeMgr=new DatadirCleanupManager(
zkConfig.getDataDir(),
zkConfig.getDataLogDir(),
zkConfig.getSnapRetainCount(),
zkConfig.getPurgeInterval());
purgeMgr.start();
{code}
I've been running this code in my hbase cluster for quite a long time without problem.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)