Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E6C83179F8 for ; Mon, 6 Apr 2015 12:34:13 +0000 (UTC) Received: (qmail 50130 invoked by uid 500); 6 Apr 2015 12:34:13 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 50082 invoked by uid 500); 6 Apr 2015 12:34:13 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 50065 invoked by uid 99); 6 Apr 2015 12:34:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Apr 2015 12:34:13 +0000 Date: Mon, 6 Apr 2015 12:34:13 +0000 (UTC) From: "Ajith S (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8067) haadmin commands doesn't work in Federation with HA MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HDFS-8067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14481175#comment-14481175 ] Ajith S commented on HDFS-8067: ------------------------------- After analysis i found that the cause is {code:title=NNHAServiceTarget.java|borderStyle=solid} public NNHAServiceTarget(Configuration conf, String nsId, String nnId) { Preconditions.checkNotNull(nnId); if (nsId == null) { nsId = DFSUtil.getOnlyNameServiceIdOrNull(conf); if (nsId == null) { throw new IllegalArgumentException( "Unable to determine the nameservice id."); } } ...... {code} Here, by using {code:} getOnlyNameServiceIdOrNull(conf) {code} to determine the nameserviceID, when configured in a Federated setup which has multiple nameservices, returns null. This was updated as part of HDFS-3084 I am thinking to change it to {code:} getNamenodeNameServiceId(conf) {code} Please suggest > haadmin commands doesn't work in Federation with HA > --------------------------------------------------- > > Key: HDFS-8067 > URL: https://issues.apache.org/jira/browse/HDFS-8067 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Ajith S > Assignee: Ajith S > > Scenario : Setting up multiple nameservices with HA configuration for each nameservice (manual failover) > After starting the journal nodes and namenodes, both the nodes are in standby mode. > all the following haadmin commands > *haadmin* > -transitionToActive > -transitionToStandby > -failover > -getServiceState > -checkHealth > failed with exception > _Illegal argument: Unable to determine the nameservice id._ -- This message was sent by Atlassian JIRA (v6.3.4#6332)