Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-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 197B1186FD for ; Fri, 18 Mar 2016 14:51:34 +0000 (UTC) Received: (qmail 39246 invoked by uid 500); 18 Mar 2016 14:51:33 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 39200 invoked by uid 500); 18 Mar 2016 14:51:33 -0000 Mailing-List: contact issues-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 issues@ambari.apache.org Received: (qmail 39180 invoked by uid 99); 18 Mar 2016 14:51:33 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Mar 2016 14:51:33 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8F5682C1F61 for ; Fri, 18 Mar 2016 14:51:33 +0000 (UTC) Date: Fri, 18 Mar 2016 14:51:33 +0000 (UTC) From: "Yusaku Sako (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (AMBARI-13946) Non NameNode-HA properties still in hdfs-site.xml causing (at least) Balancer and ATS to fail 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/AMBARI-13946?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yusaku Sako updated AMBARI-13946: --------------------------------- Fix Version/s: 2.2.2 > Non NameNode-HA properties still in hdfs-site.xml causing (at least) Balancer and ATS to fail > --------------------------------------------------------------------------------------------- > > Key: AMBARI-13946 > URL: https://issues.apache.org/jira/browse/AMBARI-13946 > Project: Ambari > Issue Type: Bug > Components: ambari-server > Affects Versions: 2.1.2, 2.2.0 > Environment: CentOS6.7, HDP2.3-2950 > Reporter: Benoit Perroud > Assignee: Aleksandr Kovalenko > Fix For: 2.2.2 > > Attachments: AMBARI-13946.patch, AMBARI-13946_branch-2.2.patch > > > After enabling NameNode-HA, {{hdfs-site.xml}} does still contain non-HA properties, including > * dfs.namenode.rpc-address > * dfs.namenode.http-address > * dfs.namenode.https-address > This cause the balancer to fail with the following symptoms in Balancer: > {code} > ... > 15/11/18 15:48:30 INFO balancer.Balancer: namenodes = [hdfs://daplab2, hdfs://daplab-rt-11.fri.lan:8020] > ... > java.io.IOException: Another Balancer is running.. Exiting ... > {code} > And ATS: > {code} > _assert_valid > self.target_status = self._get_file_status(target) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 292, in _get_file_status > list_status = self.util.run_command(target, 'GETFILESTATUS', method='GET', ignore_status_codes=['404'], assertable_result=False) > File "/usr/lib/python2.6/site-packages/resource_management/libraries/providers/hdfs_resource.py", line 210, in run_command > raise Fail(err_msg) > resource_management.core.exceptions.Fail: Execution of 'curl -sS -L -w '%{http_code}' -X GET 'http://pvvsccmn1-brn1:50070/webhdfs/v1/ats/done?op=GETFILESTATUS&user.name=hdfs'' returned status_code=403. > { > "RemoteException": { > "exception": "StandbyException", > "javaClassName": "org.apache.hadoop.ipc.StandbyException", > "message": "Operation category READ is not supported in state standby" > } > } > {code} > These should be removed from the config. > Steps to reproduce: after turning on NameNode HA, {{grep dfs.namenode.rpc-address|dfs.namenode.http-address /etc/hadoop/conf/hdfs-site.xml}} shouldn't return anything -- This message was sent by Atlassian JIRA (v6.3.4#6332)