From hdfs-issues-return-284605-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Mon Sep 23 10:47:03 2019 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 [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id DF038180651 for ; Mon, 23 Sep 2019 12:47:02 +0200 (CEST) Received: (qmail 32504 invoked by uid 500); 23 Sep 2019 10:47:02 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 32489 invoked by uid 99); 23 Sep 2019 10:47:02 -0000 Received: from mailrelay1-us-west.apache.org (HELO mailrelay1-us-west.apache.org) (209.188.14.139) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 23 Sep 2019 10:47:02 +0000 Received: from jira-he-de.apache.org (static.172.67.40.188.clients.your-server.de [188.40.67.172]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 2DAE1E312D for ; Mon, 23 Sep 2019 10:47:01 +0000 (UTC) Received: from jira-he-de.apache.org (localhost.localdomain [127.0.0.1]) by jira-he-de.apache.org (ASF Mail Server at jira-he-de.apache.org) with ESMTP id 52ED1780872 for ; Mon, 23 Sep 2019 10:47:00 +0000 (UTC) Date: Mon, 23 Sep 2019 10:47:00 +0000 (UTC) From: "Jinglun (Jira)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HDFS-14814) RBF: RouterQuotaUpdateService supports inherited rule. 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/HDFS-14814?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:all-tabpanel ] Jinglun updated HDFS-14814: --------------------------- Attachment: HDFS-14814.004.patch > RBF: RouterQuotaUpdateService supports inherited rule. > ------------------------------------------------------ > > Key: HDFS-14814 > URL: https://issues.apache.org/jira/browse/HDFS-14814 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Jinglun > Assignee: Jinglun > Priority: Major > Attachments: HDFS-14814.001.patch, HDFS-14814.002.patch, HDFS-148= 14.003.patch, HDFS-14814.004.patch > > > I want to add a rule *'The quota should be set the same as the nearest pa= rent'* to Global Quota. Supposing we have the mount table below. > M1: /dir-a=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ns0->/dir-a=C2=A0 =C2=A0 =C2=A0\{nquota= =3D10,squota=3D20} > M2: /dir-a/dir-b=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0ns1->/dir-b =C2=A0 =C2=A0 \{nquota=3D-1,squota=3D30} > M3: /dir-a/dir-b/dir-c=C2=A0 =C2=A0 =C2=A0 =C2=A0ns2->/dir-c =C2=A0 =C2= =A0 \{nquota=3D-1,squota=3D-1} > M4: /dir-d=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0ns3->/dir-d =C2=A0 =C2=A0 \{nquota=3D-1,s= quota=3D-1} > =C2=A0 > The quota for the remote locations on the namespaces should be: > ns0->/dir-a =C2=A0 =C2=A0 \{nquota=3D10,squota=3D20} > ns1->/dir-b =C2=A0 =C2=A0 \{nquota=3D10,squota=3D30} > ns2->/dir-c=C2=A0 =C2=A0 =C2=A0 \{nquota=3D10,squota=3D30} > ns3->/dir-d =C2=A0 =C2=A0 \{nquota=3D-1,squota=3D-1} > =C2=A0 > The quota of the remote location is set the same as the corresponding Mou= ntTable, and if there is no quota of the MountTable then the quota is set t= o the nearest parent MountTable with quota. > =C2=A0 > It's easy to implement it. In RouterQuotaUpdateService each time we compu= te the currentQuotaUsage, we can get the quota info for each MountTable. We= can do a > check and fix all the MountTable which's quota doesn't match the rule ab= ove. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org