tasks_poll2.js 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. module.exports = {
  2. "href": "http://localhost:8080/api/clusters/mycluster/requests/1",
  3. "Requests": {
  4. "id": 1
  5. },
  6. "tasks": [
  7. {
  8. "href": "http://localhost:8080/api/clusters/mycluster/requests/1/tasks/1",
  9. "Tasks": {
  10. "id": "1",
  11. "attempt_cnt": "0",
  12. "exit_code": "999",
  13. "stdout": "",
  14. "status": "IN_PROGRESS",
  15. "command": "INSTALL",
  16. "start_time": "-1",
  17. "role": "DATANODE",
  18. "stderr": "",
  19. "host_name": "localhost.localdomain",
  20. "stage_id": "1"
  21. }
  22. },
  23. {
  24. "href": "http://localhost:8080/api/clusters/mycluster/requests/1/tasks/2",
  25. "Tasks": {
  26. "id": "2",
  27. "attempt_cnt": "0",
  28. "exit_code": "999",
  29. "stdout": "",
  30. "status": "QUEUED",
  31. "command": "INSTALL",
  32. "start_time": "-1",
  33. "role": "NAMENODE",
  34. "stderr": "",
  35. "host_name": "localhost.localdomain",
  36. "stage_id": "1"
  37. }
  38. },
  39. {
  40. "href": "http://localhost:8080/api/clusters/mycluster/requests/1/tasks/3",
  41. "Tasks": {
  42. "id": "3",
  43. "attempt_cnt": "0",
  44. "exit_code": "999",
  45. "stdout": "",
  46. "status": "QUEUED",
  47. "command": "INSTALL",
  48. "start_time": "-1",
  49. "role": "SECONDARY_NAMENODE",
  50. "stderr": "",
  51. "host_name": "host2",
  52. "stage_id": "1"
  53. }
  54. }
  55. ]
  56. }