You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Hudson (Jira)" <ji...@apache.org> on 2020/12/03 14:51:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17243230#comment-17243230 ]
Hudson commented on HBASE-25230:
--------------------------------
Results for branch branch-1
[build #63 on builds.a.o|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-1/63/]: (x) *{color:red}-1 overall{color}*
----
details (if available):
(/) {color:green}+1 general checks{color}
-- For more information [see general report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-1/63//General_Nightly_Build_Report/]
(x) {color:red}-1 jdk7 checks{color}
-- For more information [see jdk7 report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-1/63//JDK7_Nightly_Build_Report/]
(x) {color:red}-1 jdk8 hadoop2 checks{color}
-- For more information [see jdk8 (hadoop2) report|https://ci-hadoop.apache.org/job/HBase/job/HBase%20Nightly/job/branch-1/63//JDK8_Nightly_Build_Report_(Hadoop2)/]
(x) {color:red}-1 source release artifact{color}
-- See build output for details.
> 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.2.7, 2.3.4, 2.5.0, 2.4.1
>
>
> 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)