clustermodel_get_cluster.json 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. {
  2. "href" : "http://localhost:8080/api/v1/clusters/test1",
  3. "Clusters" : {
  4. "cluster_name" : "test1",
  5. "cluster_id" : 1,
  6. "version" : "HDP-1.2.1"
  7. },
  8. "requests" : [ ],
  9. "services" : [
  10. {
  11. "href" : "http://localhost:8080/api/v1/clusters/test1/services/GANGLIA",
  12. "ServiceInfo" : {
  13. "cluster_name" : "test1",
  14. "service_name" : "GANGLIA"
  15. }
  16. },
  17. {
  18. "href" : "http://localhost:8080/api/v1/clusters/test1/services/MAPREDUCE",
  19. "ServiceInfo" : {
  20. "cluster_name" : "test1",
  21. "service_name" : "MAPREDUCE"
  22. }
  23. },
  24. {
  25. "href" : "http://localhost:8080/api/v1/clusters/test1/services/HDFS",
  26. "ServiceInfo" : {
  27. "cluster_name" : "test1",
  28. "service_name" : "HDFS"
  29. }
  30. }
  31. ],
  32. "hosts" : [
  33. {
  34. "href" : "http://localhost:8080/api/v1/clusters/test1/hosts/r01mgt",
  35. "Hosts" : {
  36. "cluster_name" : "test1",
  37. "host_name" : "r01mgt"
  38. }
  39. },
  40. {
  41. "href" : "http://localhost:8080/api/v1/clusters/test1/hosts/r01hn01",
  42. "Hosts" : {
  43. "cluster_name" : "test1",
  44. "host_name" : "r01hn01"
  45. }
  46. },
  47. {
  48. "href" : "http://localhost:8080/api/v1/clusters/test1/hosts/r01wn03",
  49. "Hosts" : {
  50. "cluster_name" : "test1",
  51. "host_name" : "r01wn03"
  52. }
  53. },
  54. {
  55. "href" : "http://localhost:8080/api/v1/clusters/test1/hosts/r01wn02",
  56. "Hosts" : {
  57. "cluster_name" : "test1",
  58. "host_name" : "r01wn02"
  59. }
  60. },
  61. {
  62. "href" : "http://localhost:8080/api/v1/clusters/test1/hosts/r01wn01",
  63. "Hosts" : {
  64. "cluster_name" : "test1",
  65. "host_name" : "r01wn01"
  66. }
  67. }
  68. ],
  69. "configurations" : [
  70. {
  71. "href" : "http://localhost:8080/api/v1/clusters/test1/configurations?type=mapred-site&tag=version1",
  72. "tag" : "version1",
  73. "type" : "mapred-site",
  74. "Config" : {
  75. "cluster_name" : "test1"
  76. }
  77. },
  78. {
  79. "href" : "http://localhost:8080/api/v1/clusters/test1/configurations?type=global&tag=version1",
  80. "tag" : "version1",
  81. "type" : "global",
  82. "Config" : {
  83. "cluster_name" : "test1"
  84. }
  85. },
  86. {
  87. "href" : "http://localhost:8080/api/v1/clusters/test1/configurations?type=hdfs-site&tag=version1",
  88. "tag" : "version1",
  89. "type" : "hdfs-site",
  90. "Config" : {
  91. "cluster_name" : "test1"
  92. }
  93. },
  94. {
  95. "href" : "http://localhost:8080/api/v1/clusters/test1/configurations?type=core-site&tag=version1",
  96. "tag" : "version1",
  97. "type" : "core-site",
  98. "Config" : {
  99. "cluster_name" : "test1"
  100. }
  101. }
  102. ]
  103. }