From commits-return-52522-archive-asf-public=cust-asf.ponee.io@ambari.apache.org Thu Apr 26 15:43:00 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id B76C2180648 for ; Thu, 26 Apr 2018 15:42:59 +0200 (CEST) Received: (qmail 2221 invoked by uid 500); 26 Apr 2018 13:42:58 -0000 Mailing-List: contact commits-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: ambari-dev@ambari.apache.org Delivered-To: mailing list commits@ambari.apache.org Received: (qmail 2208 invoked by uid 99); 26 Apr 2018 13:42:58 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Apr 2018 13:42:58 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 22324852D9; Thu, 26 Apr 2018 13:42:58 +0000 (UTC) Date: Thu, 26 Apr 2018 13:42:58 +0000 To: "commits@ambari.apache.org" Subject: [ambari] branch trunk updated: AMBARI-23701. Adding new namespace fails at Reconfigure Services (#1105) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <152475017801.18464.15135029162098471463@gitbox.apache.org> From: adoroszlai@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: ambari X-Git-Refname: refs/heads/trunk X-Git-Reftype: branch X-Git-Oldrev: fd3784a5ddff6e2e2d3557a0b02cc64406e3205a X-Git-Newrev: 9d2f3c6ac80cecc3cf2a93730932db1eb8b7b005 X-Git-Rev: 9d2f3c6ac80cecc3cf2a93730932db1eb8b7b005 X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. adoroszlai pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git The following commit(s) were added to refs/heads/trunk by this push: new 9d2f3c6 AMBARI-23701. Adding new namespace fails at Reconfigure Services (#1105) 9d2f3c6 is described below commit 9d2f3c6ac80cecc3cf2a93730932db1eb8b7b005 Author: Doroszlai, Attila <6454655+adoroszlai@users.noreply.github.com> AuthorDate: Thu Apr 26 15:42:53 2018 +0200 AMBARI-23701. Adding new namespace fails at Reconfigure Services (#1105) --- .../common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py index 55476f9..a2e67b9 100644 --- a/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py +++ b/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py @@ -326,13 +326,13 @@ for ns, dfs_ha_namenode_ids in dfs_ha_namenode_ids_all_ns.iteritems(): dfs_ha_enabled = True if dfs_ha_enabled: for nn_id in dfs_ha_namemodes_ids_list: - nn_host = config['configurations']['hdfs-site'][format('dfs.namenode.rpc-address.{dfs_ha_nameservices}.{nn_id}')] + nn_host = config['configurations']['hdfs-site'][format('dfs.namenode.rpc-address.{ns}.{nn_id}')] if hostname.lower() in nn_host.lower() or public_hostname.lower() in nn_host.lower(): namenode_id = nn_id namenode_rpc = nn_host found = True # With HA enabled namenode_address is recomputed - namenode_address = format('hdfs://{dfs_ha_nameservices}') + namenode_address = format('hdfs://{ns}') # Calculate the namenode id of the other namenode. This is needed during RU to initiate an HA failover using ZKFC. if namenode_id is not None and len(dfs_ha_namemodes_ids_list) == 2: @@ -575,4 +575,4 @@ if enable_ranger_hdfs: # need this to capture cluster name from where ranger hdfs plugin is enabled cluster_name = config['clusterName'] -# ranger hdfs plugin section end \ No newline at end of file +# ranger hdfs plugin section end -- To stop receiving notification emails like this one, please contact adoroszlai@apache.org.