ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jai...@apache.org
Subject git commit: AMBARI-5942. "Nagios Server Start" task failed for "Start All Services" operation during enable HA. (jaimin)
Date Thu, 29 May 2014 20:50:13 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk dc917a9f2 -> bf2484a7d


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


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

Branch: refs/heads/trunk
Commit: bf2484a7d965b6dc0270e04212c76e28d4f0b30d
Parents: dc917a9
Author: Jaimin Jetly <jaimin@hortonworks.com>
Authored: Thu May 29 13:49:40 2014 -0700
Committer: Jaimin Jetly <jaimin@hortonworks.com>
Committed: Thu May 29 13:49:47 2014 -0700

----------------------------------------------------------------------
 .../stacks/HDP/2.0.6/services/NAGIOS/package/scripts/params.py     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/bf2484a7/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/params.py
b/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/params.py
index e46ba1e..92886ab 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.0.6/services/NAGIOS/package/scripts/params.py
+++ b/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")
 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'])
 # different to HDP1    
 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_ha_host_port_map[nn_host.split(":")[0]] = nn_host.split(":")[1]
 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
 
 ganglia_port = "8651"


Mime
View raw message