Browse Source

AMBARI-2191. Report status for YARN and MAPREDUCE2

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1485797 13f79535-47bb-0310-9956-ffa450edef68
Nate Cole 12 years ago
parent
commit
41cb3576ae

+ 2 - 0
CHANGES.txt

@@ -338,6 +338,8 @@ Trunk (unreleased changes):
 
  AMBARI-2111. Enable customization of smoke test user. (yusaku)
 
+ AMBARI-2191. Report status for YARN and MAPREDUCE2. (ncole)
+
  AMBARI-2147. Added config change auditing. (ncole)
 
  AMBARI-2110. Update hive-site.xml, set fs.file.impl.disable.cache=true.

+ 4 - 0
ambari-agent/src/main/python/ambari_agent/AmbariConfig.py

@@ -186,6 +186,10 @@ pidPathesVars = [
    'defaultValue' : '/var/run/mysqld'},
   {'var' : 'webhcat_pid_dir',
    'defaultValue' : '/var/run/webhcat'},                      
+  {'var' : 'yarn_pid_dir',
+   'defaultValue' : '/var/run/hadoop-yarn'},
+  {'var' : 'mapreduce2_pid_dir',
+   'defaultValue' : '/var/run/hadoop-mapreduce'},
 ]
 
 class AmbariConfig:

+ 30 - 25
ambari-agent/src/main/python/ambari_agent/LiveStatus.py

@@ -32,7 +32,8 @@ class LiveStatus:
   SERVICES = [
     "HDFS", "MAPREDUCE", "GANGLIA", "HBASE",
     "NAGIOS", "ZOOKEEPER", "OOZIE", "HCATALOG",
-    "KERBEROS", "TEMPLETON", "HIVE", "WEBHCAT"
+    "KERBEROS", "TEMPLETON", "HIVE", "WEBHCAT",
+    "YARN", "MAPREDUCE2"
   ]
 
   COMPONENTS = [
@@ -42,50 +43,54 @@ class LiveStatus:
        "componentName" : "NAMENODE"},
       {"serviceName" : "HDFS",
        "componentName" : "SECONDARY_NAMENODE"},
-#      {"serviceName" : "HDFS",
-#       "componentName" : "HDFS_CLIENT"},
+
       {"serviceName" : "MAPREDUCE",
        "componentName" : "JOBTRACKER"},
       {"serviceName" : "MAPREDUCE",
        "componentName" : "TASKTRACKER"},
-#      {"serviceName" : "MAPREDUCE",
-#       "componentName" : "MAPREDUCE_CLIENT"},
-      {"serviceName" : "GANGLIA",             #!
+
+      {"serviceName" : "GANGLIA",
        "componentName" : "GANGLIA_SERVER"},
-      {"serviceName" : "GANGLIA",             #!
+      {"serviceName" : "GANGLIA",
        "componentName" : "GANGLIA_MONITOR"},
-      {"serviceName" : "HBASE",               #!
+
+      {"serviceName" : "HBASE",
        "componentName" : "HBASE_MASTER"},
-      {"serviceName" : "HBASE",              #!
+      {"serviceName" : "HBASE",
        "componentName" : "HBASE_REGIONSERVER"},
-#      {"serviceName" : "HBASE",
-#       "componentName" : "HBASE_CLIENT"},
-      {"serviceName" : "NAGIOS",             #!
+
+      {"serviceName" : "NAGIOS",
        "componentName" : "NAGIOS_SERVER"},
+
       {"serviceName" : "ZOOKEEPER",
        "componentName" : "ZOOKEEPER_SERVER"},
-#      {"serviceName" : "ZOOKEEPER",
-#       "componentName" : "ZOOKEEPER_CLIENT"},
+
       {"serviceName" : "OOZIE",
        "componentName" : "OOZIE_SERVER"},
-#      {"serviceName" : "OOZIE",
-#       "componentName" : "OOZIE_CLIENT"},
-      {"serviceName" : "HCATALOG",            #!
+
+      {"serviceName" : "HCATALOG",
        "componentName" : "HCATALOG_SERVER"},
+
       {"serviceName" : "KERBEROS",
-       "componentName" : "KERBEROS_SERVER"}, #!
-#      {"serviceName" : "TEMPLETON",
-#       "componentName" : "TEMPLETON_SERVER"},
-#      {"serviceName" : "TEMPLETON",
-#       "componentName" : "TEMPLETON_CLIENT"},
-      {"serviceName" : "HIVE",               #!
+       "componentName" : "KERBEROS_SERVER"},
+
+      {"serviceName" : "HIVE",
        "componentName" : "HIVE_SERVER"},
-      {"serviceName" : "HIVE",               #!
+      {"serviceName" : "HIVE",
        "componentName" : "HIVE_METASTORE"},
-      {"serviceName" : "HIVE",               #!
+      {"serviceName" : "HIVE",
        "componentName" : "MYSQL_SERVER"},
+
       {"serviceName" : "WEBHCAT",
        "componentName" : "WEBHCAT_SERVER"},
+
+      {"serviceName" : "YARN",
+       "componentName" : "RESOURCEMANAGER"},
+      {"serviceName" : "YARN",
+       "componentName" : "NODEMANAGER"},
+
+      {"serviceName" : "MAPREDUCE2",
+       "componentName" : "HISTORYSERVER"},
   ]
 
   LIVE_STATUS = "STARTED"