poll_2.json 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. {
  2. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1?fields=tasks/*",
  3. "Requests" : {
  4. "id" : 1,
  5. "cluster_name" : "mycluster"
  6. },
  7. "tasks" : [
  8. {
  9. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/4",
  10. "Tasks" : {
  11. "exit_code" : 999,
  12. "stdout" : "",
  13. "status" : "QUEUED",
  14. "stderr" : "",
  15. "host_name" : "host3",
  16. "id" : 4,
  17. "cluster_name" : "mycluster",
  18. "attempt_cnt" : 1,
  19. "request_id" : 1,
  20. "command" : "INSTALL",
  21. "role" : "SECONDARY_NAMENODE",
  22. "start_time" : 1352863664537,
  23. "stage_id" : 1
  24. }
  25. },
  26. {
  27. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/15",
  28. "Tasks" : {
  29. "exit_code" : 999,
  30. "stdout" : "",
  31. "status" : "QUEUED",
  32. "stderr" : "",
  33. "host_name" : "host2",
  34. "id" : 15,
  35. "cluster_name" : "mycluster",
  36. "attempt_cnt" : 1,
  37. "request_id" : 1,
  38. "command" : "INSTALL",
  39. "role" : "DATANODE",
  40. "start_time" : 1352863666842,
  41. "stage_id" : 1
  42. }
  43. },
  44. {
  45. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/7",
  46. "Tasks" : {
  47. "exit_code" : 999,
  48. "stdout" : "",
  49. "status" : "QUEUED",
  50. "stderr" : "",
  51. "host_name" : "host1",
  52. "id" : 7,
  53. "cluster_name" : "mycluster",
  54. "attempt_cnt" : 1,
  55. "request_id" : 1,
  56. "command" : "INSTALL",
  57. "role" : "TASKTRACKER",
  58. "start_time" : 1352863665177,
  59. "stage_id" : 1
  60. }
  61. },
  62. {
  63. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/14",
  64. "Tasks" : {
  65. "exit_code" : 999,
  66. "stdout" : "",
  67. "status" : "QUEUED",
  68. "stderr" : "",
  69. "host_name" : "host4",
  70. "id" : 14,
  71. "cluster_name" : "mycluster",
  72. "attempt_cnt" : 1,
  73. "request_id" : 1,
  74. "command" : "INSTALL",
  75. "role" : "TASKTRACKER",
  76. "start_time" : 1352863666672,
  77. "stage_id" : 1
  78. }
  79. },
  80. {
  81. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/21",
  82. "Tasks" : {
  83. "exit_code" : 999,
  84. "stdout" : "",
  85. "status" : "QUEUED",
  86. "stderr" : "",
  87. "host_name" : "host2",
  88. "id" : 21,
  89. "cluster_name" : "mycluster",
  90. "attempt_cnt" : 1,
  91. "request_id" : 1,
  92. "command" : "INSTALL",
  93. "role" : "SQOOP",
  94. "start_time" : 1352863667466,
  95. "stage_id" : 1
  96. }
  97. },
  98. {
  99. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/8",
  100. "Tasks" : {
  101. "exit_code" : 999,
  102. "stdout" : "",
  103. "status" : "QUEUED",
  104. "stderr" : "",
  105. "host_name" : "host5",
  106. "id" : 8,
  107. "cluster_name" : "mycluster",
  108. "attempt_cnt" : 1,
  109. "request_id" : 1,
  110. "command" : "INSTALL",
  111. "role" : "GANGLIA_MONITOR",
  112. "start_time" : 1352863665481,
  113. "stage_id" : 1
  114. }
  115. },
  116. {
  117. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/16",
  118. "Tasks" : {
  119. "exit_code" : 999,
  120. "stdout" : "",
  121. "status" : "QUEUED",
  122. "stderr" : "",
  123. "host_name" : "host2",
  124. "id" : 16,
  125. "cluster_name" : "mycluster",
  126. "attempt_cnt" : 1,
  127. "request_id" : 1,
  128. "command" : "INSTALL",
  129. "role" : "GANGLIA_MONITOR",
  130. "start_time" : 1352863666913,
  131. "stage_id" : 1
  132. }
  133. },
  134. {
  135. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/2",
  136. "Tasks" : {
  137. "exit_code" : 999,
  138. "stdout" : "",
  139. "status" : "QUEUED",
  140. "stderr" : "",
  141. "host_name" : "host3",
  142. "id" : 2,
  143. "cluster_name" : "mycluster",
  144. "attempt_cnt" : 1,
  145. "request_id" : 1,
  146. "command" : "INSTALL",
  147. "role" : "JOBTRACKER",
  148. "start_time" : 1352863664213,
  149. "stage_id" : 1
  150. }
  151. },
  152. {
  153. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/20",
  154. "Tasks" : {
  155. "exit_code" : 999,
  156. "stdout" : "",
  157. "status" : "QUEUED",
  158. "stderr" : "",
  159. "host_name" : "host2",
  160. "id" : 20,
  161. "cluster_name" : "mycluster",
  162. "attempt_cnt" : 1,
  163. "request_id" : 1,
  164. "command" : "INSTALL",
  165. "role" : "PIG",
  166. "start_time" : 1352863667299,
  167. "stage_id" : 1
  168. }
  169. },
  170. {
  171. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/11",
  172. "Tasks" : {
  173. "exit_code" : 999,
  174. "stdout" : "",
  175. "status" : "QUEUED",
  176. "stderr" : "",
  177. "host_name" : "host5",
  178. "id" : 11,
  179. "cluster_name" : "mycluster",
  180. "attempt_cnt" : 1,
  181. "request_id" : 1,
  182. "command" : "INSTALL",
  183. "role" : "NAMENODE",
  184. "start_time" : 1352863665939,
  185. "stage_id" : 1
  186. }
  187. },
  188. {
  189. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/3",
  190. "Tasks" : {
  191. "exit_code" : 999,
  192. "stdout" : "",
  193. "status" : "QUEUED",
  194. "stderr" : "",
  195. "host_name" : "host3",
  196. "id" : 3,
  197. "cluster_name" : "mycluster",
  198. "attempt_cnt" : 1,
  199. "request_id" : 1,
  200. "command" : "INSTALL",
  201. "role" : "OOZIE_SERVER",
  202. "start_time" : 1352863664455,
  203. "stage_id" : 1
  204. }
  205. },
  206. {
  207. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/12",
  208. "Tasks" : {
  209. "exit_code" : 999,
  210. "stdout" : "",
  211. "status" : "QUEUED",
  212. "stderr" : "",
  213. "host_name" : "host4",
  214. "id" : 12,
  215. "cluster_name" : "mycluster",
  216. "attempt_cnt" : 1,
  217. "request_id" : 1,
  218. "command" : "INSTALL",
  219. "role" : "DATANODE",
  220. "start_time" : 1352863666165,
  221. "stage_id" : 1
  222. }
  223. },
  224. {
  225. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/9",
  226. "Tasks" : {
  227. "exit_code" : 999,
  228. "stdout" : "",
  229. "status" : "QUEUED",
  230. "stderr" : "",
  231. "host_name" : "host5",
  232. "id" : 9,
  233. "cluster_name" : "mycluster",
  234. "attempt_cnt" : 1,
  235. "request_id" : 1,
  236. "command" : "INSTALL",
  237. "role" : "GANGLIA_SERVER",
  238. "start_time" : 1352863665690,
  239. "stage_id" : 1
  240. }
  241. },
  242. {
  243. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/6",
  244. "Tasks" : {
  245. "exit_code" : 999,
  246. "stdout" : "",
  247. "status" : "QUEUED",
  248. "stderr" : "",
  249. "host_name" : "host1",
  250. "id" : 6,
  251. "cluster_name" : "mycluster",
  252. "attempt_cnt" : 1,
  253. "request_id" : 1,
  254. "command" : "INSTALL",
  255. "role" : "GANGLIA_MONITOR",
  256. "start_time" : 1352863664901,
  257. "stage_id" : 1
  258. }
  259. },
  260. {
  261. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/17",
  262. "Tasks" : {
  263. "exit_code" : 999,
  264. "stdout" : "",
  265. "status" : "QUEUED",
  266. "stderr" : "",
  267. "host_name" : "host2",
  268. "id" : 17,
  269. "cluster_name" : "mycluster",
  270. "attempt_cnt" : 1,
  271. "request_id" : 1,
  272. "command" : "INSTALL",
  273. "role" : "HDFS_CLIENT",
  274. "start_time" : 1352863666987,
  275. "stage_id" : 1
  276. }
  277. },
  278. {
  279. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/18",
  280. "Tasks" : {
  281. "exit_code" : 999,
  282. "stdout" : "",
  283. "status" : "QUEUED",
  284. "stderr" : "",
  285. "host_name" : "host2",
  286. "id" : 18,
  287. "cluster_name" : "mycluster",
  288. "attempt_cnt" : 1,
  289. "request_id" : 1,
  290. "command" : "INSTALL",
  291. "role" : "MAPREDUCE_CLIENT",
  292. "start_time" : 1352863667058,
  293. "stage_id" : 1
  294. }
  295. },
  296. {
  297. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/19",
  298. "Tasks" : {
  299. "exit_code" : 999,
  300. "stdout" : "",
  301. "status" : "QUEUED",
  302. "stderr" : "",
  303. "host_name" : "host2",
  304. "id" : 19,
  305. "cluster_name" : "mycluster",
  306. "attempt_cnt" : 1,
  307. "request_id" : 1,
  308. "command" : "INSTALL",
  309. "role" : "OOZIE_CLIENT",
  310. "start_time" : 1352863667216,
  311. "stage_id" : 1
  312. }
  313. },
  314. {
  315. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/22",
  316. "Tasks" : {
  317. "exit_code" : 999,
  318. "stdout" : "",
  319. "status" : "QUEUED",
  320. "stderr" : "",
  321. "host_name" : "host2",
  322. "id" : 22,
  323. "cluster_name" : "mycluster",
  324. "attempt_cnt" : 1,
  325. "request_id" : 1,
  326. "command" : "INSTALL",
  327. "role" : "TASKTRACKER",
  328. "start_time" : 1352863667578,
  329. "stage_id" : 1
  330. }
  331. },
  332. {
  333. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/5",
  334. "Tasks" : {
  335. "exit_code" : 999,
  336. "stdout" : "",
  337. "status" : "QUEUED",
  338. "stderr" : "",
  339. "host_name" : "host1",
  340. "id" : 5,
  341. "cluster_name" : "mycluster",
  342. "attempt_cnt" : 1,
  343. "request_id" : 1,
  344. "command" : "INSTALL",
  345. "role" : "DATANODE",
  346. "start_time" : 1352863664723,
  347. "stage_id" : 1
  348. }
  349. },
  350. {
  351. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/1",
  352. "Tasks" : {
  353. "exit_code" : 999,
  354. "stdout" : "",
  355. "status" : "QUEUED",
  356. "stderr" : "",
  357. "host_name" : "host3",
  358. "id" : 1,
  359. "cluster_name" : "mycluster",
  360. "attempt_cnt" : 1,
  361. "request_id" : 1,
  362. "command" : "INSTALL",
  363. "role" : "GANGLIA_MONITOR",
  364. "start_time" : 1352863663984,
  365. "stage_id" : 1
  366. }
  367. },
  368. {
  369. "href" : "http://ambari:8080/api/clusters/mycluster/requests/1/tasks/13",
  370. "Tasks" : {
  371. "exit_code" : 999,
  372. "stdout" : "",
  373. "status" : "QUEUED",
  374. "stderr" : "",
  375. "host_name" : "host4",
  376. "id" : 13,
  377. "cluster_name" : "mycluster",
  378. "attempt_cnt" : 1,
  379. "request_id" : 1,
  380. "command" : "INSTALL",
  381. "role" : "GANGLIA_MONITOR",
  382. "start_time" : 1352863666401,
  383. "stage_id" : 1
  384. }
  385. }
  386. ]
  387. }