Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D5772200C1A for ; Mon, 13 Feb 2017 13:19:44 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D407F160B60; Mon, 13 Feb 2017 12:19:44 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 28794160B4D for ; Mon, 13 Feb 2017 13:19:44 +0100 (CET) Received: (qmail 81928 invoked by uid 500); 13 Feb 2017 12:18:55 -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 81711 invoked by uid 99); 13 Feb 2017 12:18:55 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 13 Feb 2017 12:18:55 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 0C8A91A01F5 for ; Mon, 13 Feb 2017 12:18:55 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -1.999 X-Spam-Level: X-Spam-Status: No, score=-1.999 tagged_above=-999 required=6.31 tests=[KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id FWsm37JiwrOd for ; Mon, 13 Feb 2017 12:18:53 +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 A27705FD92 for ; Mon, 13 Feb 2017 12:18:52 +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 0C882E0901 for ; Mon, 13 Feb 2017 12:18:45 +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 CCB72227F7 for ; Mon, 13 Feb 2017 11:32:41 +0000 (UTC) Date: Mon, 13 Feb 2017 11:32:41 +0000 (UTC) From: "Yiqun Lin (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-11333) Namenode unable to start if plugins can not be found MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 13 Feb 2017 12:19:45 -0000 [ https://issues.apache.org/jira/browse/HDFS-11333?page=3Dcom.atlassian= .jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D1586= 3516#comment-15863516 ]=20 Yiqun Lin commented on HDFS-11333: ---------------------------------- The suggestion from [~aw] also makes sense to me. Based on v01 patch, I thi= nk it's suffient to just rethrow the exception here.=20 {code} + try { + plugins =3D conf.getInstances(DFS_NAMENODE_PLUGINS_KEY, + ServicePlugin.class); + } catch (RuntimeException e) { + LOG.warn("Unable to load plugins", e); throw e; <=3D=3D=3D + } {code} And this logic can be reused for datanode plugins loading. > Namenode unable to start if plugins can not be found > ---------------------------------------------------- > > Key: HDFS-11333 > URL: https://issues.apache.org/jira/browse/HDFS-11333 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 0.21.0 > Reporter: Wei-Chiu Chuang > Assignee: Wei-Chiu Chuang > Labels: supportability > Attachments: HDFS-11333.001.patch > > > If NameNode is unable to find plugins (specified in dfs.namenode.plugins)= , it terminates abruptly with the following stack trace: > {quote} > Failed to start namenode. > java.lang.RuntimeException: java.lang.ClassNotFoundException: Class XXX n= ot found > =E2=80=82=E2=80=82at org.apache.hadoop.conf.Configuration.getClasses(Conf= iguration.java:2178) > =E2=80=82=E2=80=82at org.apache.hadoop.conf.Configuration.getInstances(Co= nfiguration.java:2250) > =E2=80=82=E2=80=82at org.apache.hadoop.hdfs.server.namenode.NameNode.star= tCommonServices(NameNode.java:713) > =E2=80=82=E2=80=82at org.apache.hadoop.hdfs.server.namenode.NameNode.init= ialize(NameNode.java:691) > =E2=80=82=E2=80=82at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:843) > =E2=80=82=E2=80=82at org.apache.hadoop.hdfs.server.namenode.NameNode.(NameNode.java:822) > =E2=80=82=E2=80=82at org.apache.hadoop.hdfs.server.namenode.NameNode.crea= teNameNode(NameNode.java:1543) > =E2=80=82=E2=80=82at org.apache.hadoop.hdfs.server.namenode.NameNode.main= (NameNode.java:1611) > {quote} > We should catch this exception, log a warning message and let it proceed,= as missing the third party library does not affect the functionality of Na= meNode. We caught this bug during a CDH upgrade where a third party plugin = was not in the lib directory of the newer version of CDH. -- This message was sent by Atlassian JIRA (v6.3.15#6346) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org