Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 43c0e4946 -> f15326879


AMBARI-21664. HDFS namenode rpc and connection load metrics are not showing. 
Addendum. (swagle)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f1532687
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f1532687
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f1532687

Branch: refs/heads/branch-2.5
Commit: f153268797c3d448a741ceef5dd92dd8e3d7cb48
Parents: 43c0e49
Author: Siddharth Wagle <swa...@hortonworks.com>
Authored: Thu Aug 10 13:47:13 2017 -0700
Committer: Siddharth Wagle <swa...@hortonworks.com>
Committed: Thu Aug 10 13:47:25 2017 -0700

----------------------------------------------------------------------
 .../stacks/HDP/2.0.6/hooks/before-START/scripts/params.py        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f1532687/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
index bd86b50..5554941 100644
--- 
a/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
+++ 
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py
@@ -331,7 +331,7 @@ if dfs_ha_enabled:
      namenode_rpc = nn_host
    pass
  pass
-elif 'dfs.namenode.rpc-address' in config['configurations']['hdfs-site']:
+elif 'hdfs-site' in config['configurations'] and 'dfs.namenode.rpc-address' in 
config['configurations']['hdfs-site']:
   namenode_rpc = default('/configurations/hdfs-site/dfs.namenode.rpc-address', 
None)
 else:
   namenode_rpc = default('/configurations/core-site/fs.defaultFS', None)
@@ -341,7 +341,7 @@ if namenode_rpc:
  try:
    nn_rpc_client_port = int(port_str)
  except ValueError:
-   nn_rpc_client_port = None
+   pass
 
 if dfs_ha_enabled:
  dfs_service_rpc_address = 
default(format('/configurations/hdfs-site/dfs.namenode.servicerpc-address.{dfs_ha_nameservices}.{namenode_id}'),
 None)

Reply via email to