From hdfs-issues-return-225355-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Jul 3 09:39:04 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 E1A06180632 for ; Tue, 3 Jul 2018 09:39:03 +0200 (CEST) Received: (qmail 6226 invoked by uid 500); 3 Jul 2018 07:39: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 6215 invoked by uid 99); 3 Jul 2018 07:39:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2018 07:39:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 68109185800 for ; Tue, 3 Jul 2018 07:39:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.511 X-Spam-Level: X-Spam-Status: No, score=-109.511 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, KAM_ASCII_DIVIDERS=0.8, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Z26LdHfmZM9j for ; Tue, 3 Jul 2018 07:39: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 0D3AE5F42E for ; Tue, 3 Jul 2018 07:39: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 7E0EEE0110 for ; Tue, 3 Jul 2018 07:39: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 384A52183B for ; Tue, 3 Jul 2018 07:39:00 +0000 (UTC) Date: Tue, 3 Jul 2018 07:39:00 +0000 (UTC) From: "yanghuafeng (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-13710) RBF: setQuota and getQuotaUsage should check the dfs.federation.router.quota.enable 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-13710?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1653= 0952#comment-16530952 ]=20 yanghuafeng commented on HDFS-13710: ------------------------------------ Thanks for your comments,=C2=A0[~linyiqun]. I have finished the work, pleas= e give a review again. > RBF: setQuota and getQuotaUsage should check the dfs.federation.router.q= uota.enable > -------------------------------------------------------------------------= ----------- > > Key: HDFS-13710 > URL: https://issues.apache.org/jira/browse/HDFS-13710 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: federation, hdfs > Affects Versions: 2.9.1, 3.0.3 > Reporter: yanghuafeng > Priority: Major > Attachments: HADOOP-13710.004.patch, HDFS-13710.002.patch, HDFS-1= 3710.003.patch, HDFS-13710.patch > > > when I use the command below,=C2=A0some exceptions happened. > =C2=A0 > {code:java} > hdfs dfsrouteradmin -setQuota /tmp -ssQuota 1G=20 > {code} > =C2=A0the logs follow. > {code:java} > Successfully set quota for mount point /tmp > {code} > It looks like the quota is set successfully, but some exceptions happen i= n the rbf server log. > {code:java} > java.io.IOException: No remote locations available > at org.apache.hadoop.hdfs.server.federation.router.RouterRpcClient.invoke= Concurrent(RouterRpcClient.java:1002) > at org.apache.hadoop.hdfs.server.federation.router.RouterRpcClient.invoke= Concurrent(RouterRpcClient.java:967) > at org.apache.hadoop.hdfs.server.federation.router.RouterRpcClient.invoke= Concurrent(RouterRpcClient.java:940) > at org.apache.hadoop.hdfs.server.federation.router.Quota.setQuota(Quota.j= ava:84) > at org.apache.hadoop.hdfs.server.federation.router.RouterAdminServer.sync= hronizeQuota(RouterAdminServer.java:255) > at org.apache.hadoop.hdfs.server.federation.router.RouterAdminServer.upda= teMountTableEntry(RouterAdminServer.java:238) > at org.apache.hadoop.hdfs.protocolPB.RouterAdminProtocolServerSideTransla= torPB.updateMountTableEntry(RouterAdminProtocolServerSideTranslatorPB.java:= 179) > at org.apache.hadoop.hdfs.protocol.proto.RouterProtocolProtos$RouterAdmin= ProtocolService$2.callBlockingMethod(RouterProtocolProtos.java:259) > at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvoker.call= (ProtobufRpcEngine.java:616) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:982) > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2115) > at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:2111) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformat= ion.java:1867) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2111) > {code} > I find the=C2=A0dfs.federation.router.quota.enable is false by default. A= nd it causes the problem. I think we should check the parameter when we cal= l setQuota and getQuotaUsage.=C2=A0 > =C2=A0 > =C2=A0 -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org