Browse Source

AMBARI-5942. "Nagios Server Start" task failed for "Start All Services" operation during enable HA. (jaimin)

Jaimin Jetly 11 years ago
parent
commit
bf2484a7d9

+ 1 - 1
ambari-server/src/main/resources/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/params.py

@@ -48,7 +48,6 @@ eventhandlers_dir = "/usr/lib/nagios/eventhandlers"
 nagios_principal_name = default("nagios_principal_name", "nagios")
 nagios_principal_name = default("nagios_principal_name", "nagios")
 hadoop_ssl_enabled = False
 hadoop_ssl_enabled = False
 
 
-namenode_metadata_port = get_port_from_url(config['configurations']['core-site']['fs.defaultFS'])
 oozie_server_port = get_port_from_url(config['configurations']['oozie-site']['oozie.base.url'])
 oozie_server_port = get_port_from_url(config['configurations']['oozie-site']['oozie.base.url'])
 # different to HDP1    
 # different to HDP1    
 namenode_port = get_port_from_url(config['configurations']['hdfs-site']['dfs.namenode.http-address'])
 namenode_port = get_port_from_url(config['configurations']['hdfs-site']['dfs.namenode.http-address'])
@@ -105,6 +104,7 @@ if dfs_ha_enabled:
     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.{dfs_ha_nameservices}.{nn_id}')]
     nn_ha_host_port_map[nn_host.split(":")[0]] = nn_host.split(":")[1]
     nn_ha_host_port_map[nn_host.split(":")[0]] = nn_host.split(":")[1]
 else:
 else:
+  namenode_metadata_port = get_port_from_url(config['configurations']['core-site']['fs.defaultFS'])
   nn_ha_host_port_map[config['clusterHostInfo']['namenode_host'][0]] = namenode_metadata_port
   nn_ha_host_port_map[config['clusterHostInfo']['namenode_host'][0]] = namenode_metadata_port
 
 
 ganglia_port = "8651"
 ganglia_port = "8651"