Events.avpr 11 KB

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