You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Laxman Goswami (Jira)" <ji...@apache.org> on 2020/12/02 10:03:00 UTC
[jira] [Assigned] (HBASE-25230) Embedded zookeeper server not clean
up the old data
[ https://issues.apache.org/jira/browse/HBASE-25230?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Laxman Goswami reassigned HBASE-25230:
--------------------------------------
Assignee: Laxman Goswami
> 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
> Assignee: Laxman Goswami
> Priority: Minor
>
> 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)