You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Andrew Kyle Purtell (Jira)" <ji...@apache.org> on 2020/12/03 17:39:00 UTC

[jira] [Updated] (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 ]

Andrew Kyle Purtell updated HBASE-25230:
----------------------------------------
    Fix Version/s:     (was: 2.4.1)
                   2.4.0

> 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
>             Fix For: 3.0.0-alpha-1, 1.7.0, 2.4.0, 2.2.7, 2.3.4, 2.5.0
>
>
> 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)