hosts.json 3.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. {
  2. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts?fields=*",
  3. "items" : [
  4. {
  5. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com",
  6. "Hosts" : {
  7. "cpu_count" : 1,
  8. "cluster_name" : "mycluster",
  9. "last_registration_time" : 1352386560520,
  10. "rack_info" : "/default-rack",
  11. "total_mem" : 3082813,
  12. "os_arch" : "x86_64",
  13. "host_name" : "dev.hortonworks.com",
  14. "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\"}]",
  15. "last_heartbeat_time" : 1352461939047,
  16. "os_type" : "centos6",
  17. "ip" : "10.0.2.15"
  18. },
  19. "host_components" : [
  20. {
  21. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/SECONDARY_NAMENODE",
  22. "HostRoles" : {
  23. "cluster_name" : "mycluster",
  24. "component_name" : "SECONDARY_NAMENODE",
  25. "host_name" : "dev.hortonworks.com"
  26. }
  27. },
  28. {
  29. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/JOBTRACKER",
  30. "HostRoles" : {
  31. "cluster_name" : "mycluster",
  32. "component_name" : "JOBTRACKER",
  33. "host_name" : "dev.hortonworks.com"
  34. }
  35. },
  36. {
  37. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/DATANODE",
  38. "HostRoles" : {
  39. "cluster_name" : "mycluster",
  40. "component_name" : "DATANODE",
  41. "host_name" : "dev.hortonworks.com"
  42. }
  43. },
  44. {
  45. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/HDFS_CLIENT",
  46. "HostRoles" : {
  47. "cluster_name" : "mycluster",
  48. "component_name" : "HDFS_CLIENT",
  49. "host_name" : "dev.hortonworks.com"
  50. }
  51. },
  52. {
  53. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/TASKTRACKER",
  54. "HostRoles" : {
  55. "cluster_name" : "mycluster",
  56. "component_name" : "TASKTRACKER",
  57. "host_name" : "dev.hortonworks.com"
  58. }
  59. },
  60. {
  61. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/NAMENODE",
  62. "HostRoles" : {
  63. "cluster_name" : "mycluster",
  64. "component_name" : "NAMENODE",
  65. "host_name" : "dev.hortonworks.com"
  66. }
  67. },
  68. {
  69. "href" : "http://dev.hortonworks.com:8080/api/clusters/mycluster/hosts/dev.hortonworks.com/host_components/MAPREDUCE_CLIENT",
  70. "HostRoles" : {
  71. "cluster_name" : "mycluster",
  72. "component_name" : "MAPREDUCE_CLIENT",
  73. "host_name" : "dev.hortonworks.com"
  74. }
  75. }
  76. ]
  77. }
  78. ]
  79. }