HistoryServerRest.apt.vm 77 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672
  1. ~~ Licensed under the Apache License, Version 2.0 (the "License");
  2. ~~ you may not use this file except in compliance with the License.
  3. ~~ You may obtain a copy of the License at
  4. ~~
  5. ~~ http://www.apache.org/licenses/LICENSE-2.0
  6. ~~
  7. ~~ Unless required by applicable law or agreed to in writing, software
  8. ~~ distributed under the License is distributed on an "AS IS" BASIS,
  9. ~~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. ~~ See the License for the specific language governing permissions and
  11. ~~ limitations under the License. See accompanying LICENSE file.
  12. ---
  13. MapReduce History Server REST API's.
  14. ---
  15. ---
  16. ${maven.build.timestamp}
  17. MapReduce History Server REST API's.
  18. %{toc|section=1|fromDepth=0|toDepth=3}
  19. * Overview
  20. The history server REST API's allow the user to get status on finished applications.
  21. * History Server Information API
  22. The history server information resource provides overall information about the history server.
  23. ** URI
  24. Both of the following URI's give you the history server information, from an application id identified by the appid value.
  25. ------
  26. * http://<history server http address:port>/ws/v1/history
  27. * http://<history server http address:port>/ws/v1/history/info
  28. ------
  29. ** HTTP Operations Supported
  30. ------
  31. * GET
  32. ------
  33. ** Query Parameters Supported
  34. ------
  35. None
  36. ------
  37. ** Elements of the <historyInfo> object
  38. *---------------+--------------+-------------------------------+
  39. || Item || Data Type || Description |
  40. *---------------+--------------+-------------------------------+
  41. | startedOn | long | The time the history server was started (in ms since epoch)|
  42. *---------------+--------------+-------------------------------+
  43. | hadoopVersion | string | Version of hadoop common |
  44. *---------------+--------------+-------------------------------+
  45. | hadoopBuildVersion | string | Hadoop common build string with build version, user, and checksum |
  46. *---------------+--------------+-------------------------------+
  47. | hadoopVersionBuiltOn | string | Timestamp when hadoop common was built |
  48. *---------------+--------------+-------------------------------+
  49. ** Response Examples
  50. <<JSON response>>
  51. HTTP Request:
  52. ------
  53. GET http://<history server http address:port>/ws/v1/history/info
  54. ------
  55. Response Header:
  56. +---+
  57. HTTP/1.1 200 OK
  58. Content-Type: application/json
  59. Transfer-Encoding: chunked
  60. Server: Jetty(6.1.26)
  61. +---+
  62. Response Body:
  63. +---+
  64. {
  65. "historyInfo" : {
  66. "startedOn":1353512830963,
  67. "hadoopVersionBuiltOn" : "Wed Jan 11 21:18:36 UTC 2012",
  68. "hadoopBuildVersion" : "0.23.1-SNAPSHOT from 1230253 by user1 source checksum bb6e554c6d50b0397d826081017437a7",
  69. "hadoopVersion" : "0.23.1-SNAPSHOT"
  70. }
  71. }
  72. +---+
  73. <<XML response>>
  74. HTTP Request:
  75. -----
  76. GET http://<history server http address:port>/ws/v1/history/info
  77. Accept: application/xml
  78. -----
  79. Response Header:
  80. +---+
  81. HTTP/1.1 200 OK
  82. Content-Type: application/xml
  83. Content-Length: 330
  84. Server: Jetty(6.1.26)
  85. +---+
  86. Response Body:
  87. +---+
  88. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  89. <historyInfo>
  90. <startedOn>1353512830963</startedOn>
  91. <hadoopVersion>0.23.1-SNAPSHOT</hadoopVersion>
  92. <hadoopBuildVersion>0.23.1-SNAPSHOT from 1230253 by user1 source checksum bb6e554c6d50b0397d826081017437a7</hadoopBuildVersion>
  93. <hadoopVersionBuiltOn>Wed Jan 11 21:18:36 UTC 2012</hadoopVersionBuiltOn>
  94. </historyInfo>
  95. +---+
  96. * MapReduce API's
  97. The following list of resources apply to MapReduce.
  98. ** Jobs API
  99. The jobs resource provides a list of the MapReduce jobs that have finished. It does not currently return a full list of parameters
  100. *** URI
  101. ------
  102. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs
  103. ------
  104. *** HTTP Operations Supported
  105. ------
  106. * GET
  107. ------
  108. *** Query Parameters Supported
  109. Multiple paramters can be specified. The started and finished times have a begin and end parameter to allow you to specify ranges. For example, one could request all jobs that started between 1:00am and 2:00pm on 12/19/2011 with startedTimeBegin=1324256400&startedTimeEnd=1324303200. If the Begin parameter is not specfied, it defaults to 0, and if the End parameter is not specified, it defaults to infinity.
  110. ------
  111. * user - user name
  112. * state - the job state
  113. * queue - queue name
  114. * limit - total number of app objects to be returned
  115. * startedTimeBegin - jobs with start time beginning with this time, specified in ms since epoch
  116. * startedTimeEnd - jobs with start time ending with this time, specified in ms since epoch
  117. * finishedTimeBegin - jobs with finish time beginning with this time, specified in ms since epoch
  118. * finishedTimeEnd - jobs with finish time ending with this time, specified in ms since epoch
  119. ------
  120. *** Elements of the <jobs> object
  121. When you make a request for the list of jobs, the information will be returned as an array of job objects.
  122. See also {{Job API}} for syntax of the job object. Except this is a subset of a full job. Only startTime,
  123. finishTime, id, name, queue, user, state, mapsTotal, mapsCompleted, reducesTotal, and reducesCompleted are
  124. returned.
  125. *---------------+--------------+-------------------------------+
  126. || Item || Data Type || Description |
  127. *---------------+--------------+-------------------------------+
  128. | job | array of job objects(json)/zero or more job objects(XML) | The collection of job objects |
  129. *---------------+--------------+-------------------------------+
  130. *** Response Examples
  131. <<JSON response>>
  132. HTTP Request:
  133. ------
  134. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs
  135. ------
  136. Response Header:
  137. +---+
  138. HTTP/1.1 200 OK
  139. Content-Type: application/json
  140. Transfer-Encoding: chunked
  141. Server: Jetty(6.1.26)
  142. +---+
  143. Response Body:
  144. +---+
  145. {
  146. "jobs" : {
  147. "job" : [
  148. {
  149. "submitTime" : 1326381344449,
  150. "state" : "SUCCEEDED",
  151. "user" : "user1",
  152. "reducesTotal" : 1,
  153. "mapsCompleted" : 1,
  154. "startTime" : 1326381344489,
  155. "id" : "job_1326381300833_1_1",
  156. "name" : "word count",
  157. "reducesCompleted" : 1,
  158. "mapsTotal" : 1,
  159. "queue" : "default",
  160. "finishTime" : 1326381356010
  161. },
  162. {
  163. "submitTime" : 1326381446500
  164. "state" : "SUCCEEDED",
  165. "user" : "user1",
  166. "reducesTotal" : 1,
  167. "mapsCompleted" : 1,
  168. "startTime" : 1326381446529,
  169. "id" : "job_1326381300833_2_2",
  170. "name" : "Sleep job",
  171. "reducesCompleted" : 1,
  172. "mapsTotal" : 1,
  173. "queue" : "default",
  174. "finishTime" : 1326381582106
  175. }
  176. ]
  177. }
  178. }
  179. +---+
  180. <<XML response>>
  181. HTTP Request:
  182. ------
  183. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs
  184. Accept: application/xml
  185. ------
  186. Response Header:
  187. +---+
  188. HTTP/1.1 200 OK
  189. Content-Type: application/xml
  190. Content-Length: 1922
  191. Server: Jetty(6.1.26)
  192. +---+
  193. Response Body:
  194. +---+
  195. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  196. <jobs>
  197. <job>
  198. <submitTime>1326381344449</submitTime>
  199. <startTime>1326381344489</startTime>
  200. <finishTime>1326381356010</finishTime>
  201. <id>job_1326381300833_1_1</id>
  202. <name>word count</name>
  203. <queue>default</queue>
  204. <user>user1</user>
  205. <state>SUCCEEDED</state>
  206. <mapsTotal>1</mapsTotal>
  207. <mapsCompleted>1</mapsCompleted>
  208. <reducesTotal>1</reducesTotal>
  209. <reducesCompleted>1</reducesCompleted>
  210. </job>
  211. <job>
  212. <submitTime>1326381446500</submitTime>
  213. <startTime>1326381446529</startTime>
  214. <finishTime>1326381582106</finishTime>
  215. <id>job_1326381300833_2_2</id>
  216. <name>Sleep job</name>
  217. <queue>default</queue>
  218. <user>user1</user>
  219. <state>SUCCEEDED</state>
  220. <mapsTotal>1</mapsTotal>
  221. <mapsCompleted>1</mapsCompleted>
  222. <reducesTotal>1</reducesTotal>
  223. <reducesCompleted>1</reducesCompleted>
  224. </job>
  225. </jobs>
  226. +---+
  227. ** {Job API}
  228. A Job resource contains information about a particular job identified by {jobid}.
  229. *** URI
  230. ------
  231. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}
  232. ------
  233. *** HTTP Operations Supported
  234. ------
  235. * GET
  236. ------
  237. *** Query Parameters Supported
  238. ------
  239. None
  240. ------
  241. *** Elements of the <job> object
  242. *---------------+--------------+-------------------------------+
  243. || Item || Data Type || Description |
  244. *---------------+--------------+-------------------------------+
  245. | id | string | The job id|
  246. *---------------+--------------+-------------------------------+
  247. | name | string | The job name |
  248. *---------------+--------------+-------------------------------+
  249. | queue | string | The queue the job was submitted to|
  250. *---------------+--------------+-------------------------------+
  251. | user | string | The user name |
  252. *---------------+--------------+-------------------------------+
  253. | state | string | the job state - valid values are: NEW, INITED, RUNNING, SUCCEEDED, FAILED, KILL_WAIT, KILLED, ERROR|
  254. *---------------+--------------+-------------------------------+
  255. | diagnostics | string | A diagnostic message |
  256. *---------------+--------------+-------------------------------+
  257. | submitTime | long | The time the job submitted (in ms since epoch)|
  258. *---------------+--------------+-------------------------------+
  259. | startTime | long | The time the job started (in ms since epoch)|
  260. *---------------+--------------+-------------------------------+
  261. | finishTime | long | The time the job finished (in ms since epoch)|
  262. *---------------+--------------+-------------------------------+
  263. | mapsTotal | int | The total number of maps |
  264. *---------------+--------------+-------------------------------+
  265. | mapsCompleted | int | The number of completed maps |
  266. *---------------+--------------+-------------------------------+
  267. | reducesTotal | int | The total number of reduces |
  268. *---------------+--------------+-------------------------------+
  269. | reducesCompleted | int | The number of completed reduces|
  270. *---------------+--------------+-------------------------------+
  271. | uberized | boolean | Indicates if the job was an uber job - ran completely in the application master|
  272. *---------------+--------------+-------------------------------+
  273. | avgMapTime | long | The average time of a map task (in ms)|
  274. *---------------+--------------+-------------------------------+
  275. | avgReduceTime | long | The average time of the reduce (in ms)|
  276. *---------------+--------------+-------------------------------+
  277. | avgShuffleTime | long | The average time of the shuffle (in ms)|
  278. *---------------+--------------+-------------------------------+
  279. | avgMergeTime | long | The average time of the merge (in ms)|
  280. *---------------+--------------+-------------------------------+
  281. | failedReduceAttempts | int | The number of failed reduce attempts |
  282. *---------------+--------------+-------------------------------+
  283. | killedReduceAttempts | int | The number of killed reduce attempts |
  284. *---------------+--------------+-------------------------------+
  285. | successfulReduceAttempts | int | The number of successful reduce attempts |
  286. *---------------+--------------+-------------------------------+
  287. | failedMapAttempts | int | The number of failed map attempts |
  288. *---------------+--------------+-------------------------------+
  289. | killedMapAttempts | int | The number of killed map attempts |
  290. *---------------+--------------+-------------------------------+
  291. | successfulMapAttempts | int | The number of successful map attempts |
  292. *---------------+--------------+-------------------------------+
  293. | acls | array of acls(json)/zero or more acls objects(xml)| A collection of acls objects |
  294. *---------------+--------------+-------------------------------+
  295. ** Elements of the <acls> object
  296. *---------------+--------------+-------------------------------+
  297. || Item || Data Type || Description |
  298. *---------------+--------------+-------------------------------+
  299. | value | string | The acl value|
  300. *---------------+--------------+-------------------------------+
  301. | name | string | The acl name |
  302. *---------------+--------------+-------------------------------+
  303. *** Response Examples
  304. <<JSON response>>
  305. HTTP Request:
  306. ------
  307. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2
  308. ------
  309. Response Header:
  310. +---+
  311. HTTP/1.1 200 OK
  312. Content-Type: application/json
  313. Server: Jetty(6.1.26)
  314. Content-Length: 720
  315. +---+
  316. Response Body:
  317. +---+
  318. {
  319. "job" : {
  320. "submitTime": 1326381446500,
  321. "avgReduceTime" : 124961,
  322. "failedReduceAttempts" : 0,
  323. "state" : "SUCCEEDED",
  324. "successfulReduceAttempts" : 1,
  325. "acls" : [
  326. {
  327. "value" : " ",
  328. "name" : "mapreduce.job.acl-modify-job"
  329. },
  330. {
  331. "value" : " ",
  332. "name" : "mapreduce.job.acl-view-job"
  333. }
  334. ],
  335. "user" : "user1",
  336. "reducesTotal" : 1,
  337. "mapsCompleted" : 1,
  338. "startTime" : 1326381446529,
  339. "id" : "job_1326381300833_2_2",
  340. "avgMapTime" : 2638,
  341. "successfulMapAttempts" : 1,
  342. "name" : "Sleep job",
  343. "avgShuffleTime" : 2540,
  344. "reducesCompleted" : 1,
  345. "diagnostics" : "",
  346. "failedMapAttempts" : 0,
  347. "avgMergeTime" : 2589,
  348. "killedReduceAttempts" : 0,
  349. "mapsTotal" : 1,
  350. "queue" : "default",
  351. "uberized" : false,
  352. "killedMapAttempts" : 0,
  353. "finishTime" : 1326381582106
  354. }
  355. }
  356. +---+
  357. <<XML response>>
  358. HTTP Request:
  359. ------
  360. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2
  361. Accept: application/xml
  362. ------
  363. Response Header:
  364. +---+
  365. HTTP/1.1 200 OK
  366. Content-Type: application/xml
  367. Content-Length: 983
  368. Server: Jetty(6.1.26)
  369. +---+
  370. Response Body:
  371. +---+
  372. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  373. <job>
  374. <submitTime>1326381446500</submitTime>
  375. <startTime>1326381446529</startTime>
  376. <finishTime>1326381582106</finishTime>
  377. <id>job_1326381300833_2_2</id>
  378. <name>Sleep job</name>
  379. <queue>default</queue>
  380. <user>user1</user>
  381. <state>SUCCEEDED</state>
  382. <mapsTotal>1</mapsTotal>
  383. <mapsCompleted>1</mapsCompleted>
  384. <reducesTotal>1</reducesTotal>
  385. <reducesCompleted>1</reducesCompleted>
  386. <uberized>false</uberized>
  387. <diagnostics/>
  388. <avgMapTime>2638</avgMapTime>
  389. <avgReduceTime>124961</avgReduceTime>
  390. <avgShuffleTime>2540</avgShuffleTime>
  391. <avgMergeTime>2589</avgMergeTime>
  392. <failedReduceAttempts>0</failedReduceAttempts>
  393. <killedReduceAttempts>0</killedReduceAttempts>
  394. <successfulReduceAttempts>1</successfulReduceAttempts>
  395. <failedMapAttempts>0</failedMapAttempts>
  396. <killedMapAttempts>0</killedMapAttempts>
  397. <successfulMapAttempts>1</successfulMapAttempts>
  398. <acls>
  399. <name>mapreduce.job.acl-modify-job</name>
  400. <value> </value>
  401. </acls>
  402. <acls>
  403. <name>mapreduce.job.acl-view-job</name>
  404. <value> </value>
  405. </acls>
  406. </job>
  407. +---+
  408. ** Job Attempts API
  409. With the job attempts API, you can obtain a collection of resources that represent a job attempt. When you run a GET operation on this resource, you obtain a collection of Job Attempt Objects.
  410. *** URI
  411. ------
  412. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/jobattempts
  413. ------
  414. *** HTTP Operations Supported
  415. ------
  416. * GET
  417. ------
  418. *** Query Parameters Supported
  419. ------
  420. None
  421. ------
  422. *** Elements of the <jobAttempts> object
  423. When you make a request for the list of job attempts, the information will be returned as an array of job attempt objects.
  424. jobAttempts:
  425. *---------------+--------------+-------------------------------+
  426. || Item || Data Type || Description |
  427. *---------------+--------------+-------------------------------+
  428. | jobAttempt | array of job attempt objects(JSON)/zero or more job attempt objects(XML) | The collection of job attempt objects |
  429. *---------------+--------------+--------------------------------+
  430. *** Elements of the <jobAttempt> object
  431. *---------------+--------------+-------------------------------+
  432. || Item || Data Type || Description |
  433. *---------------+--------------+-------------------------------+
  434. | id | string | The job attempt id |
  435. *---------------+--------------+--------------------------------+
  436. | nodeId | string | The node id of the node the attempt ran on|
  437. *---------------+--------------+--------------------------------+
  438. | nodeHttpAddress | string | The node http address of the node the attempt ran on|
  439. *---------------+--------------+--------------------------------+
  440. | logsLink | string | The http link to the job attempt logs |
  441. *---------------+--------------+--------------------------------+
  442. | containerId | string | The id of the container for the job attempt |
  443. *---------------+--------------+--------------------------------+
  444. | startTime | long | The start time of the attempt (in ms since epoch)|
  445. *---------------+--------------+--------------------------------+
  446. *** Response Examples
  447. <<JSON response>>
  448. HTTP Request:
  449. ------
  450. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/jobattempts
  451. ------
  452. Response Header:
  453. +---+
  454. HTTP/1.1 200 OK
  455. Content-Type: application/json
  456. Transfer-Encoding: chunked
  457. Server: Jetty(6.1.26)
  458. +---+
  459. Response Body:
  460. +---+
  461. {
  462. "jobAttempts" : {
  463. "jobAttempt" : [
  464. {
  465. "nodeId" : "host.domain.com:8041",
  466. "nodeHttpAddress" : "host.domain.com:8042",
  467. "startTime" : 1326381444693,
  468. "id" : 1,
  469. "logsLink" : "http://host.domain.com:19888/jobhistory/logs/host.domain.com:8041/container_1326381300833_0002_01_000001/job_1326381300833_2_2/user1",
  470. "containerId" : "container_1326381300833_0002_01_000001"
  471. }
  472. ]
  473. }
  474. }
  475. +---+
  476. <<XML response>>
  477. HTTP Request:
  478. ------
  479. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/jobattmpts
  480. Accept: application/xml
  481. ------
  482. Response Header:
  483. +---+
  484. HTTP/1.1 200 OK
  485. Content-Type: application/xml
  486. Content-Length: 575
  487. Server: Jetty(6.1.26)
  488. +---+
  489. Response Body:
  490. +---+
  491. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  492. <jobAttempts>
  493. <jobAttempt>
  494. <nodeHttpAddress>host.domain.com:8042</nodeHttpAddress>
  495. <nodeId>host.domain.com:8041</nodeId>
  496. <id>1</id>
  497. <startTime>1326381444693</startTime>
  498. <containerId>container_1326381300833_0002_01_000001</containerId>
  499. <logsLink>http://host.domain.com:19888/jobhistory/logs/host.domain.com:8041/container_1326381300833_0002_01_000001/job_1326381300833_2_2/user1</logsLink>
  500. </jobAttempt>
  501. </jobAttempts>
  502. +---+
  503. ** Job Counters API
  504. With the job counters API, you can object a collection of resources that represent al the counters for that job.
  505. *** URI
  506. ------
  507. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/counters
  508. ------
  509. *** HTTP Operations Supported
  510. ------
  511. * GET
  512. ------
  513. *** Query Parameters Supported
  514. ------
  515. None
  516. ------
  517. *** Elements of the <jobCounters> object
  518. *---------------+--------------+-------------------------------+
  519. || Item || Data Type || Description |
  520. *---------------+--------------+-------------------------------+
  521. | id | string | The job id |
  522. *---------------+--------------+-------------------------------+
  523. | counterGroup | array of counterGroup objects(JSON)/zero or more counterGroup objects(XML) | A collection of counter group objects |
  524. *---------------+--------------+-------------------------------+
  525. *** Elements of the <counterGroup> objecs
  526. *---------------+--------------+-------------------------------+
  527. || Item || Data Type || Description |
  528. *---------------+--------------+-------------------------------+
  529. | counterGroupName | string | The name of the counter group |
  530. *---------------+--------------+-------------------------------+
  531. | counter | array of counter objects(JSON)/zero or more counter objects(XML) | A collection of counter objects |
  532. *---------------+--------------+-------------------------------+
  533. *** Elements of the <counter> object
  534. *---------------+--------------+-------------------------------+
  535. || Item || Data Type || Description |
  536. *---------------+--------------+-------------------------------+
  537. | name | string | The name of the counter |
  538. *---------------+--------------+-------------------------------+
  539. | reduceCounterValue | long | The counter value of reduce tasks |
  540. *---------------+--------------+-------------------------------+
  541. | mapCounterValue | long | The counter value of map tasks |
  542. *---------------+--------------+-------------------------------+
  543. | totalCounterValue | long | The counter value of all tasks |
  544. *---------------+--------------+-------------------------------+
  545. *** Response Examples
  546. <<JSON response>>
  547. HTTP Request:
  548. ------
  549. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/counters
  550. ------
  551. Response Header:
  552. +---+
  553. HTTP/1.1 200 OK
  554. Content-Type: application/json
  555. Transfer-Encoding: chunked
  556. Server: Jetty(6.1.26)
  557. +---+
  558. Response Body:
  559. +---+
  560. {
  561. "jobCounters" : {
  562. "id" : "job_1326381300833_2_2",
  563. "counterGroup" : [
  564. {
  565. "counterGroupName" : "Shuffle Errors",
  566. "counter" : [
  567. {
  568. "reduceCounterValue" : 0,
  569. "mapCounterValue" : 0,
  570. "totalCounterValue" : 0,
  571. "name" : "BAD_ID"
  572. },
  573. {
  574. "reduceCounterValue" : 0,
  575. "mapCounterValue" : 0,
  576. "totalCounterValue" : 0,
  577. "name" : "CONNECTION"
  578. },
  579. {
  580. "reduceCounterValue" : 0,
  581. "mapCounterValue" : 0,
  582. "totalCounterValue" : 0,
  583. "name" : "IO_ERROR"
  584. },
  585. {
  586. "reduceCounterValue" : 0,
  587. "mapCounterValue" : 0,
  588. "totalCounterValue" : 0,
  589. "name" : "WRONG_LENGTH"
  590. },
  591. {
  592. "reduceCounterValue" : 0,
  593. "mapCounterValue" : 0,
  594. "totalCounterValue" : 0,
  595. "name" : "WRONG_MAP"
  596. },
  597. {
  598. "reduceCounterValue" : 0,
  599. "mapCounterValue" : 0,
  600. "totalCounterValue" : 0,
  601. "name" : "WRONG_REDUCE"
  602. }
  603. ]
  604. },
  605. {
  606. "counterGroupName" : "org.apache.hadoop.mapreduce.FileSystemCounter",
  607. "counter" : [
  608. {
  609. "reduceCounterValue" : 0,
  610. "mapCounterValue" : 0,
  611. "totalCounterValue" : 2483,
  612. "name" : "FILE_BYTES_READ"
  613. },
  614. {
  615. "reduceCounterValue" : 0,
  616. "mapCounterValue" : 0,
  617. "totalCounterValue" : 108525,
  618. "name" : "FILE_BYTES_WRITTEN"
  619. },
  620. {
  621. "reduceCounterValue" : 0,
  622. "mapCounterValue" : 0,
  623. "totalCounterValue" : 0,
  624. "name" : "FILE_READ_OPS"
  625. },
  626. {
  627. "reduceCounterValue" : 0,
  628. "mapCounterValue" : 0,
  629. "totalCounterValue" : 0,
  630. "name" : "FILE_LARGE_READ_OPS"
  631. },
  632. {
  633. "reduceCounterValue" : 0,
  634. "mapCounterValue" : 0,
  635. "totalCounterValue" : 0,
  636. "name" : "FILE_WRITE_OPS"
  637. },
  638. {
  639. "reduceCounterValue" : 0,
  640. "mapCounterValue" : 0,
  641. "totalCounterValue" : 48,
  642. "name" : "HDFS_BYTES_READ"
  643. },
  644. {
  645. "reduceCounterValue" : 0,
  646. "mapCounterValue" : 0,
  647. "totalCounterValue" : 0,
  648. "name" : "HDFS_BYTES_WRITTEN"
  649. },
  650. {
  651. "reduceCounterValue" : 0,
  652. "mapCounterValue" : 0,
  653. "totalCounterValue" : 1,
  654. "name" : "HDFS_READ_OPS"
  655. },
  656. {
  657. "reduceCounterValue" : 0,
  658. "mapCounterValue" : 0,
  659. "totalCounterValue" : 0,
  660. "name" : "HDFS_LARGE_READ_OPS"
  661. },
  662. {
  663. "reduceCounterValue" : 0,
  664. "mapCounterValue" : 0,
  665. "totalCounterValue" : 0,
  666. "name" : "HDFS_WRITE_OPS"
  667. }
  668. ]
  669. },
  670. {
  671. "counterGroupName" : "org.apache.hadoop.mapreduce.TaskCounter",
  672. "counter" : [
  673. {
  674. "reduceCounterValue" : 0,
  675. "mapCounterValue" : 0,
  676. "totalCounterValue" : 1,
  677. "name" : "MAP_INPUT_RECORDS"
  678. },
  679. {
  680. "reduceCounterValue" : 0,
  681. "mapCounterValue" : 0,
  682. "totalCounterValue" : 1200,
  683. "name" : "MAP_OUTPUT_RECORDS"
  684. },
  685. {
  686. "reduceCounterValue" : 0,
  687. "mapCounterValue" : 0,
  688. "totalCounterValue" : 4800,
  689. "name" : "MAP_OUTPUT_BYTES"
  690. },
  691. {
  692. "reduceCounterValue" : 0,
  693. "mapCounterValue" : 0,
  694. "totalCounterValue" : 2235,
  695. "name" : "MAP_OUTPUT_MATERIALIZED_BYTES"
  696. },
  697. {
  698. "reduceCounterValue" : 0,
  699. "mapCounterValue" : 0,
  700. "totalCounterValue" : 48,
  701. "name" : "SPLIT_RAW_BYTES"
  702. },
  703. {
  704. "reduceCounterValue" : 0,
  705. "mapCounterValue" : 0,
  706. "totalCounterValue" : 0,
  707. "name" : "COMBINE_INPUT_RECORDS"
  708. },
  709. {
  710. "reduceCounterValue" : 0,
  711. "mapCounterValue" : 0,
  712. "totalCounterValue" : 0,
  713. "name" : "COMBINE_OUTPUT_RECORDS"
  714. },
  715. {
  716. "reduceCounterValue" : 0,
  717. "mapCounterValue" : 0,
  718. "totalCounterValue" : 1200,
  719. "name" : "REDUCE_INPUT_GROUPS"
  720. },
  721. {
  722. "reduceCounterValue" : 0,
  723. "mapCounterValue" : 0,
  724. "totalCounterValue" : 2235,
  725. "name" : "REDUCE_SHUFFLE_BYTES"
  726. },
  727. {
  728. "reduceCounterValue" : 0,
  729. "mapCounterValue" : 0,
  730. "totalCounterValue" : 1200,
  731. "name" : "REDUCE_INPUT_RECORDS"
  732. },
  733. {
  734. "reduceCounterValue" : 0,
  735. "mapCounterValue" : 0,
  736. "totalCounterValue" : 0,
  737. "name" : "REDUCE_OUTPUT_RECORDS"
  738. },
  739. {
  740. "reduceCounterValue" : 0,
  741. "mapCounterValue" : 0,
  742. "totalCounterValue" : 2400,
  743. "name" : "SPILLED_RECORDS"
  744. },
  745. {
  746. "reduceCounterValue" : 0,
  747. "mapCounterValue" : 0,
  748. "totalCounterValue" : 1,
  749. "name" : "SHUFFLED_MAPS"
  750. },
  751. {
  752. "reduceCounterValue" : 0,
  753. "mapCounterValue" : 0,
  754. "totalCounterValue" : 0,
  755. "name" : "FAILED_SHUFFLE"
  756. },
  757. {
  758. "reduceCounterValue" : 0,
  759. "mapCounterValue" : 0,
  760. "totalCounterValue" : 1,
  761. "name" : "MERGED_MAP_OUTPUTS"
  762. },
  763. {
  764. "reduceCounterValue" : 0,
  765. "mapCounterValue" : 0,
  766. "totalCounterValue" : 113,
  767. "name" : "GC_TIME_MILLIS"
  768. },
  769. {
  770. "reduceCounterValue" : 0,
  771. "mapCounterValue" : 0,
  772. "totalCounterValue" : 1830,
  773. "name" : "CPU_MILLISECONDS"
  774. },
  775. {
  776. "reduceCounterValue" : 0,
  777. "mapCounterValue" : 0,
  778. "totalCounterValue" : 478068736,
  779. "name" : "PHYSICAL_MEMORY_BYTES"
  780. },
  781. {
  782. "reduceCounterValue" : 0,
  783. "mapCounterValue" : 0,
  784. "totalCounterValue" : 2159284224,
  785. "name" : "VIRTUAL_MEMORY_BYTES"
  786. },
  787. {
  788. "reduceCounterValue" : 0,
  789. "mapCounterValue" : 0,
  790. "totalCounterValue" : 378863616,
  791. "name" : "COMMITTED_HEAP_BYTES"
  792. }
  793. ]
  794. },
  795. {
  796. "counterGroupName" : "org.apache.hadoop.mapreduce.lib.input.FileInputFormatCounter",
  797. "counter" : [
  798. {
  799. "reduceCounterValue" : 0,
  800. "mapCounterValue" : 0,
  801. "totalCounterValue" : 0,
  802. "name" : "BYTES_READ"
  803. }
  804. ]
  805. },
  806. {
  807. "counterGroupName" : "org.apache.hadoop.mapreduce.lib.output.FileOutputFormatCounter",
  808. "counter" : [
  809. {
  810. "reduceCounterValue" : 0,
  811. "mapCounterValue" : 0,
  812. "totalCounterValue" : 0,
  813. "name" : "BYTES_WRITTEN"
  814. }
  815. ]
  816. }
  817. ]
  818. }
  819. }
  820. +---+
  821. <<XML response>>
  822. HTTP Request:
  823. ------
  824. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/counters
  825. Accept: application/xml
  826. ------
  827. Response Header:
  828. +---+
  829. HTTP/1.1 200 OK
  830. Content-Type: application/xml
  831. Content-Length: 7030
  832. Server: Jetty(6.1.26)
  833. +---+
  834. Response Body:
  835. +---+
  836. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  837. <jobCounters>
  838. <id>job_1326381300833_2_2</id>
  839. <counterGroup>
  840. <counterGroupName>Shuffle Errors</counterGroupName>
  841. <counter>
  842. <name>BAD_ID</name>
  843. <totalCounterValue>0</totalCounterValue>
  844. <mapCounterValue>0</mapCounterValue>
  845. <reduceCounterValue>0</reduceCounterValue>
  846. </counter>
  847. <counter>
  848. <name>CONNECTION</name>
  849. <totalCounterValue>0</totalCounterValue>
  850. <mapCounterValue>0</mapCounterValue>
  851. <reduceCounterValue>0</reduceCounterValue>
  852. </counter>
  853. <counter>
  854. <name>IO_ERROR</name>
  855. <totalCounterValue>0</totalCounterValue>
  856. <mapCounterValue>0</mapCounterValue>
  857. <reduceCounterValue>0</reduceCounterValue>
  858. </counter>
  859. <counter>
  860. <name>WRONG_LENGTH</name>
  861. <totalCounterValue>0</totalCounterValue>
  862. <mapCounterValue>0</mapCounterValue>
  863. <reduceCounterValue>0</reduceCounterValue>
  864. </counter>
  865. <counter>
  866. <name>WRONG_MAP</name>
  867. <totalCounterValue>0</totalCounterValue>
  868. <mapCounterValue>0</mapCounterValue>
  869. <reduceCounterValue>0</reduceCounterValue>
  870. </counter>
  871. <counter>
  872. <name>WRONG_REDUCE</name>
  873. <totalCounterValue>0</totalCounterValue>
  874. <mapCounterValue>0</mapCounterValue>
  875. <reduceCounterValue>0</reduceCounterValue>
  876. </counter>
  877. </counterGroup>
  878. <counterGroup>
  879. <counterGroupName>org.apache.hadoop.mapreduce.FileSystemCounter</counterGroupName>
  880. <counter>
  881. <name>FILE_BYTES_READ</name>
  882. <totalCounterValue>2483</totalCounterValue>
  883. <mapCounterValue>0</mapCounterValue>
  884. <reduceCounterValue>0</reduceCounterValue>
  885. </counter>
  886. <counter>
  887. <name>FILE_BYTES_WRITTEN</name>
  888. <totalCounterValue>108525</totalCounterValue>
  889. <mapCounterValue>0</mapCounterValue>
  890. <reduceCounterValue>0</reduceCounterValue>
  891. </counter>
  892. <counter>
  893. <name>FILE_READ_OPS</name>
  894. <totalCounterValue>0</totalCounterValue>
  895. <mapCounterValue>0</mapCounterValue>
  896. <reduceCounterValue>0</reduceCounterValue>
  897. </counter>
  898. <counter>
  899. <name>FILE_LARGE_READ_OPS</name>
  900. <totalCounterValue>0</totalCounterValue>
  901. <mapCounterValue>0</mapCounterValue>
  902. <reduceCounterValue>0</reduceCounterValue>
  903. </counter>
  904. <counter>
  905. <name>FILE_WRITE_OPS</name>
  906. <totalCounterValue>0</totalCounterValue>
  907. <mapCounterValue>0</mapCounterValue>
  908. <reduceCounterValue>0</reduceCounterValue>
  909. </counter>
  910. <counter>
  911. <name>HDFS_BYTES_READ</name>
  912. <totalCounterValue>48</totalCounterValue>
  913. <mapCounterValue>0</mapCounterValue>
  914. <reduceCounterValue>0</reduceCounterValue>
  915. </counter>
  916. <counter>
  917. <name>HDFS_BYTES_WRITTEN</name>
  918. <totalCounterValue>0</totalCounterValue>
  919. <mapCounterValue>0</mapCounterValue>
  920. <reduceCounterValue>0</reduceCounterValue>
  921. </counter>
  922. <counter>
  923. <name>HDFS_READ_OPS</name>
  924. <totalCounterValue>1</totalCounterValue>
  925. <mapCounterValue>0</mapCounterValue>
  926. <reduceCounterValue>0</reduceCounterValue>
  927. </counter>
  928. <counter>
  929. <name>HDFS_LARGE_READ_OPS</name>
  930. <totalCounterValue>0</totalCounterValue>
  931. <mapCounterValue>0</mapCounterValue>
  932. <reduceCounterValue>0</reduceCounterValue>
  933. </counter>
  934. <counter>
  935. <name>HDFS_WRITE_OPS</name>
  936. <totalCounterValue>0</totalCounterValue>
  937. <mapCounterValue>0</mapCounterValue>
  938. <reduceCounterValue>0</reduceCounterValue>
  939. </counter>
  940. </counterGroup>
  941. <counterGroup>
  942. <counterGroupName>org.apache.hadoop.mapreduce.TaskCounter</counterGroupName>
  943. <counter>
  944. <name>MAP_INPUT_RECORDS</name>
  945. <totalCounterValue>1</totalCounterValue>
  946. <mapCounterValue>0</mapCounterValue>
  947. <reduceCounterValue>0</reduceCounterValue>
  948. </counter>
  949. <counter>
  950. <name>MAP_OUTPUT_RECORDS</name>
  951. <totalCounterValue>1200</totalCounterValue>
  952. <mapCounterValue>0</mapCounterValue>
  953. <reduceCounterValue>0</reduceCounterValue>
  954. </counter>
  955. <counter>
  956. <name>MAP_OUTPUT_BYTES</name>
  957. <totalCounterValue>4800</totalCounterValue>
  958. <mapCounterValue>0</mapCounterValue>
  959. <reduceCounterValue>0</reduceCounterValue>
  960. </counter>
  961. <counter>
  962. <name>MAP_OUTPUT_MATERIALIZED_BYTES</name>
  963. <totalCounterValue>2235</totalCounterValue>
  964. <mapCounterValue>0</mapCounterValue>
  965. <reduceCounterValue>0</reduceCounterValue>
  966. </counter>
  967. <counter>
  968. <name>SPLIT_RAW_BYTES</name>
  969. <totalCounterValue>48</totalCounterValue>
  970. <mapCounterValue>0</mapCounterValue>
  971. <reduceCounterValue>0</reduceCounterValue>
  972. </counter>
  973. <counter>
  974. <name>COMBINE_INPUT_RECORDS</name>
  975. <totalCounterValue>0</totalCounterValue>
  976. <mapCounterValue>0</mapCounterValue>
  977. <reduceCounterValue>0</reduceCounterValue>
  978. </counter>
  979. <counter>
  980. <name>COMBINE_OUTPUT_RECORDS</name>
  981. <totalCounterValue>0</totalCounterValue>
  982. <mapCounterValue>0</mapCounterValue>
  983. <reduceCounterValue>0</reduceCounterValue>
  984. </counter>
  985. <counter>
  986. <name>REDUCE_INPUT_GROUPS</name>
  987. <totalCounterValue>1200</totalCounterValue>
  988. <mapCounterValue>0</mapCounterValue>
  989. <reduceCounterValue>0</reduceCounterValue>
  990. </counter>
  991. <counter>
  992. <name>REDUCE_SHUFFLE_BYTES</name>
  993. <totalCounterValue>2235</totalCounterValue>
  994. <mapCounterValue>0</mapCounterValue>
  995. <reduceCounterValue>0</reduceCounterValue>
  996. </counter>
  997. <counter>
  998. <name>REDUCE_INPUT_RECORDS</name>
  999. <totalCounterValue>1200</totalCounterValue>
  1000. <mapCounterValue>0</mapCounterValue>
  1001. <reduceCounterValue>0</reduceCounterValue>
  1002. </counter>
  1003. <counter>
  1004. <name>REDUCE_OUTPUT_RECORDS</name>
  1005. <totalCounterValue>0</totalCounterValue>
  1006. <mapCounterValue>0</mapCounterValue>
  1007. <reduceCounterValue>0</reduceCounterValue>
  1008. </counter>
  1009. <counter>
  1010. <name>SPILLED_RECORDS</name>
  1011. <totalCounterValue>2400</totalCounterValue>
  1012. <mapCounterValue>0</mapCounterValue>
  1013. <reduceCounterValue>0</reduceCounterValue>
  1014. </counter>
  1015. <counter>
  1016. <name>SHUFFLED_MAPS</name>
  1017. <totalCounterValue>1</totalCounterValue>
  1018. <mapCounterValue>0</mapCounterValue>
  1019. <reduceCounterValue>0</reduceCounterValue>
  1020. </counter>
  1021. <counter>
  1022. <name>FAILED_SHUFFLE</name>
  1023. <totalCounterValue>0</totalCounterValue>
  1024. <mapCounterValue>0</mapCounterValue>
  1025. <reduceCounterValue>0</reduceCounterValue>
  1026. </counter>
  1027. <counter>
  1028. <name>MERGED_MAP_OUTPUTS</name>
  1029. <totalCounterValue>1</totalCounterValue>
  1030. <mapCounterValue>0</mapCounterValue>
  1031. <reduceCounterValue>0</reduceCounterValue>
  1032. </counter>
  1033. <counter>
  1034. <name>GC_TIME_MILLIS</name>
  1035. <totalCounterValue>113</totalCounterValue>
  1036. <mapCounterValue>0</mapCounterValue>
  1037. <reduceCounterValue>0</reduceCounterValue>
  1038. </counter>
  1039. <counter>
  1040. <name>CPU_MILLISECONDS</name>
  1041. <totalCounterValue>1830</totalCounterValue>
  1042. <mapCounterValue>0</mapCounterValue>
  1043. <reduceCounterValue>0</reduceCounterValue>
  1044. </counter>
  1045. <counter>
  1046. <name>PHYSICAL_MEMORY_BYTES</name>
  1047. <totalCounterValue>478068736</totalCounterValue>
  1048. <mapCounterValue>0</mapCounterValue>
  1049. <reduceCounterValue>0</reduceCounterValue>
  1050. </counter>
  1051. <counter>
  1052. <name>VIRTUAL_MEMORY_BYTES</name>
  1053. <totalCounterValue>2159284224</totalCounterValue>
  1054. <mapCounterValue>0</mapCounterValue>
  1055. <reduceCounterValue>0</reduceCounterValue>
  1056. </counter>
  1057. <counter>
  1058. <name>COMMITTED_HEAP_BYTES</name>
  1059. <totalCounterValue>378863616</totalCounterValue>
  1060. <mapCounterValue>0</mapCounterValue>
  1061. <reduceCounterValue>0</reduceCounterValue>
  1062. </counter>
  1063. </counterGroup>
  1064. <counterGroup>
  1065. <counterGroupName>org.apache.hadoop.mapreduce.lib.input.FileInputFormatCounter</counterGroupName>
  1066. <counter>
  1067. <name>BYTES_READ</name>
  1068. <totalCounterValue>0</totalCounterValue>
  1069. <mapCounterValue>0</mapCounterValue>
  1070. <reduceCounterValue>0</reduceCounterValue>
  1071. </counter>
  1072. </counterGroup>
  1073. <counterGroup>
  1074. <counterGroupName>org.apache.hadoop.mapreduce.lib.output.FileOutputFormatCounter</counterGroupName>
  1075. <counter>
  1076. <name>BYTES_WRITTEN</name>
  1077. <totalCounterValue>0</totalCounterValue>
  1078. <mapCounterValue>0</mapCounterValue>
  1079. <reduceCounterValue>0</reduceCounterValue>
  1080. </counter>
  1081. </counterGroup>
  1082. </jobCounters>
  1083. +---+
  1084. ** Job Conf API
  1085. A job configuration resource contains information about the job configuration for this job.
  1086. *** URI
  1087. Use the following URI to obtain th job configuration information, from a job identified by the {jobid} value.
  1088. ------
  1089. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/conf
  1090. ------
  1091. *** HTTP Operations Supported
  1092. ------
  1093. * GET
  1094. ------
  1095. *** Query Parameters Supported
  1096. ------
  1097. None
  1098. ------
  1099. *** Elements of the <conf> object
  1100. *---------------+--------------+-------------------------------+
  1101. || Item || Data Type || Description |
  1102. *---------------+--------------+-------------------------------+
  1103. | path | string | The path to the job configuration file|
  1104. *---------------+--------------+-------------------------------+
  1105. | property | array of the configuration properties(JSON)/zero or more configuration properties(XML) | Collection of configuration property objects|
  1106. *---------------+--------------+-------------------------------+
  1107. *** Elements of the <property> object
  1108. *---------------+--------------+-------------------------------+
  1109. || Item || Data Type || Description |
  1110. *---------------+--------------+-------------------------------+
  1111. | name | string | The name of the configuration property |
  1112. *---------------+--------------+-------------------------------+
  1113. | value | string | The value of the configuration property |
  1114. *---------------+--------------+-------------------------------+
  1115. | source | string | The location this configuration object came from. If there is more then one of these it shows the history with the latest source at the end of the list. |
  1116. *---------------+--------------+-------------------------------+
  1117. *** Response Examples
  1118. <<JSON response>>
  1119. HTTP Request:
  1120. ------
  1121. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/conf
  1122. ------
  1123. Response Header:
  1124. +---+
  1125. HTTP/1.1 200 OK
  1126. Content-Type: application/json
  1127. Transfer-Encoding: chunked
  1128. Server: Jetty(6.1.26)
  1129. +---+
  1130. Response Body:
  1131. This is a small snippet of the output as the output if very large. The real output contains every property in your job configuration file.
  1132. +---+
  1133. {
  1134. "conf" : {
  1135. "path" : "hdfs://host.domain.com:9000/user/user1/.staging/job_1326381300833_0002/job.xml",
  1136. "property" : [
  1137. {
  1138. "value" : "/home/hadoop/hdfs/data",
  1139. "name" : "dfs.datanode.data.dir"
  1140. "source" : ["hdfs-site.xml", "job.xml"]
  1141. },
  1142. {
  1143. "value" : "org.apache.hadoop.yarn.server.webproxy.amfilter.AmFilterInitializer",
  1144. "name" : "hadoop.http.filter.initializers"
  1145. "source" : ["programmatically", "job.xml"]
  1146. },
  1147. {
  1148. "value" : "/home/hadoop/tmp",
  1149. "name" : "mapreduce.cluster.temp.dir"
  1150. "source" : ["mapred-site.xml"]
  1151. },
  1152. ...
  1153. ]
  1154. }
  1155. }
  1156. +---+
  1157. <<XML response>>
  1158. HTTP Request:
  1159. ------
  1160. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/conf
  1161. Accept: application/xml
  1162. ------
  1163. Response Header:
  1164. +---+
  1165. HTTP/1.1 200 OK
  1166. Content-Type: application/xml
  1167. Content-Length: 552
  1168. Server: Jetty(6.1.26)
  1169. +---+
  1170. Response Body:
  1171. +---+
  1172. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  1173. <conf>
  1174. <path>hdfs://host.domain.com:9000/user/user1/.staging/job_1326381300833_0002/job.xml</path>
  1175. <property>
  1176. <name>dfs.datanode.data.dir</name>
  1177. <value>/home/hadoop/hdfs/data</value>
  1178. <source>hdfs-site.xml</source>
  1179. <source>job.xml</source>
  1180. </property>
  1181. <property>
  1182. <name>hadoop.http.filter.initializers</name>
  1183. <value>org.apache.hadoop.yarn.server.webproxy.amfilter.AmFilterInitializer</value>
  1184. <source>programmatically</source>
  1185. <source>job.xml</source>
  1186. </property>
  1187. <property>
  1188. <name>mapreduce.cluster.temp.dir</name>
  1189. <value>/home/hadoop/tmp</value>
  1190. <source>mapred-site.xml</source>
  1191. </property>
  1192. ...
  1193. </conf>
  1194. +---+
  1195. ** Tasks API
  1196. With the tasks API, you can obtain a collection of resources that represent a task within a job. When you run a GET operation on this resource, you obtain a collection of Task Objects.
  1197. *** URI
  1198. ------
  1199. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks
  1200. ------
  1201. *** HTTP Operations Supported
  1202. ------
  1203. * GET
  1204. ------
  1205. *** Query Parameters Supported
  1206. ------
  1207. * type - type of task, valid values are m or r. m for map task or r for reduce task.
  1208. ------
  1209. *** Elements of the <tasks> object
  1210. When you make a request for the list of tasks , the information will be returned as an array of task objects.
  1211. See also {{Task API}} for syntax of the task object.
  1212. *---------------+--------------+-------------------------------+
  1213. || Item || Data Type || Description |
  1214. *---------------+--------------+-------------------------------+
  1215. | task | array of task objects(JSON)/zero or more task objects(XML) | The collection of task objects. |
  1216. *---------------+--------------+--------------------------------+
  1217. *** Response Examples
  1218. <<JSON response>>
  1219. HTTP Request:
  1220. ------
  1221. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks
  1222. ------
  1223. Response Header:
  1224. +---+
  1225. HTTP/1.1 200 OK
  1226. Content-Type: application/json
  1227. Transfer-Encoding: chunked
  1228. Server: Jetty(6.1.26)
  1229. +---+
  1230. Response Body:
  1231. +---+
  1232. {
  1233. "tasks" : {
  1234. "task" : [
  1235. {
  1236. "progress" : 100,
  1237. "elapsedTime" : 6777,
  1238. "state" : "SUCCEEDED",
  1239. "startTime" : 1326381446541,
  1240. "id" : "task_1326381300833_2_2_m_0",
  1241. "type" : "MAP",
  1242. "successfulAttempt" : "attempt_1326381300833_2_2_m_0_0",
  1243. "finishTime" : 1326381453318
  1244. },
  1245. {
  1246. "progress" : 100,
  1247. "elapsedTime" : 135559,
  1248. "state" : "SUCCEEDED",
  1249. "startTime" : 1326381446544,
  1250. "id" : "task_1326381300833_2_2_r_0",
  1251. "type" : "REDUCE",
  1252. "successfulAttempt" : "attempt_1326381300833_2_2_r_0_0",
  1253. "finishTime" : 1326381582103
  1254. }
  1255. ]
  1256. }
  1257. }
  1258. +---+
  1259. <<XML response>>
  1260. HTTP Request:
  1261. ------
  1262. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks
  1263. Accept: application/xml
  1264. ------
  1265. Response Header:
  1266. +---+
  1267. HTTP/1.1 200 OK
  1268. Content-Type: application/xml
  1269. Content-Length: 653
  1270. Server: Jetty(6.1.26)
  1271. +---+
  1272. Response Body:
  1273. +---+
  1274. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  1275. <tasks>
  1276. <task>
  1277. <startTime>1326381446541</startTime>
  1278. <finishTime>1326381453318</finishTime>
  1279. <elapsedTime>6777</elapsedTime>
  1280. <progress>100.0</progress>
  1281. <id>task_1326381300833_2_2_m_0</id>
  1282. <state>SUCCEEDED</state>
  1283. <type>MAP</type>
  1284. <successfulAttempt>attempt_1326381300833_2_2_m_0_0</successfulAttempt>
  1285. </task>
  1286. <task>
  1287. <startTime>1326381446544</startTime>
  1288. <finishTime>1326381582103</finishTime>
  1289. <elapsedTime>135559</elapsedTime>
  1290. <progress>100.0</progress>
  1291. <id>task_1326381300833_2_2_r_0</id>
  1292. <state>SUCCEEDED</state>
  1293. <type>REDUCE</type>
  1294. <successfulAttempt>attempt_1326381300833_2_2_r_0_0</successfulAttempt>
  1295. </task>
  1296. </tasks>
  1297. +---+
  1298. ** {Task API}
  1299. A Task resource contains information about a particular task within a job.
  1300. *** URI
  1301. Use the following URI to obtain an Task Object, from a task identified by the {taskid} value.
  1302. ------
  1303. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}
  1304. ------
  1305. *** HTTP Operations Supported
  1306. ------
  1307. * GET
  1308. ------
  1309. *** Query Parameters Supported
  1310. ------
  1311. None
  1312. ------
  1313. *** Elements of the <task> object
  1314. *---------------+--------------+-------------------------------+
  1315. || Item || Data Type || Description |
  1316. *---------------+--------------+-------------------------------+
  1317. | id | string | The task id |
  1318. *---------------+--------------+--------------------------------+
  1319. | state | string | The state of the task - valid values are: NEW, SCHEDULED, RUNNING, SUCCEEDED, FAILED, KILL_WAIT, KILLED
  1320. *---------------+--------------+--------------------------------+
  1321. | type | string | The task type - MAP or REDUCE|
  1322. *---------------+--------------+--------------------------------+
  1323. | successfulAttempt | string | The id of the last successful attempt |
  1324. *---------------+--------------+--------------------------------+
  1325. | progress | float | The progress of the task as a percent|
  1326. *---------------+--------------+--------------------------------+
  1327. | startTime | long | The time in which the task started (in ms since epoch) or -1 if it was never started |
  1328. *---------------+--------------+--------------------------------+
  1329. | finishTime | long | The time in which the task finished (in ms since epoch)|
  1330. *---------------+--------------+--------------------------------+
  1331. | elapsedTime | long | The elapsed time since the application started (in ms)|
  1332. *---------------+--------------+--------------------------------+
  1333. *** Response Examples
  1334. <<JSON response>>
  1335. HTTP Request:
  1336. ------
  1337. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0
  1338. ------
  1339. Response Header:
  1340. +---+
  1341. HTTP/1.1 200 OK
  1342. Content-Type: application/json
  1343. Transfer-Encoding: chunked
  1344. Server: Jetty(6.1.26)
  1345. +---+
  1346. Response Body:
  1347. +---+
  1348. {
  1349. "task" : {
  1350. "progress" : 100,
  1351. "elapsedTime" : 6777,
  1352. "state" : "SUCCEEDED",
  1353. "startTime" : 1326381446541,
  1354. "id" : "task_1326381300833_2_2_m_0",
  1355. "type" : "MAP",
  1356. "successfulAttempt" : "attempt_1326381300833_2_2_m_0_0",
  1357. "finishTime" : 1326381453318
  1358. }
  1359. }
  1360. +---+
  1361. <<XML response>>
  1362. HTTP Request:
  1363. ------
  1364. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0
  1365. Accept: application/xml
  1366. ------
  1367. Response Header:
  1368. +---+
  1369. HTTP/1.1 200 OK
  1370. Content-Type: application/xml
  1371. Content-Length: 299
  1372. Server: Jetty(6.1.26)
  1373. +---+
  1374. Response Body:
  1375. +---+
  1376. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  1377. <task>
  1378. <startTime>1326381446541</startTime>
  1379. <finishTime>1326381453318</finishTime>
  1380. <elapsedTime>6777</elapsedTime>
  1381. <progress>100.0</progress>
  1382. <id>task_1326381300833_2_2_m_0</id>
  1383. <state>SUCCEEDED</state>
  1384. <type>MAP</type>
  1385. <successfulAttempt>attempt_1326381300833_2_2_m_0_0</successfulAttempt>
  1386. </task>
  1387. +---+
  1388. ** Task Counters API
  1389. With the task counters API, you can object a collection of resources that represent all the counters for that task.
  1390. *** URI
  1391. ------
  1392. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/counters
  1393. ------
  1394. *** HTTP Operations Supported
  1395. ------
  1396. * GET
  1397. ------
  1398. *** Query Parameters Supported
  1399. ------
  1400. None
  1401. ------
  1402. *** Elements of the <jobTaskCounters> object
  1403. *---------------+--------------+-------------------------------+
  1404. || Item || Data Type || Description |
  1405. *---------------+--------------+-------------------------------+
  1406. | id | string | The task id |
  1407. *---------------+--------------+-------------------------------+
  1408. | taskcounterGroup | array of counterGroup objects(JSON)/zero or more counterGroup objects(XML) | A collection of counter group objects |
  1409. *---------------+--------------+-------------------------------+
  1410. *** Elements of the <counterGroup> object
  1411. *---------------+--------------+-------------------------------+
  1412. || Item || Data Type || Description |
  1413. *---------------+--------------+-------------------------------+
  1414. | counterGroupName | string | The name of the counter group |
  1415. *---------------+--------------+-------------------------------+
  1416. | counter | array of counter objects(JSON)/zero or more counter objects(XML) | A collection of counter objects |
  1417. *---------------+--------------+-------------------------------+
  1418. *** Elements of the <counter> object
  1419. *---------------+--------------+-------------------------------+
  1420. || Item || Data Type || Description |
  1421. *---------------+--------------+-------------------------------+
  1422. | name | string | The name of the counter |
  1423. *---------------+--------------+-------------------------------+
  1424. | value | long | The value of the counter |
  1425. *---------------+--------------+-------------------------------+
  1426. *** Response Examples
  1427. <<JSON response>>
  1428. HTTP Request:
  1429. ------
  1430. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0/counters
  1431. ------
  1432. Response Header:
  1433. +---+
  1434. HTTP/1.1 200 OK
  1435. Content-Type: application/json
  1436. Transfer-Encoding: chunked
  1437. Server: Jetty(6.1.26)
  1438. +---+
  1439. Response Body:
  1440. +---+
  1441. {
  1442. "jobTaskCounters" : {
  1443. "id" : "task_1326381300833_2_2_m_0",
  1444. "taskCounterGroup" : [
  1445. {
  1446. "counterGroupName" : "org.apache.hadoop.mapreduce.FileSystemCounter",
  1447. "counter" : [
  1448. {
  1449. "value" : 2363,
  1450. "name" : "FILE_BYTES_READ"
  1451. },
  1452. {
  1453. "value" : 54372,
  1454. "name" : "FILE_BYTES_WRITTEN"
  1455. },
  1456. {
  1457. "value" : 0,
  1458. "name" : "FILE_READ_OPS"
  1459. },
  1460. {
  1461. "value" : 0,
  1462. "name" : "FILE_LARGE_READ_OPS"
  1463. },
  1464. {
  1465. "value" : 0,
  1466. "name" : "FILE_WRITE_OPS"
  1467. },
  1468. {
  1469. "value" : 0,
  1470. "name" : "HDFS_BYTES_READ"
  1471. },
  1472. {
  1473. "value" : 0,
  1474. "name" : "HDFS_BYTES_WRITTEN"
  1475. },
  1476. {
  1477. "value" : 0,
  1478. "name" : "HDFS_READ_OPS"
  1479. },
  1480. {
  1481. "value" : 0,
  1482. "name" : "HDFS_LARGE_READ_OPS"
  1483. },
  1484. {
  1485. "value" : 0,
  1486. "name" : "HDFS_WRITE_OPS"
  1487. }
  1488. ]
  1489. },
  1490. {
  1491. "counterGroupName" : "org.apache.hadoop.mapreduce.TaskCounter",
  1492. "counter" : [
  1493. {
  1494. "value" : 0,
  1495. "name" : "COMBINE_INPUT_RECORDS"
  1496. },
  1497. {
  1498. "value" : 0,
  1499. "name" : "COMBINE_OUTPUT_RECORDS"
  1500. },
  1501. {
  1502. "value" : 460,
  1503. "name" : "REDUCE_INPUT_GROUPS"
  1504. },
  1505. {
  1506. "value" : 2235,
  1507. "name" : "REDUCE_SHUFFLE_BYTES"
  1508. },
  1509. {
  1510. "value" : 460,
  1511. "name" : "REDUCE_INPUT_RECORDS"
  1512. },
  1513. {
  1514. "value" : 0,
  1515. "name" : "REDUCE_OUTPUT_RECORDS"
  1516. },
  1517. {
  1518. "value" : 0,
  1519. "name" : "SPILLED_RECORDS"
  1520. },
  1521. {
  1522. "value" : 1,
  1523. "name" : "SHUFFLED_MAPS"
  1524. },
  1525. {
  1526. "value" : 0,
  1527. "name" : "FAILED_SHUFFLE"
  1528. },
  1529. {
  1530. "value" : 1,
  1531. "name" : "MERGED_MAP_OUTPUTS"
  1532. },
  1533. {
  1534. "value" : 26,
  1535. "name" : "GC_TIME_MILLIS"
  1536. },
  1537. {
  1538. "value" : 860,
  1539. "name" : "CPU_MILLISECONDS"
  1540. },
  1541. {
  1542. "value" : 107839488,
  1543. "name" : "PHYSICAL_MEMORY_BYTES"
  1544. },
  1545. {
  1546. "value" : 1123147776,
  1547. "name" : "VIRTUAL_MEMORY_BYTES"
  1548. },
  1549. {
  1550. "value" : 57475072,
  1551. "name" : "COMMITTED_HEAP_BYTES"
  1552. }
  1553. ]
  1554. },
  1555. {
  1556. "counterGroupName" : "Shuffle Errors",
  1557. "counter" : [
  1558. {
  1559. "value" : 0,
  1560. "name" : "BAD_ID"
  1561. },
  1562. {
  1563. "value" : 0,
  1564. "name" : "CONNECTION"
  1565. },
  1566. {
  1567. "value" : 0,
  1568. "name" : "IO_ERROR"
  1569. },
  1570. {
  1571. "value" : 0,
  1572. "name" : "WRONG_LENGTH"
  1573. },
  1574. {
  1575. "value" : 0,
  1576. "name" : "WRONG_MAP"
  1577. },
  1578. {
  1579. "value" : 0,
  1580. "name" : "WRONG_REDUCE"
  1581. }
  1582. ]
  1583. },
  1584. {
  1585. "counterGroupName" : "org.apache.hadoop.mapreduce.lib.output.FileOutputFormatCounter",
  1586. "counter" : [
  1587. {
  1588. "value" : 0,
  1589. "name" : "BYTES_WRITTEN"
  1590. }
  1591. ]
  1592. }
  1593. ]
  1594. }
  1595. }
  1596. +---+
  1597. <<XML response>>
  1598. HTTP Request:
  1599. ------
  1600. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0/counters
  1601. Accept: application/xml
  1602. ------
  1603. Response Header:
  1604. +---+
  1605. HTTP/1.1 200 OK
  1606. Content-Type: application/xml
  1607. Content-Length: 2660
  1608. Server: Jetty(6.1.26)
  1609. +---+
  1610. Response Body:
  1611. +---+
  1612. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  1613. <jobTaskCounters>
  1614. <id>task_1326381300833_2_2_m_0</id>
  1615. <taskCounterGroup>
  1616. <counterGroupName>org.apache.hadoop.mapreduce.FileSystemCounter</counterGroupName>
  1617. <counter>
  1618. <name>FILE_BYTES_READ</name>
  1619. <value>2363</value>
  1620. </counter>
  1621. <counter>
  1622. <name>FILE_BYTES_WRITTEN</name>
  1623. <value>54372</value>
  1624. </counter>
  1625. <counter>
  1626. <name>FILE_READ_OPS</name>
  1627. <value>0</value>
  1628. </counter>
  1629. <counter>
  1630. <name>FILE_LARGE_READ_OPS</name>
  1631. <value>0</value>
  1632. </counter>
  1633. <counter>
  1634. <name>FILE_WRITE_OPS</name>
  1635. <value>0</value>
  1636. </counter>
  1637. <counter>
  1638. <name>HDFS_BYTES_READ</name>
  1639. <value>0</value>
  1640. </counter>
  1641. <counter>
  1642. <name>HDFS_BYTES_WRITTEN</name>
  1643. <value>0</value>
  1644. </counter>
  1645. <counter>
  1646. <name>HDFS_READ_OPS</name>
  1647. <value>0</value>
  1648. </counter>
  1649. <counter>
  1650. <name>HDFS_LARGE_READ_OPS</name>
  1651. <value>0</value>
  1652. </counter>
  1653. <counter>
  1654. <name>HDFS_WRITE_OPS</name>
  1655. <value>0</value>
  1656. </counter>
  1657. </taskCounterGroup>
  1658. <taskCounterGroup>
  1659. <counterGroupName>org.apache.hadoop.mapreduce.TaskCounter</counterGroupName>
  1660. <counter>
  1661. <name>COMBINE_INPUT_RECORDS</name>
  1662. <value>0</value>
  1663. </counter>
  1664. <counter>
  1665. <name>COMBINE_OUTPUT_RECORDS</name>
  1666. <value>0</value>
  1667. </counter>
  1668. <counter>
  1669. <name>REDUCE_INPUT_GROUPS</name>
  1670. <value>460</value>
  1671. </counter>
  1672. <counter>
  1673. <name>REDUCE_SHUFFLE_BYTES</name>
  1674. <value>2235</value>
  1675. </counter>
  1676. <counter>
  1677. <name>REDUCE_INPUT_RECORDS</name>
  1678. <value>460</value>
  1679. </counter>
  1680. <counter>
  1681. <name>REDUCE_OUTPUT_RECORDS</name>
  1682. <value>0</value>
  1683. </counter>
  1684. <counter>
  1685. <name>SPILLED_RECORDS</name>
  1686. <value>0</value>
  1687. </counter>
  1688. <counter>
  1689. <name>SHUFFLED_MAPS</name>
  1690. <value>1</value>
  1691. </counter>
  1692. <counter>
  1693. <name>FAILED_SHUFFLE</name>
  1694. <value>0</value>
  1695. </counter>
  1696. <counter>
  1697. <name>MERGED_MAP_OUTPUTS</name>
  1698. <value>1</value>
  1699. </counter>
  1700. <counter>
  1701. <name>GC_TIME_MILLIS</name>
  1702. <value>26</value>
  1703. </counter>
  1704. <counter>
  1705. <name>CPU_MILLISECONDS</name>
  1706. <value>860</value>
  1707. </counter>
  1708. <counter>
  1709. <name>PHYSICAL_MEMORY_BYTES</name>
  1710. <value>107839488</value>
  1711. </counter>
  1712. <counter>
  1713. <name>VIRTUAL_MEMORY_BYTES</name>
  1714. <value>1123147776</value>
  1715. </counter>
  1716. <counter>
  1717. <name>COMMITTED_HEAP_BYTES</name>
  1718. <value>57475072</value>
  1719. </counter>
  1720. </taskCounterGroup>
  1721. <taskCounterGroup>
  1722. <counterGroupName>Shuffle Errors</counterGroupName>
  1723. <counter>
  1724. <name>BAD_ID</name>
  1725. <value>0</value>
  1726. </counter>
  1727. <counter>
  1728. <name>CONNECTION</name>
  1729. <value>0</value>
  1730. </counter>
  1731. <counter>
  1732. <name>IO_ERROR</name>
  1733. <value>0</value>
  1734. </counter>
  1735. <counter>
  1736. <name>WRONG_LENGTH</name>
  1737. <value>0</value>
  1738. </counter>
  1739. <counter>
  1740. <name>WRONG_MAP</name>
  1741. <value>0</value>
  1742. </counter>
  1743. <counter>
  1744. <name>WRONG_REDUCE</name>
  1745. <value>0</value>
  1746. </counter>
  1747. </taskCounterGroup>
  1748. <taskCounterGroup>
  1749. <counterGroupName>org.apache.hadoop.mapreduce.lib.output.FileOutputFormatCounter</counterGroupName>
  1750. <counter>
  1751. <name>BYTES_WRITTEN</name>
  1752. <value>0</value>
  1753. </counter>
  1754. </taskCounterGroup>
  1755. </jobTaskCounters>
  1756. +---+
  1757. ** Task Attempts API
  1758. With the task attempts API, you can obtain a collection of resources that represent a task attempt within a job. When you run a GET operation on this resource, you obtain a collection of Task Attempt Objects.
  1759. *** URI
  1760. ------
  1761. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/attempts
  1762. ------
  1763. *** HTTP Operations Supported
  1764. ------
  1765. * GET
  1766. ------
  1767. *** Query Parameters Supported
  1768. ------
  1769. None
  1770. ------
  1771. *** Elements of the <taskAttempts> object
  1772. When you make a request for the list of task attempts, the information will be returned as an array of task attempt objects.
  1773. See also {{Task Attempt API}} for syntax of the task object.
  1774. *---------------+--------------+-------------------------------+
  1775. || Item || Data Type || Description |
  1776. *---------------+--------------+-------------------------------+
  1777. | taskAttempt | array of task attempt objects(JSON)/zero or more task attempt objects(XML) | The collection of task attempt objects |
  1778. *---------------+--------------+--------------------------------+
  1779. *** Response Examples
  1780. <<JSON response>>
  1781. HTTP Request:
  1782. ------
  1783. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0/attempts
  1784. ------
  1785. Response Header:
  1786. +---+
  1787. HTTP/1.1 200 OK
  1788. Content-Type: application/json
  1789. Transfer-Encoding: chunked
  1790. Server: Jetty(6.1.26)
  1791. +---+
  1792. Response Body:
  1793. +---+
  1794. {
  1795. "taskAttempts" : {
  1796. "taskAttempt" : [
  1797. {
  1798. "assignedContainerId" : "container_1326381300833_0002_01_000002",
  1799. "progress" : 100,
  1800. "elapsedTime" : 2638,
  1801. "state" : "SUCCEEDED",
  1802. "diagnostics" : "",
  1803. "rack" : "/98.139.92.0",
  1804. "nodeHttpAddress" : "host.domain.com:8042",
  1805. "startTime" : 1326381450680,
  1806. "id" : "attempt_1326381300833_2_2_m_0_0",
  1807. "type" : "MAP",
  1808. "finishTime" : 1326381453318
  1809. }
  1810. ]
  1811. }
  1812. }
  1813. +---+
  1814. <<XML response>>
  1815. HTTP Request:
  1816. ------
  1817. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0/attempts
  1818. Accept: application/xml
  1819. ------
  1820. Response Header:
  1821. +---+
  1822. HTTP/1.1 200 OK
  1823. Content-Type: application/xml
  1824. Content-Length: 537
  1825. Server: Jetty(6.1.26)
  1826. +---+
  1827. Response Body:
  1828. +---+
  1829. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  1830. <taskAttempts>
  1831. <taskAttempt>
  1832. <startTime>1326381450680</startTime>
  1833. <finishTime>1326381453318</finishTime>
  1834. <elapsedTime>2638</elapsedTime>
  1835. <progress>100.0</progress>
  1836. <id>attempt_1326381300833_2_2_m_0_0</id>
  1837. <rack>/98.139.92.0</rack>
  1838. <state>SUCCEEDED</state>
  1839. <nodeHttpAddress>host.domain.com:8042</nodeHttpAddress>
  1840. <diagnostics/>
  1841. <type>MAP</type>
  1842. <assignedContainerId>container_1326381300833_0002_01_000002</assignedContainerId>
  1843. </taskAttempt>
  1844. </taskAttempts>
  1845. +---+
  1846. ** {Task Attempt API}
  1847. A Task Attempt resource contains information about a particular task attempt within a job.
  1848. *** URI
  1849. Use the following URI to obtain an Task Attempt Object, from a task identified by the {attemptid} value.
  1850. ------
  1851. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/attempt/{attemptid}
  1852. ------
  1853. *** HTTP Operations Supported
  1854. ------
  1855. * GET
  1856. ------
  1857. *** Query Parameters Supported
  1858. ------
  1859. None
  1860. ------
  1861. *** Elements of the <taskAttempt> object
  1862. *---------------+--------------+-------------------------------+
  1863. || Item || Data Type || Description |
  1864. *---------------+--------------+-------------------------------+
  1865. | id | string | The task id |
  1866. *---------------+--------------+--------------------------------+
  1867. | rack | string | The rack |
  1868. *---------------+--------------+--------------------------------+
  1869. | state | string | The state of the task attempt - valid values are: NEW, UNASSIGNED, ASSIGNED, RUNNING, COMMIT_PENDING, SUCCESS_CONTAINER_CLEANUP, SUCCEEDED, FAIL_CONTAINER_CLEANUP, FAIL_TASK_CLEANUP, FAILED, KILL_CONTAINER_CLEANUP, KILL_TASK_CLEANUP, KILLED |
  1870. *---------------+--------------+--------------------------------+
  1871. | type | string | The type of task |
  1872. *---------------+--------------+--------------------------------+
  1873. | assignedContainerId | string | The container id this attempt is assigned to|
  1874. *---------------+--------------+--------------------------------+
  1875. | nodeHttpAddress | string | The http address of the node this task attempt ran on |
  1876. *---------------+--------------+--------------------------------+
  1877. | diagnostics| string | A diagnostics message |
  1878. *---------------+--------------+--------------------------------+
  1879. | progress | float | The progress of the task attempt as a percent|
  1880. *---------------+--------------+--------------------------------+
  1881. | startTime | long | The time in which the task attempt started (in ms since epoch)|
  1882. *---------------+--------------+--------------------------------+
  1883. | finishTime | long | The time in which the task attempt finished (in ms since epoch)|
  1884. *---------------+--------------+--------------------------------+
  1885. | elapsedTime | long | The elapsed time since the task attempt started (in ms)|
  1886. *---------------+--------------+--------------------------------+
  1887. For reduce task attempts you also have the following fields:
  1888. *---------------+--------------+-------------------------------+
  1889. || Item || Data Type || Description |
  1890. *---------------+--------------+-------------------------------+
  1891. | shuffleFinishTime | long | The time at which shuffle finished (in ms since epoch)|
  1892. *---------------+--------------+--------------------------------+
  1893. | mergeFinishTime | long | The time at which merge finished (in ms since epoch)|
  1894. *---------------+--------------+--------------------------------+
  1895. | elapsedShuffleTime | long | The time it took for the shuffle phase to complete (time in ms between reduce task start and shuffle finish)|
  1896. *---------------+--------------+--------------------------------+
  1897. | elapsedMergeTime | long | The time it took for the merge phase to complete (time in ms between the shuffle finish and merge finish)|
  1898. *---------------+--------------+--------------------------------+
  1899. | elapsedReduceTime | long | The time it took for the reduce phase to complete (time in ms between merge finish to end of reduce task)|
  1900. *---------------+--------------+--------------------------------+
  1901. *** Response Examples
  1902. <<JSON response>>
  1903. HTTP Request:
  1904. ------
  1905. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0/attempts/attempt_1326381300833_2_2_m_0_0
  1906. ------
  1907. Response Header:
  1908. +---+
  1909. HTTP/1.1 200 OK
  1910. Content-Type: application/json
  1911. Transfer-Encoding: chunked
  1912. Server: Jetty(6.1.26)
  1913. +---+
  1914. Response Body:
  1915. +---+
  1916. {
  1917. "taskAttempt" : {
  1918. "assignedContainerId" : "container_1326381300833_0002_01_000002",
  1919. "progress" : 100,
  1920. "elapsedTime" : 2638,
  1921. "state" : "SUCCEEDED",
  1922. "diagnostics" : "",
  1923. "rack" : "/98.139.92.0",
  1924. "nodeHttpAddress" : "host.domain.com:8042",
  1925. "startTime" : 1326381450680,
  1926. "id" : "attempt_1326381300833_2_2_m_0_0",
  1927. "type" : "MAP",
  1928. "finishTime" : 1326381453318
  1929. }
  1930. }
  1931. +---+
  1932. <<XML response>>
  1933. HTTP Request:
  1934. ------
  1935. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0/attempts/attempt_1326381300833_2_2_m_0_0
  1936. Accept: application/xml
  1937. ------
  1938. Response Header:
  1939. +---+
  1940. HTTP/1.1 200 OK
  1941. Content-Type: application/xml
  1942. Content-Length: 691
  1943. Server: Jetty(6.1.26)
  1944. +---+
  1945. Response Body:
  1946. +---+
  1947. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  1948. <taskAttempt>
  1949. <startTime>1326381450680</startTime>
  1950. <finishTime>1326381453318</finishTime>
  1951. <elapsedTime>2638</elapsedTime>
  1952. <progress>100.0</progress>
  1953. <id>attempt_1326381300833_2_2_m_0_0</id>
  1954. <rack>/98.139.92.0</rack>
  1955. <state>SUCCEEDED</state>
  1956. <nodeHttpAddress>host.domain.com:8042</nodeHttpAddress>
  1957. <diagnostics/>
  1958. <type>MAP</type>
  1959. <assignedContainerId>container_1326381300833_0002_01_000002</assignedContainerId>
  1960. </taskAttempt>
  1961. +---+
  1962. ** Task Attempt Counters API
  1963. With the task attempt counters API, you can object a collection of resources that represent al the counters for that task attempt.
  1964. *** URI
  1965. ------
  1966. * http://<history server http address:port>/ws/v1/history/mapreduce/jobs/{jobid}/tasks/{taskid}/attempt/{attemptid}/counters
  1967. ------
  1968. *** HTTP Operations Supported
  1969. ------
  1970. * GET
  1971. ------
  1972. *** Query Parameters Supported
  1973. ------
  1974. None
  1975. ------
  1976. *** Elements of the <jobTaskAttemptCounters> object
  1977. *---------------+--------------+-------------------------------+
  1978. || Item || Data Type || Description |
  1979. *---------------+--------------+-------------------------------+
  1980. | id | string | The task attempt id |
  1981. *---------------+--------------+-------------------------------+
  1982. | taskAttemptcounterGroup | array of task attempt counterGroup objects(JSON)/zero or more task attempt counterGroup objects(XML) | A collection of task attempt counter group objects |
  1983. *---------------+--------------+-------------------------------+
  1984. *** Elements of the <taskAttemptCounterGroup> object
  1985. *---------------+--------------+-------------------------------+
  1986. || Item || Data Type || Description |
  1987. *---------------+--------------+-------------------------------+
  1988. | counterGroupName | string | The name of the counter group |
  1989. *---------------+--------------+-------------------------------+
  1990. | counter | array of counter objects(JSON)/zero or more counter objects(XML) | A collection of counter objects |
  1991. *---------------+--------------+-------------------------------+
  1992. *** Elements of the <counter> object
  1993. *---------------+--------------+-------------------------------+
  1994. || Item || Data Type || Description |
  1995. *---------------+--------------+-------------------------------+
  1996. | name | string | The name of the counter |
  1997. *---------------+--------------+-------------------------------+
  1998. | value | long | The value of the counter |
  1999. *---------------+--------------+-------------------------------+
  2000. *** Response Examples
  2001. <<JSON response>>
  2002. HTTP Request:
  2003. ------
  2004. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0/attempts/attempt_1326381300833_2_2_m_0_0/counters
  2005. ------
  2006. Response Header:
  2007. +---+
  2008. HTTP/1.1 200 OK
  2009. Content-Type: application/json
  2010. Transfer-Encoding: chunked
  2011. Server: Jetty(6.1.26)
  2012. +---+
  2013. Response Body:
  2014. +---+
  2015. {
  2016. "jobTaskAttemptCounters" : {
  2017. "taskAttemptCounterGroup" : [
  2018. {
  2019. "counterGroupName" : "org.apache.hadoop.mapreduce.FileSystemCounter",
  2020. "counter" : [
  2021. {
  2022. "value" : 2363,
  2023. "name" : "FILE_BYTES_READ"
  2024. },
  2025. {
  2026. "value" : 54372,
  2027. "name" : "FILE_BYTES_WRITTEN"
  2028. },
  2029. {
  2030. "value" : 0,
  2031. "name" : "FILE_READ_OPS"
  2032. },
  2033. {
  2034. "value" : 0,
  2035. "name" : "FILE_LARGE_READ_OPS"
  2036. },
  2037. {
  2038. "value" : 0,
  2039. "name" : "FILE_WRITE_OPS"
  2040. },
  2041. {
  2042. "value" : 0,
  2043. "name" : "HDFS_BYTES_READ"
  2044. },
  2045. {
  2046. "value" : 0,
  2047. "name" : "HDFS_BYTES_WRITTEN"
  2048. },
  2049. {
  2050. "value" : 0,
  2051. "name" : "HDFS_READ_OPS"
  2052. },
  2053. {
  2054. "value" : 0,
  2055. "name" : "HDFS_LARGE_READ_OPS"
  2056. },
  2057. {
  2058. "value" : 0,
  2059. "name" : "HDFS_WRITE_OPS"
  2060. }
  2061. ]
  2062. },
  2063. {
  2064. "counterGroupName" : "org.apache.hadoop.mapreduce.TaskCounter",
  2065. "counter" : [
  2066. {
  2067. "value" : 0,
  2068. "name" : "COMBINE_INPUT_RECORDS"
  2069. },
  2070. {
  2071. "value" : 0,
  2072. "name" : "COMBINE_OUTPUT_RECORDS"
  2073. },
  2074. {
  2075. "value" : 460,
  2076. "name" : "REDUCE_INPUT_GROUPS"
  2077. },
  2078. {
  2079. "value" : 2235,
  2080. "name" : "REDUCE_SHUFFLE_BYTES"
  2081. },
  2082. {
  2083. "value" : 460,
  2084. "name" : "REDUCE_INPUT_RECORDS"
  2085. },
  2086. {
  2087. "value" : 0,
  2088. "name" : "REDUCE_OUTPUT_RECORDS"
  2089. },
  2090. {
  2091. "value" : 0,
  2092. "name" : "SPILLED_RECORDS"
  2093. },
  2094. {
  2095. "value" : 1,
  2096. "name" : "SHUFFLED_MAPS"
  2097. },
  2098. {
  2099. "value" : 0,
  2100. "name" : "FAILED_SHUFFLE"
  2101. },
  2102. {
  2103. "value" : 1,
  2104. "name" : "MERGED_MAP_OUTPUTS"
  2105. },
  2106. {
  2107. "value" : 26,
  2108. "name" : "GC_TIME_MILLIS"
  2109. },
  2110. {
  2111. "value" : 860,
  2112. "name" : "CPU_MILLISECONDS"
  2113. },
  2114. {
  2115. "value" : 107839488,
  2116. "name" : "PHYSICAL_MEMORY_BYTES"
  2117. },
  2118. {
  2119. "value" : 1123147776,
  2120. "name" : "VIRTUAL_MEMORY_BYTES"
  2121. },
  2122. {
  2123. "value" : 57475072,
  2124. "name" : "COMMITTED_HEAP_BYTES"
  2125. }
  2126. ]
  2127. },
  2128. {
  2129. "counterGroupName" : "Shuffle Errors",
  2130. "counter" : [
  2131. {
  2132. "value" : 0,
  2133. "name" : "BAD_ID"
  2134. },
  2135. {
  2136. "value" : 0,
  2137. "name" : "CONNECTION"
  2138. },
  2139. {
  2140. "value" : 0,
  2141. "name" : "IO_ERROR"
  2142. },
  2143. {
  2144. "value" : 0,
  2145. "name" : "WRONG_LENGTH"
  2146. },
  2147. {
  2148. "value" : 0,
  2149. "name" : "WRONG_MAP"
  2150. },
  2151. {
  2152. "value" : 0,
  2153. "name" : "WRONG_REDUCE"
  2154. }
  2155. ]
  2156. },
  2157. {
  2158. "counterGroupName" : "org.apache.hadoop.mapreduce.lib.output.FileOutputFormatCounter",
  2159. "counter" : [
  2160. {
  2161. "value" : 0,
  2162. "name" : "BYTES_WRITTEN"
  2163. }
  2164. ]
  2165. }
  2166. ],
  2167. "id" : "attempt_1326381300833_2_2_m_0_0"
  2168. }
  2169. }
  2170. +---+
  2171. <<XML response>>
  2172. HTTP Request:
  2173. ------
  2174. GET http://<history server http address:port>/ws/v1/history/mapreduce/jobs/job_1326381300833_2_2/tasks/task_1326381300833_2_2_m_0/attempts/attempt_1326381300833_2_2_m_0_0/counters
  2175. Accept: application/xml
  2176. ------
  2177. Response Header:
  2178. +---+
  2179. HTTP/1.1 200 OK
  2180. Content-Type: application/xml
  2181. Content-Length: 2735
  2182. Server: Jetty(6.1.26)
  2183. +---+
  2184. Response Body:
  2185. +---+
  2186. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2187. <jobTaskAttemptCounters>
  2188. <id>attempt_1326381300833_2_2_m_0_0</id>
  2189. <taskAttemptCounterGroup>
  2190. <counterGroupName>org.apache.hadoop.mapreduce.FileSystemCounter</counterGroupName>
  2191. <counter>
  2192. <name>FILE_BYTES_READ</name>
  2193. <value>2363</value>
  2194. </counter>
  2195. <counter>
  2196. <name>FILE_BYTES_WRITTEN</name>
  2197. <value>54372</value>
  2198. </counter>
  2199. <counter>
  2200. <name>FILE_READ_OPS</name>
  2201. <value>0</value>
  2202. </counter>
  2203. <counter>
  2204. <name>FILE_LARGE_READ_OPS</name>
  2205. <value>0</value>
  2206. </counter>
  2207. <counter>
  2208. <name>FILE_WRITE_OPS</name>
  2209. <value>0</value>
  2210. </counter>
  2211. <counter>
  2212. <name>HDFS_BYTES_READ</name>
  2213. <value>0</value>
  2214. </counter>
  2215. <counter>
  2216. <name>HDFS_BYTES_WRITTEN</name>
  2217. <value>0</value>
  2218. </counter>
  2219. <counter>
  2220. <name>HDFS_READ_OPS</name>
  2221. <value>0</value>
  2222. </counter>
  2223. <counter>
  2224. <name>HDFS_LARGE_READ_OPS</name>
  2225. <value>0</value>
  2226. </counter>
  2227. <counter>
  2228. <name>HDFS_WRITE_OPS</name>
  2229. <value>0</value>
  2230. </counter>
  2231. </taskAttemptCounterGroup>
  2232. <taskAttemptCounterGroup>
  2233. <counterGroupName>org.apache.hadoop.mapreduce.TaskCounter</counterGroupName>
  2234. <counter>
  2235. <name>COMBINE_INPUT_RECORDS</name>
  2236. <value>0</value>
  2237. </counter>
  2238. <counter>
  2239. <name>COMBINE_OUTPUT_RECORDS</name>
  2240. <value>0</value>
  2241. </counter>
  2242. <counter>
  2243. <name>REDUCE_INPUT_GROUPS</name>
  2244. <value>460</value>
  2245. </counter>
  2246. <counter>
  2247. <name>REDUCE_SHUFFLE_BYTES</name>
  2248. <value>2235</value>
  2249. </counter>
  2250. <counter>
  2251. <name>REDUCE_INPUT_RECORDS</name>
  2252. <value>460</value>
  2253. </counter>
  2254. <counter>
  2255. <name>REDUCE_OUTPUT_RECORDS</name>
  2256. <value>0</value>
  2257. </counter>
  2258. <counter>
  2259. <name>SPILLED_RECORDS</name>
  2260. <value>0</value>
  2261. </counter>
  2262. <counter>
  2263. <name>SHUFFLED_MAPS</name>
  2264. <value>1</value>
  2265. </counter>
  2266. <counter>
  2267. <name>FAILED_SHUFFLE</name>
  2268. <value>0</value>
  2269. </counter>
  2270. <counter>
  2271. <name>MERGED_MAP_OUTPUTS</name>
  2272. <value>1</value>
  2273. </counter>
  2274. <counter>
  2275. <name>GC_TIME_MILLIS</name>
  2276. <value>26</value>
  2277. </counter>
  2278. <counter>
  2279. <name>CPU_MILLISECONDS</name>
  2280. <value>860</value>
  2281. </counter>
  2282. <counter>
  2283. <name>PHYSICAL_MEMORY_BYTES</name>
  2284. <value>107839488</value>
  2285. </counter>
  2286. <counter>
  2287. <name>VIRTUAL_MEMORY_BYTES</name>
  2288. <value>1123147776</value>
  2289. </counter>
  2290. <counter>
  2291. <name>COMMITTED_HEAP_BYTES</name>
  2292. <value>57475072</value>
  2293. </counter>
  2294. </taskAttemptCounterGroup>
  2295. <taskAttemptCounterGroup>
  2296. <counterGroupName>Shuffle Errors</counterGroupName>
  2297. <counter>
  2298. <name>BAD_ID</name>
  2299. <value>0</value>
  2300. </counter>
  2301. <counter>
  2302. <name>CONNECTION</name>
  2303. <value>0</value>
  2304. </counter>
  2305. <counter>
  2306. <name>IO_ERROR</name>
  2307. <value>0</value>
  2308. </counter>
  2309. <counter>
  2310. <name>WRONG_LENGTH</name>
  2311. <value>0</value>
  2312. </counter>
  2313. <counter>
  2314. <name>WRONG_MAP</name>
  2315. <value>0</value>
  2316. </counter>
  2317. <counter>
  2318. <name>WRONG_REDUCE</name>
  2319. <value>0</value>
  2320. </counter>
  2321. </taskAttemptCounterGroup>
  2322. <taskAttemptCounterGroup>
  2323. <counterGroupName>org.apache.hadoop.mapreduce.lib.output.FileOutputFormatCounter</counterGroupName>
  2324. <counter>
  2325. <name>BYTES_WRITTEN</name>
  2326. <value>0</value>
  2327. </counter>
  2328. </taskAttemptCounterGroup>
  2329. </jobTaskAttemptCounters>
  2330. +---+