diff options
author | Siddharth Wagle <swagle@hortonworks.com> | 2017-08-10 13:47:13 -0700 |
---|---|---|
committer | Siddharth Wagle <swagle@hortonworks.com> | 2017-08-10 13:47:25 -0700 |
commit | f153268797c3d448a741ceef5dd92dd8e3d7cb48 (patch) | |
tree | e667dec293111651f6fbabb0cc986f5c141aa358 | |
parent | 43c0e4946709d73bf3009dcfed68eb9820184382 (diff) |
AMBARI-21664. HDFS namenode rpc and connection load metrics are not showing. Addendum. (swagle)
-rw-r--r-- | ambari-server/src/main/resources/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py | 4 |
1 files changed, 2 insertions, 2 deletions
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 bd86b50b5d..5554941074 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) |