Events.avpr 12 KB

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