Events.avpr 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318
  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": "AMStarted",
  65. "fields": [
  66. {"name": "applicationAttemptId", "type": "string"},
  67. {"name": "startTime", "type": "long"},
  68. {"name": "containerId", "type": "string"},
  69. {"name": "nodeManagerHost", "type": "string"},
  70. {"name": "nodeManagerPort", "type": "int"},
  71. {"name": "nodeManagerHttpPort", "type": "int"}
  72. ]
  73. },
  74. {"type": "record", "name": "JobSubmitted",
  75. "fields": [
  76. {"name": "jobid", "type": "string"},
  77. {"name": "jobName", "type": "string"},
  78. {"name": "userName", "type": "string"},
  79. {"name": "submitTime", "type": "long"},
  80. {"name": "jobConfPath", "type": "string"},
  81. {"name": "acls", "type": {"type": "map",
  82. "values": "string"
  83. }
  84. },
  85. {"name": "jobQueueName", "type": "string"}
  86. ]
  87. },
  88. {"type": "record", "name": "JobInfoChange",
  89. "fields": [
  90. {"name": "jobid", "type": "string"},
  91. {"name": "submitTime", "type": "long"},
  92. {"name": "launchTime", "type": "long"}
  93. ]
  94. },
  95. {"type": "record", "name": "JobPriorityChange",
  96. "fields": [
  97. {"name": "jobid", "type": "string"},
  98. {"name": "priority", "type": "string"}
  99. ]
  100. },
  101. {"type": "record", "name": "JobStatusChanged",
  102. "fields": [
  103. {"name": "jobid", "type": "string"},
  104. {"name": "jobStatus", "type": "string"}
  105. ]
  106. },
  107. {"type": "record", "name": "JobUnsuccessfulCompletion",
  108. "fields": [
  109. {"name": "jobid", "type": "string"},
  110. {"name": "finishTime", "type": "long"},
  111. {"name": "finishedMaps", "type": "int"},
  112. {"name": "finishedReduces", "type": "int"},
  113. {"name": "jobStatus", "type": "string"}
  114. ]
  115. },
  116. {"type": "record", "name": "MapAttemptFinished",
  117. "fields": [
  118. {"name": "taskid", "type": "string"},
  119. {"name": "attemptId", "type": "string"},
  120. {"name": "taskType", "type": "string"},
  121. {"name": "taskStatus", "type": "string"},
  122. {"name": "mapFinishTime", "type": "long"},
  123. {"name": "finishTime", "type": "long"},
  124. {"name": "hostname", "type": "string"},
  125. {"name": "port", "type": "int"},
  126. {"name": "rackname", "type": "string"},
  127. {"name": "state", "type": "string"},
  128. {"name": "counters", "type": "JhCounters"},
  129. {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
  130. {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
  131. {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
  132. {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
  133. ]
  134. },
  135. {"type": "record", "name": "ReduceAttemptFinished",
  136. "fields": [
  137. {"name": "taskid", "type": "string"},
  138. {"name": "attemptId", "type": "string"},
  139. {"name": "taskType", "type": "string"},
  140. {"name": "taskStatus", "type": "string"},
  141. {"name": "shuffleFinishTime", "type": "long"},
  142. {"name": "sortFinishTime", "type": "long"},
  143. {"name": "finishTime", "type": "long"},
  144. {"name": "hostname", "type": "string"},
  145. {"name": "port", "type": "int"},
  146. {"name": "rackname", "type": "string"},
  147. {"name": "state", "type": "string"},
  148. {"name": "counters", "type": "JhCounters"},
  149. {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
  150. {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
  151. {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
  152. {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
  153. ]
  154. },
  155. {"type": "record", "name": "TaskAttemptFinished",
  156. "fields": [
  157. {"name": "taskid", "type": "string"},
  158. {"name": "attemptId", "type": "string"},
  159. {"name": "taskType", "type": "string"},
  160. {"name": "taskStatus", "type": "string"},
  161. {"name": "finishTime", "type": "long"},
  162. {"name": "rackname", "type": "string"},
  163. {"name": "hostname", "type": "string"},
  164. {"name": "state", "type": "string"},
  165. {"name": "counters", "type": "JhCounters"}
  166. ]
  167. },
  168. {"type": "record", "name": "TaskAttemptStarted",
  169. "fields": [
  170. {"name": "taskid", "type": "string"},
  171. {"name": "taskType", "type": "string"},
  172. {"name": "attemptId", "type": "string"},
  173. {"name": "startTime", "type": "long"},
  174. {"name": "trackerName", "type": "string"},
  175. {"name": "httpPort", "type": "int"},
  176. {"name": "shufflePort", "type": "int"},
  177. {"name": "containerId", "type": "string"}
  178. ]
  179. },
  180. {"type": "record", "name": "TaskAttemptUnsuccessfulCompletion",
  181. "fields": [
  182. {"name": "taskid", "type": "string"},
  183. {"name": "taskType", "type": "string"},
  184. {"name": "attemptId", "type": "string"},
  185. {"name": "finishTime", "type": "long"},
  186. {"name": "hostname", "type": "string"},
  187. {"name": "port", "type": "int"},
  188. {"name": "rackname", "type": "string"},
  189. {"name": "status", "type": "string"},
  190. {"name": "error", "type": "string"},
  191. {"name": "clockSplits", "type": { "type": "array", "items": "int"}},
  192. {"name": "cpuUsages", "type": { "type": "array", "items": "int"}},
  193. {"name": "vMemKbytes", "type": { "type": "array", "items": "int"}},
  194. {"name": "physMemKbytes", "type": { "type": "array", "items": "int"}}
  195. ]
  196. },
  197. {"type": "record", "name": "TaskFailed",
  198. "fields": [
  199. {"name": "taskid", "type": "string"},
  200. {"name": "taskType", "type": "string"},
  201. {"name": "finishTime", "type": "long"},
  202. {"name": "error", "type": "string"},
  203. {"name": "failedDueToAttempt", "type": ["null", "string"] },
  204. {"name": "status", "type": "string"}
  205. ]
  206. },
  207. {"type": "record", "name": "TaskFinished",
  208. "fields": [
  209. {"name": "taskid", "type": "string"},
  210. {"name": "taskType", "type": "string"},
  211. {"name": "finishTime", "type": "long"},
  212. {"name": "status", "type": "string"},
  213. {"name": "counters", "type": "JhCounters"}
  214. ]
  215. },
  216. {"type": "record", "name": "TaskStarted",
  217. "fields": [
  218. {"name": "taskid", "type": "string"},
  219. {"name": "taskType", "type": "string"},
  220. {"name": "startTime", "type": "long"},
  221. {"name": "splitLocations", "type": "string"}
  222. ]
  223. },
  224. {"type": "record", "name": "TaskUpdated",
  225. "fields": [
  226. {"name": "taskid", "type": "string"},
  227. {"name": "finishTime", "type": "long"}
  228. ]
  229. },
  230. {"type": "enum", "name": "EventType",
  231. "symbols": [
  232. "JOB_SUBMITTED",
  233. "JOB_INITED",
  234. "JOB_FINISHED",
  235. "JOB_PRIORITY_CHANGED",
  236. "JOB_STATUS_CHANGED",
  237. "JOB_FAILED",
  238. "JOB_KILLED",
  239. "JOB_INFO_CHANGED",
  240. "TASK_STARTED",
  241. "TASK_FINISHED",
  242. "TASK_FAILED",
  243. "TASK_UPDATED",
  244. "NORMALIZED_RESOURCE",
  245. "MAP_ATTEMPT_STARTED",
  246. "MAP_ATTEMPT_FINISHED",
  247. "MAP_ATTEMPT_FAILED",
  248. "MAP_ATTEMPT_KILLED",
  249. "REDUCE_ATTEMPT_STARTED",
  250. "REDUCE_ATTEMPT_FINISHED",
  251. "REDUCE_ATTEMPT_FAILED",
  252. "REDUCE_ATTEMPT_KILLED",
  253. "SETUP_ATTEMPT_STARTED",
  254. "SETUP_ATTEMPT_FINISHED",
  255. "SETUP_ATTEMPT_FAILED",
  256. "SETUP_ATTEMPT_KILLED",
  257. "CLEANUP_ATTEMPT_STARTED",
  258. "CLEANUP_ATTEMPT_FINISHED",
  259. "CLEANUP_ATTEMPT_FAILED",
  260. "CLEANUP_ATTEMPT_KILLED",
  261. "AM_STARTED"
  262. ]
  263. },
  264. {"type": "record", "name": "Event",
  265. "fields": [
  266. {"name": "type", "type": "EventType"},
  267. {"name": "event",
  268. "type": [
  269. "JobFinished",
  270. "JobInfoChange",
  271. "JobInited",
  272. "AMStarted",
  273. "JobPriorityChange",
  274. "JobStatusChanged",
  275. "JobSubmitted",
  276. "JobUnsuccessfulCompletion",
  277. "MapAttemptFinished",
  278. "ReduceAttemptFinished",
  279. "TaskAttemptFinished",
  280. "TaskAttemptStarted",
  281. "TaskAttemptUnsuccessfulCompletion",
  282. "TaskFailed",
  283. "TaskFinished",
  284. "TaskStarted",
  285. "TaskUpdated"
  286. ]
  287. }
  288. ]
  289. }
  290. ],
  291. "messages": {}
  292. }