Events.avpr 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295
  1. /**
  2. * Licensed to the Apache Software Foundation (ASF) under one
  3. * or more contributor license agreements. See the NOTICE file
  4. * distributed with this work for additional information
  5. * regarding copyright ownership. The ASF licenses this file
  6. * to you under the Apache License, Version 2.0 (the
  7. * "License"); you may not use this file except in compliance
  8. * with the License. You may obtain a copy of the License at
  9. *
  10. * http://www.apache.org/licenses/LICENSE-2.0
  11. *
  12. * Unless required by applicable law or agreed to in writing, software
  13. * distributed under the License is distributed on an "AS IS" BASIS,
  14. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. * See the License for the specific language governing permissions and
  16. * limitations under the License.
  17. */
  18. {"namespace": "org.apache.hadoop.mapreduce.jobhistory",
  19. "protocol": "Events",
  20. "types": [
  21. {"type": "record", "name": "JhCounter",
  22. "fields": [
  23. {"name": "name", "type": "string"},
  24. {"name": "displayName", "type": "string"},
  25. {"name": "value", "type": "long"}
  26. ]
  27. },
  28. {"type": "record", "name": "JhCounterGroup",
  29. "fields": [
  30. {"name": "name", "type": "string"},
  31. {"name": "displayName", "type": "string"},
  32. {"name": "counts", "type": {"type": "array", "items": "JhCounter"}}
  33. ]
  34. },
  35. {"type": "record", "name": "JhCounters",
  36. "fields": [
  37. {"name": "name", "type": "string"},
  38. {"name": "groups", "type": {"type": "array", "items": "JhCounterGroup"}}
  39. ]
  40. },
  41. {"type": "record", "name": "JobFinished",
  42. "fields": [
  43. {"name": "jobid", "type": "string"},
  44. {"name": "finishTime", "type": "long"},
  45. {"name": "finishedMaps", "type": "int"},
  46. {"name": "finishedReduces", "type": "int"},
  47. {"name": "failedMaps", "type": "int"},
  48. {"name": "failedReduces", "type": "int"},
  49. {"name": "totalCounters", "type": "JhCounters"},
  50. {"name": "mapCounters", "type": "JhCounters"},
  51. {"name": "reduceCounters", "type": "JhCounters"}
  52. ]
  53. },
  54. {"type": "record", "name": "JobInited",
  55. "fields": [
  56. {"name": "jobid", "type": "string"},
  57. {"name": "launchTime", "type": "long"},
  58. {"name": "totalMaps", "type": "int"},
  59. {"name": "totalReduces", "type": "int"},
  60. {"name": "jobStatus", "type": "string"},
  61. {"name": "uberized", "type": "boolean"}
  62. ]
  63. },
  64. {"type": "record", "name": "JobSubmitted",
  65. "fields": [
  66. {"name": "jobid", "type": "string"},
  67. {"name": "jobName", "type": "string"},
  68. {"name": "userName", "type": "string"},
  69. {"name": "submitTime", "type": "long"},
  70. {"name": "jobConfPath", "type": "string"},
  71. {"name": "acls", "type": {"type": "map",
  72. "values": "string"
  73. }
  74. },
  75. {"name": "jobQueueName", "type": "string"}
  76. ]
  77. },
  78. {"type": "record", "name": "JobInfoChange",
  79. "fields": [
  80. {"name": "jobid", "type": "string"},
  81. {"name": "submitTime", "type": "long"},
  82. {"name": "launchTime", "type": "long"}
  83. ]
  84. },
  85. {"type": "record", "name": "JobPriorityChange",
  86. "fields": [
  87. {"name": "jobid", "type": "string"},
  88. {"name": "priority", "type": "string"}
  89. ]
  90. },
  91. {"type": "record", "name": "JobStatusChanged",
  92. "fields": [
  93. {"name": "jobid", "type": "string"},
  94. {"name": "jobStatus", "type": "string"}
  95. ]
  96. },
  97. {"type": "record", "name": "JobUnsuccessfulCompletion",
  98. "fields": [
  99. {"name": "jobid", "type": "string"},
  100. {"name": "finishTime", "type": "long"},
  101. {"name": "finishedMaps", "type": "int"},
  102. {"name": "finishedReduces", "type": "int"},
  103. {"name": "jobStatus", "type": "string"}
  104. ]
  105. },
  106. {"type": "record", "name": "MapAttemptFinished",
  107. "fields": [
  108. {"name": "taskid", "type": "string"},
  109. {"name": "attemptId", "type": "string"},
  110. {"name": "taskType", "type": "string"},
  111. {"name": "taskStatus", "type": "string"},
  112. {"name": "mapFinishTime", "type": "long"},
  113. {"name": "finishTime", "type": "long"},
  114. {"name": "hostname", "type": "string"},
  115. {"name": "state", "type": "string"},
  116. {"name": "counters", "type": "JhCounters"},
  117. {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
  118. {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
  119. {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
  120. {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
  121. ]
  122. },
  123. {"type": "record", "name": "ReduceAttemptFinished",
  124. "fields": [
  125. {"name": "taskid", "type": "string"},
  126. {"name": "attemptId", "type": "string"},
  127. {"name": "taskType", "type": "string"},
  128. {"name": "taskStatus", "type": "string"},
  129. {"name": "shuffleFinishTime", "type": "long"},
  130. {"name": "sortFinishTime", "type": "long"},
  131. {"name": "finishTime", "type": "long"},
  132. {"name": "hostname", "type": "string"},
  133. {"name": "state", "type": "string"},
  134. {"name": "counters", "type": "JhCounters"},
  135. {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
  136. {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
  137. {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
  138. {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
  139. ]
  140. },
  141. {"type": "record", "name": "TaskAttemptFinished",
  142. "fields": [
  143. {"name": "taskid", "type": "string"},
  144. {"name": "attemptId", "type": "string"},
  145. {"name": "taskType", "type": "string"},
  146. {"name": "taskStatus", "type": "string"},
  147. {"name": "finishTime", "type": "long"},
  148. {"name": "hostname", "type": "string"},
  149. {"name": "state", "type": "string"},
  150. {"name": "counters", "type": "JhCounters"}
  151. ]
  152. },
  153. {"type": "record", "name": "TaskAttemptStarted",
  154. "fields": [
  155. {"name": "taskid", "type": "string"},
  156. {"name": "taskType", "type": "string"},
  157. {"name": "attemptId", "type": "string"},
  158. {"name": "startTime", "type": "long"},
  159. {"name": "trackerName", "type": "string"},
  160. {"name": "httpPort", "type": "int"}
  161. ]
  162. },
  163. {"type": "record", "name": "TaskAttemptUnsuccessfulCompletion",
  164. "fields": [
  165. {"name": "taskid", "type": "string"},
  166. {"name": "taskType", "type": "string"},
  167. {"name": "attemptId", "type": "string"},
  168. {"name": "finishTime", "type": "long"},
  169. {"name": "hostname", "type": "string"},
  170. {"name": "status", "type": "string"},
  171. {"name": "error", "type": "string"},
  172. {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
  173. {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
  174. {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
  175. {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
  176. ]
  177. },
  178. {"type": "record", "name": "TaskFailed",
  179. "fields": [
  180. {"name": "taskid", "type": "string"},
  181. {"name": "taskType", "type": "string"},
  182. {"name": "finishTime", "type": "long"},
  183. {"name": "error", "type": "string"},
  184. {"name": "failedDueToAttempt", "type": ["null", "string"] },
  185. {"name": "status", "type": "string"}
  186. ]
  187. },
  188. {"type": "record", "name": "TaskFinished",
  189. "fields": [
  190. {"name": "taskid", "type": "string"},
  191. {"name": "taskType", "type": "string"},
  192. {"name": "finishTime", "type": "long"},
  193. {"name": "status", "type": "string"},
  194. {"name": "counters", "type": "JhCounters"}
  195. ]
  196. },
  197. {"type": "record", "name": "TaskStarted",
  198. "fields": [
  199. {"name": "taskid", "type": "string"},
  200. {"name": "taskType", "type": "string"},
  201. {"name": "startTime", "type": "long"},
  202. {"name": "splitLocations", "type": "string"}
  203. ]
  204. },
  205. {"type": "record", "name": "TaskUpdated",
  206. "fields": [
  207. {"name": "taskid", "type": "string"},
  208. {"name": "finishTime", "type": "long"}
  209. ]
  210. },
  211. {"type": "enum", "name": "EventType",
  212. "symbols": [
  213. "JOB_SUBMITTED",
  214. "JOB_INITED",
  215. "JOB_FINISHED",
  216. "JOB_PRIORITY_CHANGED",
  217. "JOB_STATUS_CHANGED",
  218. "JOB_FAILED",
  219. "JOB_KILLED",
  220. "JOB_INFO_CHANGED",
  221. "TASK_STARTED",
  222. "TASK_FINISHED",
  223. "TASK_FAILED",
  224. "TASK_UPDATED",
  225. "MAP_ATTEMPT_STARTED",
  226. "MAP_ATTEMPT_FINISHED",
  227. "MAP_ATTEMPT_FAILED",
  228. "MAP_ATTEMPT_KILLED",
  229. "REDUCE_ATTEMPT_STARTED",
  230. "REDUCE_ATTEMPT_FINISHED",
  231. "REDUCE_ATTEMPT_FAILED",
  232. "REDUCE_ATTEMPT_KILLED",
  233. "SETUP_ATTEMPT_STARTED",
  234. "SETUP_ATTEMPT_FINISHED",
  235. "SETUP_ATTEMPT_FAILED",
  236. "SETUP_ATTEMPT_KILLED",
  237. "CLEANUP_ATTEMPT_STARTED",
  238. "CLEANUP_ATTEMPT_FINISHED",
  239. "CLEANUP_ATTEMPT_FAILED",
  240. "CLEANUP_ATTEMPT_KILLED"
  241. ]
  242. },
  243. {"type": "record", "name": "Event",
  244. "fields": [
  245. {"name": "type", "type": "EventType"},
  246. {"name": "event",
  247. "type": [
  248. "JobFinished",
  249. "JobInfoChange",
  250. "JobInited",
  251. "JobPriorityChange",
  252. "JobStatusChanged",
  253. "JobSubmitted",
  254. "JobUnsuccessfulCompletion",
  255. "MapAttemptFinished",
  256. "ReduceAttemptFinished",
  257. "TaskAttemptFinished",
  258. "TaskAttemptStarted",
  259. "TaskAttemptUnsuccessfulCompletion",
  260. "TaskFailed",
  261. "TaskFinished",
  262. "TaskStarted",
  263. "TaskUpdated"
  264. ]
  265. }
  266. ]
  267. }
  268. ],
  269. "messages": {}
  270. }