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 92AE0200D0A for ; Wed, 20 Sep 2017 02:33:04 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 90DEA1609E0; Wed, 20 Sep 2017 00:33:04 +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 D6C591609DD for ; Wed, 20 Sep 2017 02:33:03 +0200 (CEST) Received: (qmail 97153 invoked by uid 500); 20 Sep 2017 00:33: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 97142 invoked by uid 99); 20 Sep 2017 00:33:02 -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; Wed, 20 Sep 2017 00:33:02 +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 6C60D1A5E06 for ; Wed, 20 Sep 2017 00:33:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] 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 YoM2NBEH5iGh for ; Wed, 20 Sep 2017 00:33: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 223EB60D18 for ; Wed, 20 Sep 2017 00:33: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 5B049E0931 for ; Wed, 20 Sep 2017 00:33: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 17192244FE for ; Wed, 20 Sep 2017 00:33:00 +0000 (UTC) Date: Wed, 20 Sep 2017 00:33:00 +0000 (UTC) From: "Hanisha Koneru (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-12486) GetConf to get journalnodeslist MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 20 Sep 2017 00:33:04 -0000 [ https://issues.apache.org/jira/browse/HDFS-12486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16172542#comment-16172542 ] Hanisha Koneru commented on HDFS-12486: --------------------------------------- Thanks for the improvement, [~bharatviswa]. A few comments: - Even though {{DFS_NAMENODE_SHARED_EDITS_DIR_KEY}} is included in the Namenode specific keys, it should not be. It should have been a nameservice specific key. But changing that now would break backward-compatibility. So can you log a warning if the configuration has shared edits set as a namenode specific key like _dfs.namenode.shared.edits.dir.ns1.nn1_. - In _DFSUtil#getJournalNodeAddresses_, there should be a check whether the shared edits value is a URI or not. For example, {quote} *qjournal://journal1:9820;journal2:9820;journal3:9820}* is valid *qjournal://journal1:9820;qjournal://journal2:9820;qjournal://journal3:9820* is not valid {quote} - The below code snippet can be optimized using URI. The code in [[Util#getAddressesList]] does the same thing as below using URIs. {code} String[] journalList = journal.trim().replace("qjournal://", "").split(";"); for (String value : journalList) { if (value.contains("/")) { String[] addr = value.split("/"); journalNodeList.add(getHostName(addr[0])); } else { journalNodeList.add(getHostName(value)); } } {code} - In _TestGetConf#testGetJournalNodes_, can we have valid shared.edit.dir values for testing. For example, *qjournal://nn0:9820;qjournal://nn1:9820/ns1* is not a valid value for shared.edits.dir. It should instead be something like *qjournal://jn0:9820;jn1:9820;jn2:9820/ns1* > GetConf to get journalnodeslist > ------------------------------- > > Key: HDFS-12486 > URL: https://issues.apache.org/jira/browse/HDFS-12486 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Bharat Viswanadham > Assignee: Bharat Viswanadham > Attachments: HDFS-12486.01.patch, HDFS-12486.02.patch, HDFS-12486.03.patch > > > GetConf command to list journal nodes. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org