Return-Path: X-Original-To: apmail-ambari-dev-archive@www.apache.org Delivered-To: apmail-ambari-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ADB67183C2 for ; Mon, 22 Feb 2016 09:10:21 +0000 (UTC) Received: (qmail 78546 invoked by uid 500); 22 Feb 2016 09:10:18 -0000 Delivered-To: apmail-ambari-dev-archive@ambari.apache.org Received: (qmail 78375 invoked by uid 500); 22 Feb 2016 09:10:18 -0000 Mailing-List: contact dev-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list dev@ambari.apache.org Received: (qmail 78316 invoked by uid 99); 22 Feb 2016 09:10:18 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Feb 2016 09:10:18 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 20BC72C1F5D for ; Mon, 22 Feb 2016 09:10:18 +0000 (UTC) Date: Mon, 22 Feb 2016 09:10:18 +0000 (UTC) From: "secfree (JIRA)" To: dev@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (AMBARI-15126) Update wrong namenode config when moving namenode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 secfree created AMBARI-15126: -------------------------------- Summary: Update wrong namenode config when moving namenode Key: AMBARI-15126 URL: https://issues.apache.org/jira/browse/AMBARI-15126 Project: Ambari Issue Type: Bug Components: ambari-web Affects Versions: 2.1.2 Reporter: secfree Priority: Critical Condition: 1. hdfs deploy ha 2. "dfs.namenode.http-address" is not set to the default port 50070 Result: 1. Ambari will always substitute configures relative to "nn2" 2. The active "Move Namenode" failed and make configure inconsistent, the cluster crashes Code location {code:title=ambari-web/app/controllers/main/service/reassign/step4_controller.js|borderStyle=solid} if (App.get('isHaEnabled')) { var nameServices = configs['hdfs-site']['dfs.nameservices']; var suffix = (configs['hdfs-site']['dfs.namenode.http-address.' + nameServices + '.nn1'] === sourceHostName + ':50070') ? '.nn1' : '.nn2'; configs['hdfs-site']['dfs.namenode.http-address.' + nameServices + suffix] = targetHostName + ':50070'; ... } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)