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 <[email protected]>
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
[email protected].