incubator-ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From maha...@apache.org
Subject [2/4] AMBARI-3311. Ambari-Client create unit tests for the methods of ClusterModel. (Andrew Onischuk via mahadev)
Date Thu, 26 Sep 2013 03:59:14 GMT
http://git-wip-us.apache.org/repos/asf/incubator-ambari/blob/a0386357/ambari-client/src/test/python/json/get_cluster_hosts.json
----------------------------------------------------------------------
diff --git a/ambari-client/src/test/python/json/get_cluster_hosts.json b/ambari-client/src/test/python/json/get_cluster_hosts.json
deleted file mode 100755
index 76fa4d1..0000000
--- a/ambari-client/src/test/python/json/get_cluster_hosts.json
+++ /dev/null
@@ -1,2770 +0,0 @@
-{
-  "href" : "http://localhost:8080/api/v1/clusters/test6/hosts?fields=*",
-  "items" : [
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-83",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "20435120",
-            "used" : "11247432",
-            "percent" : "36%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525536",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525536",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "433225",
-            "used" : "37019",
-            "percent" : "8%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "2706272",
-            "used" : "385764",
-            "percent" : "13%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547328212",
-            "used" : "202332",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547328220",
-            "used" : "202324",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547328220",
-            "used" : "202324",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547328220",
-            "used" : "202324",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547328220",
-            "used" : "202324",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547328220",
-            "used" : "202324",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547328220",
-            "used" : "202324",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "apspal44-83",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.83",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.7-4.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.7-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776850409,
-            "serverTimeStampAtReporting" : 1377776808520,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "",
-                "status" : "Healthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "20262028",
-                "used" : "11420524",
-                "percent" : "37%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776823685,
-        "last_registration_time" : 1377605537902,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "apspal44-83",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-83/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "apspal44-83"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-83/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "apspal44-83"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-83/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "apspal44-83"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-84",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "28214316",
-            "used" : "3468236",
-            "percent" : "11%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525408",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525408",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "407118",
-            "used" : "63126",
-            "percent" : "14%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020636",
-            "used" : "71400",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547328212",
-            "used" : "202332",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "apspal44-84",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.84",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.7-4.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.7-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776766083,
-            "serverTimeStampAtReporting" : 1377776822943,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "",
-                "status" : "Healthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "27879832",
-                "used" : "3802720",
-                "percent" : "13%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776822943,
-        "last_registration_time" : 1377605556778,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "apspal44-84",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-84/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "apspal44-84"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-84/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "apspal44-84"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-84/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "apspal44-84"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-85",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "28050516",
-            "used" : "3632036",
-            "percent" : "12%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525408",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525408",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "407154",
-            "used" : "63090",
-            "percent" : "14%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020632",
-            "used" : "71404",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547325456",
-            "used" : "205088",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547328224",
-            "used" : "202320",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "apspal44-85",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.85",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.7-4.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.7-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776767304,
-            "serverTimeStampAtReporting" : 1377776777513,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "",
-                "status" : "Healthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "27806288",
-                "used" : "3876264",
-                "percent" : "13%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776822849,
-        "last_registration_time" : 1377605544786,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "apspal44-85",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-85/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "apspal44-85"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-85/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "apspal44-85"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-85/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "apspal44-85"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-86",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "29107664",
-            "used" : "2574888",
-            "percent" : "9%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525408",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525408",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "406969",
-            "used" : "63275",
-            "percent" : "14%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020784",
-            "used" : "71252",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547328240",
-            "used" : "202304",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547327064",
-            "used" : "203480",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547328140",
-            "used" : "202404",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          },
-          {
-            "available" : "547328140",
-            "used" : "202404",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/8"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/9"
-          },
-          {
-            "available" : "547328180",
-            "used" : "202364",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/10"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "apspal44-86",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.86",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.7-4.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.7-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776818844,
-            "serverTimeStampAtReporting" : 1377776794260,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "",
-                "status" : "Healthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "28933428",
-                "used" : "2749124",
-                "percent" : "9%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776824420,
-        "last_registration_time" : 1377605538944,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "apspal44-86",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-86/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "apspal44-86"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-86/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "apspal44-86"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-86/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "apspal44-86"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-87",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "28929828",
-            "used" : "2752724",
-            "percent" : "9%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525408",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525408",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "406328",
-            "used" : "63916",
-            "percent" : "14%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020784",
-            "used" : "71252",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547328120",
-            "used" : "202424",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547328140",
-            "used" : "202404",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          },
-          {
-            "available" : "547328140",
-            "used" : "202404",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/8"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/9"
-          },
-          {
-            "available" : "547328180",
-            "used" : "202364",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/10"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "apspal44-87",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.87",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.7-4.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.7-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776810878,
-            "serverTimeStampAtReporting" : 1377776817394,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "",
-                "status" : "Healthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "28755596",
-                "used" : "2926956",
-                "percent" : "10%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776822507,
-        "last_registration_time" : 1377605546803,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "apspal44-87",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-87/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "apspal44-87"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-87/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "apspal44-87"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-87/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "apspal44-87"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-88",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "29129360",
-            "used" : "2553192",
-            "percent" : "9%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525408",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525408",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "406326",
-            "used" : "63918",
-            "percent" : "14%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020784",
-            "used" : "71252",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547326376",
-            "used" : "204168",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          },
-          {
-            "available" : "547328148",
-            "used" : "202396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/8"
-          },
-          {
-            "available" : "547328132",
-            "used" : "202412",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/9"
-          },
-          {
-            "available" : "547328180",
-            "used" : "202364",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/10"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "apspal44-88",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.88",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.7-4.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.7-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776719125,
-            "serverTimeStampAtReporting" : 1377776789671,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "",
-                "status" : "Healthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "28956352",
-                "used" : "2726200",
-                "percent" : "9%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776824963,
-        "last_registration_time" : 1377605567570,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "apspal44-88",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-88/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "apspal44-88"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-88/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "apspal44-88"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-88/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "apspal44-88"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-89",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "28992684",
-            "used" : "2689868",
-            "percent" : "9%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525536",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525536",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "433220",
-            "used" : "37024",
-            "percent" : "8%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020784",
-            "used" : "71252",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "1642393608",
-            "used" : "200952",
-            "percent" : "1%",
-            "size" : "1730498864",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "apspal44-89",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.89",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.7-4.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.7-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776776207,
-            "serverTimeStampAtReporting" : 1377776772400,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "",
-                "status" : "Healthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "28894896",
-                "used" : "2787656",
-                "percent" : "9%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776822671,
-        "last_registration_time" : 1377605539706,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "apspal44-89",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-89/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "apspal44-89"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-89/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "apspal44-89"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/apspal44-89/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "apspal44-89"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01hn01",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "26779276",
-            "used" : "4903276",
-            "percent" : "16%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525536",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525536",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "433212",
-            "used" : "37032",
-            "percent" : "8%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "2974540",
-            "used" : "117496",
-            "percent" : "4%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547314272",
-            "used" : "216272",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547319952",
-            "used" : "210592",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547328020",
-            "used" : "202524",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547328020",
-            "used" : "202524",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547328020",
-            "used" : "202524",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547328020",
-            "used" : "202524",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547328020",
-            "used" : "202524",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          },
-          {
-            "available" : "547328020",
-            "used" : "202524",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/8"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "r01hn01",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.92",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.6-3.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.2.5-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [
-              {
-                "user" : "mapred",
-                "pid" : 22956,
-                "command" : "/usr/jdk/jdk1.6.0_31/bin/java -Dproc_historyserver -Xmx1024m -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Djava.net.preferIPv4Stack=true -Dhadoop.log.dir=/var/log/hadoop/mapred -Dhadoop.log.file=hadoop-mapred-historyserver-r01hn01.log -Dhadoop.home.dir=/usr/lib/hadoop/libexec/.. -Dhadoop.id.str=mapred -Dhadoop.root.logger=INFO,DRFA -Dhadoop.security.logger=INFO,NullAppender -Djava.library.path=/usr/lib/hadoop/libexec/../lib/native/Linux-amd64-64 -Dhadoop.policy.file=hadoop-policy.xml -classpath /etc/hadoop/conf:/usr/jdk/jdk1.6.0_31/lib/tools.jar:/usr/lib/hadoop/libexec/..:/usr/lib/hadoop/libexec/../hadoop-core-1.2.0.1.3.0.0-107.jar:/usr/lib/hadoop/libexec/../lib/asm-3.2.jar:/usr/lib/hadoop/libexec/../lib/aspectjrt-1.6.11.jar:/usr/lib/hadoop/libexec/../lib/aspectjtools-1.6.11.jar:/usr/lib/hadoop/libexec/../lib/commons-beanutils-1.7.0.jar:/usr/lib/hadoop/libexec/../lib/commons-beanutils-core-1.8.0.jar:/usr/lib/hadoop/libexec/../lib/comm
 ons-cli-1.2.jar:/usr/lib/hadoop/libexec/../lib/commons-codec-1.4.jar:/usr/lib/hadoop/libexec/../lib/commons-collections-3.2.1.jar:/usr/lib/hadoop/libexec/../lib/commons-configuration-1.6.jar:/usr/lib/hadoop/libexec/../lib/commons-daemon-1.0.1.jar:/usr/lib/hadoop/libexec/../lib/commons-digester-1.8.jar:/usr/lib/hadoop/libexec/../lib/commons-el-1.0.jar:/usr/lib/hadoop/libexec/../lib/commons-httpclient-3.0.1.jar:/usr/lib/hadoop/libexec/../lib/commons-io-2.1.jar:/usr/lib/hadoop/libexec/../lib/commons-lang-2.4.jar:/usr/lib/hadoop/libexec/../lib/commons-logging-1.1.1.jar:/usr/lib/hadoop/libexec/../lib/commons-logging-api-1.0.4.jar:/usr/lib/hadoop/libexec/../lib/commons-math-2.1.jar:/usr/lib/hadoop/libexec/../lib/commons-net-3.1.jar:/usr/lib/hadoop/libexec/../lib/core-3.1.1.jar:/usr/lib/hadoop/libexec/../lib/guava-11.0.2.jar:/usr/lib/hadoop/libexec/../lib/hadoop-capacity-scheduler-1.2.0.1.3.0.0-107.jar:/usr/lib/hadoop/libexec/../lib/hadoop-fairscheduler-1.2.0.1.3.0.0-107.jar:/usr/lib/hadoo
 p/libexec/../lib/hadoop-lzo-0.5.0.jar:/usr/lib/hadoop/libexec/../lib/hadoop-thriftfs-1.2.0.1.3.0.0-107.jar:/usr/lib/hadoop/libexec/../lib/hadoop-tools.jar:/usr/lib/hadoop/libexec/../lib/hsqldb-1.8.0.10.jar:/usr/lib/hadoop/libexec/../lib/jackson-core-asl-1.8.8.jar:/usr/lib/hadoop/libexec/../lib/jackson-mapper-asl-1.8.8.jar:/usr/lib/hadoop/libexec/../lib/jasper-compiler-5.5.12.jar:/usr/lib/hadoop/libexec/../lib/jasper-runtime-5.5.12.jar:/usr/lib/hadoop/libexec/../lib/jdeb-0.8.jar:/usr/lib/hadoop/libexec/../lib/jersey-core-1.8.jar:/usr/lib/hadoop/libexec/../lib/jersey-json-1.8.jar:/usr/lib/hadoop/libexec/../lib/jersey-server-1.8.jar:/usr/lib/hadoop/libexec/../lib/jets3t-0.6.1.jar:/usr/lib/hadoop/libexec/../lib/jetty-6.1.26.jar:/usr/lib/hadoop/libexec/../lib/jetty-util-6.1.26.jar:/usr/lib/hadoop/libexec/../lib/jsch-0.1.42.jar:/usr/lib/hadoop/libexec/../lib/junit-4.5.jar:/usr/lib/hadoop/libexec/../lib/kfs-0.2.2.jar:/usr/lib/hadoop/libexec/../lib/log4j-1.2.15.jar:/usr/lib/hadoop/libexec/.
 ./lib/mockito-all-1.8.5.jar:/usr/lib/hadoop/libexec/../lib/netty-3.6.2.Final.jar:/usr/lib/hadoop/libexec/../lib/oro-2.0.8.jar:/usr/lib/hadoop/libexec/../lib/servlet-api-2.5-20081211.jar:/usr/lib/hadoop/libexec/../lib/slf4j-api-1.4.3.jar:/usr/lib/hadoop/libexec/../lib/slf4j-log4j12-1.4.3.jar:/usr/lib/hadoop/libexec/../lib/xmlenc-0.52.jar:/usr/lib/hadoop/libexec/../lib/jsp-2.1/jsp-2.1.jar:/usr/lib/hadoop/libexec/../lib/jsp-2.1/jsp-api-2.1.jar::/usr/share/java/mysql-connector-java-5.1.12.jar:/usr/share/java/mysql-connector-java.jar:/usr/lib/hadoop-mapreduce/*:/usr/share/java/mysql-connector-java-5.1.12.jar:/usr/share/java/mysql-connector-java.jar:/usr/lib/hadoop-mapreduce/*:/usr/share/java/mysql-connector-java-5.1.12.jar:/usr/share/java/mysql-connector-java.jar:/usr/lib/hadoop-mapreduce/* org.apache.hadoop.mapred.JobHistoryServer",
-                "hadoop" : true
-              }
-            ],
-            "agentTimeStampAtReporting" : 1377776790580,
-            "serverTimeStampAtReporting" : 1377776775186,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "ntpd is stopped\n",
-                "status" : "Unhealthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "27959172",
-                "used" : "3723380",
-                "percent" : "12%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776825452,
-        "last_registration_time" : 1377605566170,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "r01hn01",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01hn01/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "r01hn01"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01hn01/host_components/JOBTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "JOBTRACKER",
-            "host_name" : "r01hn01"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01hn01/host_components/SECONDARY_NAMENODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "SECONDARY_NAMENODE",
-            "host_name" : "r01hn01"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01mgt",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "3462896",
-            "used" : "28219656",
-            "percent" : "90%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525536",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525536",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "433231",
-            "used" : "37013",
-            "percent" : "8%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "2923240",
-            "used" : "168796",
-            "percent" : "6%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547325060",
-            "used" : "205484",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547327908",
-            "used" : "202636",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547327908",
-            "used" : "202636",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547327908",
-            "used" : "202636",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "r01mgt",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.94",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : true,
-              "version" : "nagios-3.5.0-99.x86_64"
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : false
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : true,
-              "version" : "hive-0.11.0.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.6-3.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.5.17-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776811045,
-            "serverTimeStampAtReporting" : 1377776811086,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "ntpd is stopped\n",
-                "status" : "Unhealthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "1043316",
-                "used" : "30639236",
-                "percent" : "97%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776826253,
-        "last_registration_time" : 1377605544120,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "r01mgt",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01mgt/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "r01mgt"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01mgt/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "r01mgt"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01mgt/host_components/HDFS_CLIENT",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "HDFS_CLIENT",
-            "host_name" : "r01mgt"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01mgt/host_components/MAPREDUCE_CLIENT",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "MAPREDUCE_CLIENT",
-            "host_name" : "r01mgt"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01mgt/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "r01mgt"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn01",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "25938900",
-            "used" : "5743652",
-            "percent" : "19%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525536",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525536",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "433221",
-            "used" : "37023",
-            "percent" : "8%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020752",
-            "used" : "71284",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547125892",
-            "used" : "404652",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547305068",
-            "used" : "225476",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547325924",
-            "used" : "204620",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547320928",
-            "used" : "209616",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547315544",
-            "used" : "215000",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547327008",
-            "used" : "203536",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547310644",
-            "used" : "219900",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          },
-          {
-            "available" : "547320544",
-            "used" : "210000",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/8"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "r01wn01",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.95",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : true,
-              "version" : "nagios-3.5.0-99.x86_64"
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : false
-            },
-            {
-              "name" : "oozie",
-              "installed" : true,
-              "version" : "oozie-3.3.2.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : true,
-              "version" : "hive-0.11.0.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.6-3.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.6-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776815389,
-            "serverTimeStampAtReporting" : 1377776801984,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "ntpd is stopped\n",
-                "status" : "Unhealthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "25032456",
-                "used" : "6650096",
-                "percent" : "21%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776827188,
-        "last_registration_time" : 1377605551901,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "r01wn01",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn01/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "r01wn01"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn01/host_components/GANGLIA_SERVER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_SERVER",
-            "host_name" : "r01wn01"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn01/host_components/MAPREDUCE_CLIENT",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "MAPREDUCE_CLIENT",
-            "host_name" : "r01wn01"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn01/host_components/NAGIOS_SERVER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "NAGIOS_SERVER",
-            "host_name" : "r01wn01"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn01/host_components/NAMENODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "NAMENODE",
-            "host_name" : "r01wn01"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn02",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "26027972",
-            "used" : "5654580",
-            "percent" : "18%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525536",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525536",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "433238",
-            "used" : "37006",
-            "percent" : "8%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020756",
-            "used" : "71280",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547315252",
-            "used" : "215292",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547299148",
-            "used" : "231396",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547326080",
-            "used" : "204464",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547326828",
-            "used" : "203716",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547315560",
-            "used" : "214984",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547326904",
-            "used" : "203640",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547310628",
-            "used" : "219916",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          },
-          {
-            "available" : "547320536",
-            "used" : "210008",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/8"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "r01wn02",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.96",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : true,
-              "version" : "sqoop-1.4.3.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "pig",
-              "installed" : true,
-              "version" : "pig-0.11.1.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : true,
-              "version" : "hive-0.11.0.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.6-3.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.6-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776818663,
-            "serverTimeStampAtReporting" : 1377776826586,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "ntpd is stopped\n",
-                "status" : "Unhealthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "25364564",
-                "used" : "6317988",
-                "percent" : "20%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776826586,
-        "last_registration_time" : 1377605550553,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "r01wn02",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn02/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "r01wn02"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn02/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "r01wn02"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn02/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "r01wn02"
-          }
-        }
-      ]
-    },
-    {
-      "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn03",
-      "Hosts" : {
-        "cluster_name" : "test6",
-        "cpu_count" : 24,
-        "disk_info" : [
-          {
-            "available" : "25981980",
-            "used" : "5700572",
-            "percent" : "18%",
-            "size" : "33378088",
-            "type" : "ext4",
-            "mountpoint" : "/"
-          },
-          {
-            "available" : "49525536",
-            "used" : "0",
-            "percent" : "0%",
-            "size" : "49525536",
-            "type" : "tmpfs",
-            "mountpoint" : "/dev/shm"
-          },
-          {
-            "available" : "433224",
-            "used" : "37020",
-            "percent" : "8%",
-            "size" : "495844",
-            "type" : "ext4",
-            "mountpoint" : "/boot"
-          },
-          {
-            "available" : "3020752",
-            "used" : "71284",
-            "percent" : "3%",
-            "size" : "3257512",
-            "type" : "ext4",
-            "mountpoint" : "/home"
-          },
-          {
-            "available" : "547312784",
-            "used" : "217760",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/1"
-          },
-          {
-            "available" : "547305232",
-            "used" : "225312",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/2"
-          },
-          {
-            "available" : "547320240",
-            "used" : "210304",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/3"
-          },
-          {
-            "available" : "547327004",
-            "used" : "203540",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/4"
-          },
-          {
-            "available" : "547315712",
-            "used" : "214832",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/5"
-          },
-          {
-            "available" : "547327048",
-            "used" : "203496",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/6"
-          },
-          {
-            "available" : "547310796",
-            "used" : "219748",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/7"
-          },
-          {
-            "available" : "547320688",
-            "used" : "209856",
-            "percent" : "1%",
-            "size" : "576831992",
-            "type" : "ext4",
-            "mountpoint" : "/data/8"
-          }
-        ],
-        "host_health_report" : "",
-        "host_name" : "r01wn03",
-        "host_state" : "HEALTHY",
-        "host_status" : "HEALTHY",
-        "ip" : "10.104.44.97",
-        "last_agent_env" : {
-          "stackFoldersAndFiles" : [ ],
-          "rpms" : [
-            {
-              "name" : "nagios",
-              "installed" : false
-            },
-            {
-              "name" : "ganglia",
-              "installed" : false
-            },
-            {
-              "name" : "hadoop",
-              "installed" : true,
-              "version" : "hadoop-1.2.0.1.3.0.0-107.el6.x86_64"
-            },
-            {
-              "name" : "hadoop-lzo",
-              "installed" : true,
-              "version" : "hadoop-lzo-0.5.0-1.x86_64"
-            },
-            {
-              "name" : "hbase",
-              "installed" : true,
-              "version" : "hbase-0.94.6.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "oozie",
-              "installed" : false
-            },
-            {
-              "name" : "sqoop",
-              "installed" : false
-            },
-            {
-              "name" : "pig",
-              "installed" : false
-            },
-            {
-              "name" : "zookeeper",
-              "installed" : true,
-              "version" : "zookeeper-3.4.5.1.3.0.0-107.el6.noarch"
-            },
-            {
-              "name" : "hive",
-              "installed" : false
-            },
-            {
-              "name" : "libconfuse",
-              "installed" : true,
-              "version" : "libconfuse-2.6-3.el6.x86_64"
-            },
-            {
-              "name" : "ambari-log4j",
-              "installed" : true,
-              "version" : "ambari-log4j-1.2.3.6-1.noarch"
-            }
-          ],
-          "alternatives" : [ ],
-          "existingUsers" : [ ],
-          "existingRepos" : [
-            "unable_to_determine"
-          ],
-          "installedPackages" : [ ],
-          "hostHealth" : {
-            "activeJavaProcs" : [ ],
-            "agentTimeStampAtReporting" : 1377776855859,
-            "serverTimeStampAtReporting" : 1377776806744,
-            "liveServices" : [
-              {
-                "name" : "ntpd",
-                "desc" : "ntpd is stopped\n",
-                "status" : "Unhealthy"
-              }
-            ],
-            "diskStatus" : [
-              {
-                "available" : "25863316",
-                "used" : "5819236",
-                "percent" : "19%",
-                "size" : "33378088",
-                "type" : "ext4",
-                "mountpoint" : "/"
-              }
-            ]
-          }
-        },
-        "last_heartbeat_time" : 1377776821908,
-        "last_registration_time" : 1377605554784,
-        "os_arch" : "x86_64",
-        "os_type" : "redhat6",
-        "ph_cpu_count" : 2,
-        "public_host_name" : "r01wn03",
-        "rack_info" : "/default-rack",
-        "total_mem" : 99048488,
-        "desired_configs" : { }
-      },
-      "host_components" : [
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn03/host_components/DATANODE",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "DATANODE",
-            "host_name" : "r01wn03"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn03/host_components/GANGLIA_MONITOR",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "GANGLIA_MONITOR",
-            "host_name" : "r01wn03"
-          }
-        },
-        {
-          "href" : "http://localhost:8080/api/v1/clusters/test6/hosts/r01wn03/host_components/TASKTRACKER",
-          "HostRoles" : {
-            "cluster_name" : "test6",
-            "component_name" : "TASKTRACKER",
-            "host_name" : "r01wn03"
-          }
-        }
-      ]
-    }
-  ]
-}
\ No newline at end of file


Mime
View raw message