summaryrefslogtreecommitdiff
path: root/ambari-web
diff options
context:
space:
mode:
authorYusaku Sako <yusaku@apache.org>2012-12-09 14:58:46 +0000
committerYusaku Sako <yusaku@apache.org>2012-12-09 14:58:46 +0000
commit7c45596821f21f774bc3962a167ee4606062d79e (patch)
tree35a0101cb6463a6c6a527691e539b835f8ce2919 /ambari-web
parent26429c08a436ed8561e0e770bd9109352dcfbc29 (diff)
AMBARI-1045. Service summary sections have incorrect values displayed. (Srimanth Gunturi via yusaku)
git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/branches/AMBARI-666@1418994 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'ambari-web')
-rw-r--r--ambari-web/app/assets/data/hosts/hosts70.json712
-rw-r--r--ambari-web/app/mappers/service_mapper.js2
-rw-r--r--ambari-web/app/messages.js5
-rw-r--r--ambari-web/app/templates/main/dashboard/service/hdfs.hbs12
-rw-r--r--ambari-web/app/views/main/dashboard/service/hbase.js32
-rw-r--r--ambari-web/app/views/main/dashboard/service/hdfs.js82
6 files changed, 775 insertions, 70 deletions
diff --git a/ambari-web/app/assets/data/hosts/hosts70.json b/ambari-web/app/assets/data/hosts/hosts70.json
index 28bfa6e974..8342b24ee1 100644
--- a/ambari-web/app/assets/data/hosts/hosts70.json
+++ b/ambari-web/app/assets/data/hosts/hosts70.json
@@ -489,7 +489,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev18.hortonworks.com",
+ "host_name" : "dev19.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -506,7 +506,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev19.hortonworks.com",
+ "host_name" : "dev20.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -523,7 +523,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev20.hortonworks.com",
+ "host_name" : "dev21.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -540,7 +540,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev21.hortonworks.com",
+ "host_name" : "dev22.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -557,7 +557,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev22.hortonworks.com",
+ "host_name" : "dev23.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -574,7 +574,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev23.hortonworks.com",
+ "host_name" : "dev24.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -591,7 +591,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev24.hortonworks.com",
+ "host_name" : "dev25.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -608,7 +608,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev25.hortonworks.com",
+ "host_name" : "dev26.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -625,7 +625,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev26.hortonworks.com",
+ "host_name" : "dev27.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -642,7 +642,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev27.hortonworks.com",
+ "host_name" : "dev28.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -659,7 +659,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev28.hortonworks.com",
+ "host_name" : "dev29.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -676,7 +676,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev29.hortonworks.com",
+ "host_name" : "dev30.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -693,7 +693,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev30.hortonworks.com",
+ "host_name" : "dev31.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -710,7 +710,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev31.hortonworks.com",
+ "host_name" : "dev32.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -727,7 +727,7 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev32.hortonworks.com",
+ "host_name" : "dev33.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
@@ -744,7 +744,687 @@
"rack_info" : "/default-rack",
"total_mem" : 3082813,
"os_arch" : "x86_64",
- "host_name" : "dev33.hortonworks.com",
+ "host_name" : "dev34.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev35.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev36.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev37.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev38.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev39.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev40.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev41.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev42.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev43.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev44.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev45.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev46.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev47.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev48.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev49.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev50.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev51.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev52.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev53.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev54.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev55.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev56.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev57.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev58.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev59.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev60.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev61.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev62.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev63.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev64.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev65.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev66.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev67.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev68.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev69.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev70.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev71.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev72.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev73.hortonworks.com",
+ "disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
+ "last_heartbeat_time" : 1352461939047,
+ "os_type" : "centos6",
+ "ip" : "10.0.2.15"
+ },
+ "host_components" : []
+ },
+ {
+ "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev11.hortonworks.com",
+ "Hosts" : {
+ "cpu_count" : 1,
+ "cluster_name" : "mycluster",
+ "last_registration_time" : 1352386560520,
+ "rack_info" : "/default-rack",
+ "total_mem" : 3082813,
+ "os_arch" : "x86_64",
+ "host_name" : "dev74.hortonworks.com",
"disk_info" : "[{\"available\":\"47295056\",\"mountpoint\":\"/\",\"used\":\"3786948\",\"percent\":\"8%\",\"size\":\"51606140\",\"type\":\"ext4\"},{\"available\":\"1542800\",\"mountpoint\":\"/dev/shm\",\"used\":\"248\",\"percent\":\"1%\",\"size\":\"1543048\",\"type\":\"tmpfs\"},{\"available\":\"432210\",\"mountpoint\":\"/boot\",\"used\":\"38034\",\"percent\":\"9%\",\"size\":\"495844\",\"type\":\"ext4\"},{\"available\":\"44459872\",\"mountpoint\":\"/home\",\"used\":\"184220\",\"percent\":\"1%\",\"size\":\"47033288\",\"type\":\"ext4\"},{\"available\":\"902105496\",\"mountpoint\":\"/media/sf_ambari\",\"used\":\"74551908\",\"percent\":\"8%\",\"size\":\"976657404\",\"type\":\"vboxsf\"}]",
"last_heartbeat_time" : 1352461939047,
"os_type" : "centos6",
diff --git a/ambari-web/app/mappers/service_mapper.js b/ambari-web/app/mappers/service_mapper.js
index 7a8c42c543..8bef1e1f75 100644
--- a/ambari-web/app/mappers/service_mapper.js
+++ b/ambari-web/app/mappers/service_mapper.js
@@ -219,7 +219,7 @@ App.servicesMapper = App.QuickDataMapper.create({
finalJson = this.mapreduceMapper(service);
App.MapReduceService.find().map(function (e) {
e.set("version", finalJson.version);
- e.set("jobTrackerStartTime", 1111111);
+ e.set("jobTrackerStartTime", finalJson.job_tracker_start_time);
e.set("jobTrackerHeapUsed", finalJson.job_tracker_heap_used);
e.set("jobTrackerHeapMax", finalJson.job_tracker_heap_max);
e.set("mapSlots", finalJson.map_slots);
diff --git a/ambari-web/app/messages.js b/ambari-web/app/messages.js
index dbd61c5a34..b145e3b58f 100644
--- a/ambari-web/app/messages.js
+++ b/ambari-web/app/messages.js
@@ -208,7 +208,11 @@ Em.I18n.translations = {
'services.service.summary.nameNodeUptime':'NameNode Uptime',
'services.service.summary.nameNodeHeap':'NameNode Heap',
'services.service.summary.pendingUpgradeStatus':'Upgrade Status',
+ 'services.service.summary.pendingUpgradeStatus.pending':'Pending upgrade',
+ 'services.service.summary.pendingUpgradeStatus.notPending':'No pending upgrade',
'services.service.summary.safeModeStatus':'Safe Mode Status',
+ 'services.service.summary.safeModeStatus.inSafeMode':'In safe mode',
+ 'services.service.summary.safeModeStatus.notInSafeMode':'Not in safe mode',
'services.service.summary.dataNodes':'DataNodes',
'services.service.summary.diskCapacity':'HDFS Disk Capacity',
'services.service.summary.blocksTotal':'Blocks (total)',
@@ -239,6 +243,7 @@ Em.I18n.translations = {
'services.service.actions.run.compaction':'Run Compaction',
'services.service.actions.run.smoke':'Run Smoke Test',
'services.service.actions.maintenance':'Maintenance',
+ 'services.service.summary.unknown':'unknown',
'services.add.header':'Add Service Wizard',
diff --git a/ambari-web/app/templates/main/dashboard/service/hdfs.hbs b/ambari-web/app/templates/main/dashboard/service/hdfs.hbs
index c6008cc51f..6a058b2412 100644
--- a/ambari-web/app/templates/main/dashboard/service/hdfs.hbs
+++ b/ambari-web/app/templates/main/dashboard/service/hdfs.hbs
@@ -115,16 +115,22 @@
<td>{{t services.service.summary.pendingUpgradeStatus}}</td>
<td>
{{#if view.service.upgradeStatus}}
- <div>Pending upgrade</div>
+ {{t services.service.summary.pendingUpgradeStatus.notPending}}
{{else}}
- <div>No pending upgrade</div>
+ {{t services.service.summary.pendingUpgradeStatus.pending}}
{{/if}}
</td>
</tr>
<!-- Safe Mode Status -->
<tr>
<td>{{t services.service.summary.safeModeStatus}}</td>
- <td>{{view.service.safeModeStatus}}</td>
+ <td>
+ {{#if view.isSafeMode}}
+ {{t services.service.summary.safeModeStatus.inSafeMode}}
+ {{else}}
+ {{t services.service.summary.safeModeStatus.notInSafeMode}}
+ {{/if}}
+ </td>
</tr>
{{#unless view.showOnlyRows}}
diff --git a/ambari-web/app/views/main/dashboard/service/hbase.js b/ambari-web/app/views/main/dashboard/service/hbase.js
index 7083e76acd..1afc4f4e3d 100644
--- a/ambari-web/app/views/main/dashboard/service/hbase.js
+++ b/ambari-web/app/views/main/dashboard/service/hbase.js
@@ -25,13 +25,17 @@ App.MainDashboardServiceHbaseView = App.MainDashboardServiceView.extend({
var heapUsed = this.get('service').get('heapMemoryUsed');
var heapMax = this.get('service').get('heapMemoryMax');
var percent = heapMax > 0 ? 100 * heapUsed / heapMax : 0;
- var heapString = heapUsed>0 ? heapUsed.bytesToSize(1, "parseFloat") : 0;
- var heapMaxString = heapMax>0 ? heapMax.bytesToSize(1, "parseFloat") : 0;
+ var heapString = heapUsed > 0 ? heapUsed.bytesToSize(1, "parseFloat") : 0;
+ var heapMaxString = heapMax > 0 ? heapMax.bytesToSize(1, "parseFloat") : 0;
return this.t('dashboard.services.hbase.masterServerHeap.summary').format(heapString, heapMaxString, percent.toFixed(1));
}.property('service.heapMemoryUsed', 'service.heapMemoryMax'),
summaryHeader: function () {
- return this.t("dashboard.services.hbase.summary").format(this.get('service.regionServers.length'), this.get('service.averageLoad'));
+ var avgLoad = this.get('service.averageLoad');
+ if (avgLoad == null) {
+ avgLoad = this.t("services.service.summary.unknown");
+ }
+ return this.t("dashboard.services.hbase.summary").format(this.get('service.regionServers.length'), avgLoad);
}.property('service.regionServers', 'service.averageLoad'),
hbaseMasterWebUrl: function () {
@@ -39,19 +43,29 @@ App.MainDashboardServiceHbaseView = App.MainDashboardServiceView.extend({
}.property('service.master'),
averageLoad: function () {
- return this.t('dashboard.services.hbase.averageLoadPerServer').format(this.get('service.averageLoad'));
+ var avgLoad = this.get('service.averageLoad');
+ if (avgLoad == null) {
+ avgLoad = this.t('services.service.summary.unknown');
+ }
+ return this.t('dashboard.services.hbase.averageLoadPerServer').format(avgLoad);
}.property("service.averageLoad"),
masterStartedTime: function () {
var uptime = this.get('service').get('masterStartTime');
- var formatted = (new Date().getTime() - uptime).toDaysHoursMinutes();
- return this.t('dashboard.services.uptime').format(formatted.d, formatted.h, formatted.m);
+ if (uptime && uptime > 0) {
+ var formatted = (new Date().getTime() - uptime).toDaysHoursMinutes();
+ return this.t('dashboard.services.uptime').format(formatted.d, formatted.h, formatted.m);
+ }
+ return this.t('services.service.summary.unknown');
}.property("service.masterStartTime"),
masterActivatedTime: function () {
var uptime = this.get('service').get('masterActiveTime');
- var formatted = (new Date().getTime() - uptime).toDaysHoursMinutes();
- return this.t('dashboard.services.uptime').format(formatted.d, formatted.h, formatted.m);
+ if (uptime && uptime > 0) {
+ var formatted = (new Date().getTime() - uptime).toDaysHoursMinutes();
+ return this.t('dashboard.services.uptime').format(formatted.d, formatted.h, formatted.m);
+ }
+ return this.t('services.service.summary.unknown');
}.property("service.masterActiveTime"),
regionServerComponent: function () {
@@ -60,7 +74,7 @@ App.MainDashboardServiceHbaseView = App.MainDashboardServiceView.extend({
isCollapsed: false,
- toggleInfoView: function() {
+ toggleInfoView: function () {
$('#hbase-info').toggle('blind', 200);
this.set('isCollapsed', !this.isCollapsed);
}
diff --git a/ambari-web/app/views/main/dashboard/service/hdfs.js b/ambari-web/app/views/main/dashboard/service/hdfs.js
index b0f0fa277b..9676279b2c 100644
--- a/ambari-web/app/views/main/dashboard/service/hdfs.js
+++ b/ambari-web/app/views/main/dashboard/service/hdfs.js
@@ -1,88 +1,88 @@
/**
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements. See the NOTICE file distributed with this
+ * work for additional information regarding copyright ownership. The ASF
+ * licenses this file to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
* Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
+ * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
+ * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+ * License for the specific language governing permissions and limitations under
+ * the License.
*/
var App = require('app');
App.MainDashboardServiceHdfsView = App.MainDashboardServiceView.extend({
- templateName:require('templates/main/dashboard/service/hdfs'),
- serviceName:'HDFS',
- Chart:App.ChartPieView.extend({
+ templateName: require('templates/main/dashboard/service/hdfs'),
+ serviceName: 'HDFS',
+ Chart: App.ChartPieView.extend({
service: null,
- data:function () {
+ data: function () {
return [ this.get('service.capacityUsed'), this.get('service.capacityTotal') ];
}.property('service.capacityUsed', 'service.capacityTotal')
}),
- nodeUptime:function () {
+ nodeUptime: function () {
var uptime = this.get('service').get('nameNodeStartTime');
var formatted = (new Date().getTime() - uptime).toDaysHoursMinutes();
return this.t('dashboard.services.uptime').format(formatted.d, formatted.h, formatted.m);
}.property("service.nameNodeStartTime"),
-
- nodeWebUrl: function(){
- return "http://"+this.get('service').get('nameNode').get('publicHostName')+":50070";
+
+ nodeWebUrl: function () {
+ return "http://" + this.get('service').get('nameNode').get('publicHostName') + ":50070";
}.property('service.nameNode'),
- nodeHeap:function () {
- var memUsed = this.get('service').get('jvmMemoryHeapUsed')*1000000;
- var memCommitted = this.get('service').get('jvmMemoryHeapCommitted')*1000000;
- var percent = memCommitted>0 ? ((100*memUsed)/memCommitted) : 0;
- return this.t('dashboard.services.hdfs.nodes.heapUsed').format(
- memUsed.bytesToSize(1, 'parseFloat'),
- memCommitted.bytesToSize(1, 'parseFloat'),
- percent.toFixed(1));
+ nodeHeap: function () {
+ var memUsed = this.get('service').get('jvmMemoryHeapUsed') * 1000000;
+ var memCommitted = this.get('service').get('jvmMemoryHeapCommitted') * 1000000;
+ var percent = memCommitted > 0 ? ((100 * memUsed) / memCommitted) : 0;
+ return this.t('dashboard.services.hdfs.nodes.heapUsed').format(memUsed.bytesToSize(1, 'parseFloat'), memCommitted.bytesToSize(1, 'parseFloat'), percent.toFixed(1));
}.property('service.jvmMemoryHeapUsed', 'service.jvmMemoryHeapCommitted'),
- summaryHeader:function () {
+ summaryHeader: function () {
var text = this.t("dashboard.services.hdfs.summary");
var svc = this.get('service');
var liveCount = svc.get('liveDataNodes').get('length');
var totalCount = svc.get('dataNodes').get('length');
var total = svc.get('capacityTotal') + 0;
var used = svc.get('capacityUsed') + 0;
- var percentRemaining = (100-Math.round((used*100)/total)).toFixed(1);
- if(percentRemaining == "NaN")
- {
+ var percentRemaining = (100 - Math.round((used * 100) / total)).toFixed(1);
+ if (percentRemaining == "NaN") {
percentRemaining = "n/a ";
}
return text.format(liveCount, totalCount, percentRemaining);
}.property('service.liveDataNodes', 'service.dataNodes', 'service.capacityUsed', 'service.capacityTotal'),
- capacity:function () {
+ capacity: function () {
var text = this.t("dashboard.services.hdfs.capacityUsed");
var total = this.get('service').get('capacityTotal') + 0;
var used = this.get('service').get('capacityUsed') + 0;
- var percent = Math.round((used*100)/total).toFixed(1);
- if(percent == "NaN"){
+ var percent = Math.round((used * 100) / total).toFixed(1);
+ if (percent == "NaN") {
percent = "n/a ";
}
return text.format(used.bytesToSize(1), total.bytesToSize(1), percent);
}.property('service.capacityUsed', 'service.capacityTotal'),
-
- dataNodeComponent: function(){
+
+ dataNodeComponent: function () {
return App.Component.find().findProperty('componentName', 'DATANODE');
}.property('+'),
isCollapsed: false,
- toggleInfoView: function() {
+ toggleInfoView: function () {
$('#hdfs-info').toggle('blind', 200);
this.set('isCollapsed', !this.isCollapsed);
- }
+ },
+
+ isSafeMode: function () {
+ var safeMode = this.get('service.safeModeStatus');
+ return safeMode != null && safeMode.length > 0;
+ }.property('service.safeModeStatus')
}); \ No newline at end of file