From issues-return-18536-archive-asf-public=cust-asf.ponee.io@kylin.apache.org Fri Jul 6 12:14:03 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 592B7180627 for ; Fri, 6 Jul 2018 12:14:03 +0200 (CEST) Received: (qmail 11380 invoked by uid 500); 6 Jul 2018 10:14:02 -0000 Mailing-List: contact issues-help@kylin.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@kylin.apache.org Delivered-To: mailing list issues@kylin.apache.org Received: (qmail 11371 invoked by uid 99); 6 Jul 2018 10:14:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2018 10:14:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id ECCCAC0103 for ; Fri, 6 Jul 2018 10:14:01 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id tYS76NiFceJl for ; Fri, 6 Jul 2018 10:14:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 114255F29A for ; Fri, 6 Jul 2018 10:14:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 910E6E0FB8 for ; Fri, 6 Jul 2018 10:14:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 3443027508 for ; Fri, 6 Jul 2018 10:14:00 +0000 (UTC) Date: Fri, 6 Jul 2018 10:14:00 +0000 (UTC) From: "kangkaisen (JIRA)" To: issues@kylin.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (KYLIN-3430) Global Dictionary Cleanup MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/KYLIN-3430?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1653= 4657#comment-16534657 ]=20 kangkaisen commented on KYLIN-3430: ----------------------------------- Hi, [~temple.zhou]. There is also a config "kylin.dictionary.append-version-ttl", the default v= alue is three days.=C2=A0=C2=A0which means we will not delete the dir=C2=A0= Within three days. =C2=A0 The=C2=A0Global Dictionary is not cube level,=C2=A0multiple cubes could use= the same=C2=A0Global Dictionary.=C2=A0 So we shouldn't delete=C2=A0Global = Dictionary when we drop one cube. =C2=A0 But you=C2=A0remind me,=C2=A0 if the=C2=A0Global Dictionary related cube ar= e all dropped, currently, we will never delete the=C2=A0Global Dictionary i= n HDFS.=C2=A0 This is a issue indeed, thanks you very much!=C2=A0 I=C2=A0th= ought wrong. =C2=A0 As for how to=C2=A0check a Global Dictionary=C2=A0whether has reference or = not, I think we could get the active=C2=A0Global Dictionary from the cube m= etadata, if all cube don't use a=C2=A0Global Dictionary, we could think the= =C2=A0Global Dictionary is=C2=A0useless and delete it. Thanks you ! =C2=A0 =C2=A0 > Global Dictionary Cleanup > ------------------------- > > Key: KYLIN-3430 > URL: https://issues.apache.org/jira/browse/KYLIN-3430 > Project: Kylin > Issue Type: Improvement > Components: Tools, Build and Test > Affects Versions: v2.1.0, v2.2.0, v2.3.0, v2.3.1, v2.4.0 > Reporter: Temple Zhou > Assignee: Temple Zhou > Priority: Major > Attachments: KYLIN-3430.master.001.patch > > > I had run=C2=A0"{{./bin/metastore.sh clean --delete true" to cleanup my K= ylin metadata, but, after that, the Global Dictionary still exists in my HD= FS and the size of directory "/kylin_metadata/resources/GlobalDict/dict" ha= sn't shrunk.}} > =C2=A0 > {{BTW: I'm very sure that there are redundant=C2=A0Global Dictionaries.}} -- This message was sent by Atlassian JIRA (v7.6.3#76005)