From hdfs-issues-return-226614-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Wed Jul 18 19:03: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 5B9BD180636 for ; Wed, 18 Jul 2018 19:03:04 +0200 (CEST) Received: (qmail 67491 invoked by uid 500); 18 Jul 2018 17:03:03 -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 67480 invoked by uid 99); 18 Jul 2018 17:03:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2018 17:03:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id C1162CAEE6 for ; Wed, 18 Jul 2018 17:03:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -109.501 X-Spam-Level: X-Spam-Status: No, score=-109.501 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, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id 9tJOb-6e3K3W for ; Wed, 18 Jul 2018 17:03:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 30A055F402 for ; Wed, 18 Jul 2018 17:03: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 75B93E0E28 for ; Wed, 18 Jul 2018 17:03: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 2C9B42713C for ; Wed, 18 Jul 2018 17:03:00 +0000 (UTC) Date: Wed, 18 Jul 2018 17:03:00 +0000 (UTC) From: =?utf-8?Q?=C3=8D=C3=B1igo_Goiri_=28JIRA=29?= To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-13743) RBF: Router throws NullPointerException due to the invalid initialization of MountTableResolver 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-13743?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1654= 8090#comment-16548090 ]=20 =C3=8D=C3=B1igo Goiri commented on HDFS-13743: ------------------------------------ Do you have an idea on why the MountTableResolver is not working? In any case, we should add a null check and send and error mentioning that= the MountTableResolver wasn't initialized properly. > RBF: Router throws NullPointerException due to the invalid initialization= of MountTableResolver > -------------------------------------------------------------------------= ---------------------- > > Key: HDFS-13743 > URL: https://issues.apache.org/jira/browse/HDFS-13743 > Project: Hadoop HDFS > Issue Type: Sub-task > Reporter: Takanobu Asanuma > Assignee: Takanobu Asanuma > Priority: Major > > When {{dfs.federation.router.default.nameserviceId}} isn't set and any ot= her default name service isn't found, clients can't submit requests to the = router because of {{NullPointerException}}. > # client side > {noformat} > $ hadoop fs -ls hdfs://router:8888/ > ls: java.lang.NullPointerException > {noformat} > # Router log > {noformat} > java.lang.NullPointerException > at java.util.TreeMap.getEntry(TreeMap.java:347) > at java.util.TreeMap.containsKey(TreeMap.java:232) > at java.util.TreeSet.contains(TreeSet.java:234) > at org.apache.hadoop.hdfs.server.federation.router.RouterRpcServe= r.getLocationsForPath(RouterRpcServer.java:2287) > at org.apache.hadoop.hdfs.server.federation.router.RouterRpcServe= r.getLocationsForPath(RouterRpcServer.java:2239) > at org.apache.hadoop.hdfs.server.federation.router.RouterRpcServe= r.getFileInfo(RouterRpcServer.java:1163) > at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServer= SideTranslatorPB.getFileInfo(ClientNamenodeProtocolServerSideTranslatorPB.j= ava:966) > at org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolPr= otos$ClientNamenodeProtocol$2.callBlockingMethod(ClientNamenodeProtocolProt= os.java) > at org.apache.hadoop.ipc.ProtobufRpcEngine$Server$ProtoBufRpcInvo= ker.call(ProtobufRpcEngine.java:524) > at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:1025) > at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:876) > at org.apache.hadoop.ipc.Server$RpcCall.run(Server.java:822) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroup= Information.java:1689) > at org.apache.hadoop.ipc.Server$Handler.run(Server.java:2682) > {noformat} > The cause of this error is that the initialization of {{MountTableResolve= r}} doesn't work properly. -- 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