mapred-default.xml 62 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <!--
  4. Licensed to the Apache Software Foundation (ASF) under one or more
  5. contributor license agreements. See the NOTICE file distributed with
  6. this work for additional information regarding copyright ownership.
  7. The ASF licenses this file to You under the Apache License, Version 2.0
  8. (the "License"); you may not use this file except in compliance with
  9. the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <!-- Do not modify this file directly. Instead, copy entries that you -->
  18. <!-- wish to modify from this file into mapred-site.xml and change them -->
  19. <!-- there. If mapred-site.xml does not already exist, create it. -->
  20. <configuration>
  21. <property>
  22. <name>mapreduce.job.committer.setup.cleanup.needed</name>
  23. <value>true</value>
  24. <description> true, if job needs job-setup and job-cleanup.
  25. false, otherwise
  26. </description>
  27. </property>
  28. <!-- i/o properties -->
  29. <property>
  30. <name>mapreduce.task.io.sort.factor</name>
  31. <value>10</value>
  32. <description>The number of streams to merge at once while sorting
  33. files. This determines the number of open file handles.</description>
  34. </property>
  35. <property>
  36. <name>mapreduce.task.io.sort.mb</name>
  37. <value>100</value>
  38. <description>The total amount of buffer memory to use while sorting
  39. files, in megabytes. By default, gives each merge stream 1MB, which
  40. should minimize seeks.</description>
  41. </property>
  42. <property>
  43. <name>mapreduce.map.sort.spill.percent</name>
  44. <value>0.80</value>
  45. <description>The soft limit in the serialization buffer. Once reached, a
  46. thread will begin to spill the contents to disk in the background. Note that
  47. collection will not block if this threshold is exceeded while a spill is
  48. already in progress, so spills may be larger than this threshold when it is
  49. set to less than .5</description>
  50. </property>
  51. <property>
  52. <name>mapreduce.job.maps</name>
  53. <value>2</value>
  54. <description>The default number of map tasks per job.
  55. Ignored when mapreduce.framework.name is "local".
  56. </description>
  57. </property>
  58. <property>
  59. <name>mapreduce.job.reduces</name>
  60. <value>1</value>
  61. <description>The default number of reduce tasks per job. Typically set to 99%
  62. of the cluster's reduce capacity, so that if a node fails the reduces can
  63. still be executed in a single wave.
  64. Ignored when mapreduce.framework.name is "local".
  65. </description>
  66. </property>
  67. <property>
  68. <name>mapreduce.job.running.map.limit</name>
  69. <value>0</value>
  70. <description>The maximum number of simultaneous map tasks per job.
  71. There is no limit if this value is 0 or negative.
  72. </description>
  73. </property>
  74. <property>
  75. <name>mapreduce.job.running.reduce.limit</name>
  76. <value>0</value>
  77. <description>The maximum number of simultaneous reduce tasks per job.
  78. There is no limit if this value is 0 or negative.
  79. </description>
  80. </property>
  81. <property>
  82. <name>mapreduce.job.reducer.preempt.delay.sec</name>
  83. <value>0</value>
  84. <description>The threshold in terms of seconds after which an unsatisfied mapper
  85. request triggers reducer preemption to free space. Default 0 implies that the
  86. reduces should be preempted immediately after allocation if there is currently no
  87. room for newly allocated mappers.
  88. </description>
  89. </property>
  90. <property>
  91. <name>mapreduce.job.max.split.locations</name>
  92. <value>10</value>
  93. <description>The max number of block locations to store for each split for
  94. locality calculation.
  95. </description>
  96. </property>
  97. <property>
  98. <name>mapreduce.job.split.metainfo.maxsize</name>
  99. <value>10000000</value>
  100. <description>The maximum permissible size of the split metainfo file.
  101. The MapReduce ApplicationMaster won't attempt to read submitted split metainfo
  102. files bigger than this configured value.
  103. No limits if set to -1.
  104. </description>
  105. </property>
  106. <property>
  107. <name>mapreduce.map.maxattempts</name>
  108. <value>4</value>
  109. <description>Expert: The maximum number of attempts per map task.
  110. In other words, framework will try to execute a map task these many number
  111. of times before giving up on it.
  112. </description>
  113. </property>
  114. <property>
  115. <name>mapreduce.reduce.maxattempts</name>
  116. <value>4</value>
  117. <description>Expert: The maximum number of attempts per reduce task.
  118. In other words, framework will try to execute a reduce task these many number
  119. of times before giving up on it.
  120. </description>
  121. </property>
  122. <property>
  123. <name>mapreduce.reduce.shuffle.fetch.retry.enabled</name>
  124. <value>${yarn.nodemanager.recovery.enabled}</value>
  125. <description>Set to enable fetch retry during host restart.</description>
  126. </property>
  127. <property>
  128. <name>mapreduce.reduce.shuffle.fetch.retry.interval-ms</name>
  129. <value>1000</value>
  130. <description>Time of interval that fetcher retry to fetch again when some
  131. non-fatal failure happens because of some events like NM restart.
  132. </description>
  133. </property>
  134. <property>
  135. <name>mapreduce.reduce.shuffle.fetch.retry.timeout-ms</name>
  136. <value>30000</value>
  137. <description>Timeout value for fetcher to retry to fetch again when some
  138. non-fatal failure happens because of some events like NM restart.</description>
  139. </property>
  140. <property>
  141. <name>mapreduce.reduce.shuffle.retry-delay.max.ms</name>
  142. <value>60000</value>
  143. <description>The maximum number of ms the reducer will delay before retrying
  144. to download map data.
  145. </description>
  146. </property>
  147. <property>
  148. <name>mapreduce.reduce.shuffle.parallelcopies</name>
  149. <value>5</value>
  150. <description>The default number of parallel transfers run by reduce
  151. during the copy(shuffle) phase.
  152. </description>
  153. </property>
  154. <property>
  155. <name>mapreduce.reduce.shuffle.connect.timeout</name>
  156. <value>180000</value>
  157. <description>Expert: The maximum amount of time (in milli seconds) reduce
  158. task spends in trying to connect to a remote node for getting map output.
  159. </description>
  160. </property>
  161. <property>
  162. <name>mapreduce.reduce.shuffle.read.timeout</name>
  163. <value>180000</value>
  164. <description>Expert: The maximum amount of time (in milli seconds) reduce
  165. task waits for map output data to be available for reading after obtaining
  166. connection.
  167. </description>
  168. </property>
  169. <property>
  170. <name>mapreduce.shuffle.connection-keep-alive.enable</name>
  171. <value>false</value>
  172. <description>set to true to support keep-alive connections.</description>
  173. </property>
  174. <property>
  175. <name>mapreduce.shuffle.connection-keep-alive.timeout</name>
  176. <value>5</value>
  177. <description>The number of seconds a shuffle client attempts to retain
  178. http connection. Refer "Keep-Alive: timeout=" header in
  179. Http specification
  180. </description>
  181. </property>
  182. <property>
  183. <name>mapreduce.task.timeout</name>
  184. <value>600000</value>
  185. <description>The number of milliseconds before a task will be
  186. terminated if it neither reads an input, writes an output, nor
  187. updates its status string. A value of 0 disables the timeout.
  188. </description>
  189. </property>
  190. <property>
  191. <name>mapreduce.map.memory.mb</name>
  192. <value>-1</value>
  193. <description>The amount of memory to request from the scheduler for each
  194. map task. If this is not specified or is non-positive, it is inferred from
  195. mapreduce.map.java.opts and mapreduce.job.heap.memory-mb.ratio.
  196. If java-opts are also not specified, we set it to 1024.
  197. </description>
  198. </property>
  199. <property>
  200. <name>mapreduce.map.cpu.vcores</name>
  201. <value>1</value>
  202. <description>The number of virtual cores to request from the scheduler for
  203. each map task.
  204. </description>
  205. </property>
  206. <property>
  207. <name>mapreduce.reduce.memory.mb</name>
  208. <value>-1</value>
  209. <description>The amount of memory to request from the scheduler for each
  210. reduce task. If this is not specified or is non-positive, it is inferred
  211. from mapreduce.reduce.java.opts and mapreduce.job.heap.memory-mb.ratio.
  212. If java-opts are also not specified, we set it to 1024.
  213. </description>
  214. </property>
  215. <property>
  216. <name>mapreduce.reduce.cpu.vcores</name>
  217. <value>1</value>
  218. <description>The number of virtual cores to request from the scheduler for
  219. each reduce task.
  220. </description>
  221. </property>
  222. <property>
  223. <name>mapred.child.java.opts</name>
  224. <value></value>
  225. <description>Java opts for the task processes.
  226. The following symbol, if present, will be interpolated: @taskid@ is replaced
  227. by current TaskID. Any other occurrences of '@' will go unchanged.
  228. For example, to enable verbose gc logging to a file named for the taskid in
  229. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  230. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  231. Usage of -Djava.library.path can cause programs to no longer function if
  232. hadoop native libraries are used. These values should instead be set as part
  233. of LD_LIBRARY_PATH in the map / reduce JVM env using the mapreduce.map.env and
  234. mapreduce.reduce.env config settings.
  235. If -Xmx is not set, it is inferred from mapreduce.{map|reduce}.memory.mb and
  236. mapreduce.job.heap.memory-mb.ratio.
  237. </description>
  238. </property>
  239. <!-- This is commented out so that it won't override mapred.child.java.opts.
  240. <property>
  241. <name>mapreduce.map.java.opts</name>
  242. <value></value>
  243. <description>Java opts only for the child processes that are maps. If set,
  244. this will be used instead of mapred.child.java.opts. If -Xmx is not set,
  245. it is inferred from mapreduce.map.memory.mb and
  246. mapreduce.job.heap.memory-mb.ratio.
  247. </description>
  248. </property>
  249. -->
  250. <!-- This is commented out so that it won't override mapred.child.java.opts.
  251. <property>
  252. <name>mapreduce.reduce.java.opts</name>
  253. <value></value>
  254. <description>Java opts only for the child processes that are reduces. If set,
  255. this will be used instead of mapred.child.java.opts. If -Xmx is not set,
  256. it is inferred from mapreduce.reduce.memory.mb and
  257. mapreduce.job.heap.memory-mb.ratio.
  258. </description>
  259. </property>
  260. -->
  261. <property>
  262. <name>mapred.child.env</name>
  263. <value></value>
  264. <description>User added environment variables for the task processes.
  265. Example :
  266. 1) A=foo This will set the env variable A to foo
  267. 2) B=$B:c This is inherit nodemanager's B env variable on Unix.
  268. 3) B=%B%;c This is inherit nodemanager's B env variable on Windows.
  269. </description>
  270. </property>
  271. <!-- This is commented out so that it won't override mapred.child.env.
  272. <property>
  273. <name>mapreduce.map.env</name>
  274. <value></value>
  275. <description>User added environment variables for the map task processes.
  276. </description>
  277. </property>
  278. -->
  279. <!-- This is commented out so that it won't override mapred.child.env.
  280. <property>
  281. <name>mapreduce.reduce.env</name>
  282. <value></value>
  283. <description>User added environment variables for the reduce task processes.
  284. </description>
  285. </property>
  286. -->
  287. <property>
  288. <name>mapreduce.admin.user.env</name>
  289. <value></value>
  290. <description>
  291. Expert: Additional execution environment entries for
  292. map and reduce task processes. This is not an additive property.
  293. You must preserve the original value if you want your map and
  294. reduce tasks to have access to native libraries (compression, etc).
  295. When this value is empty, the command to set execution
  296. envrionment will be OS dependent:
  297. For linux, use LD_LIBRARY_PATH=$HADOOP_COMMON_HOME/lib/native.
  298. For windows, use PATH = %PATH%;%HADOOP_COMMON_HOME%\\bin.
  299. </description>
  300. </property>
  301. <property>
  302. <name>mapreduce.map.log.level</name>
  303. <value>INFO</value>
  304. <description>The logging level for the map task. The allowed levels are:
  305. OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE and ALL.
  306. The setting here could be overridden if "mapreduce.job.log4j-properties-file"
  307. is set.
  308. </description>
  309. </property>
  310. <property>
  311. <name>mapreduce.reduce.log.level</name>
  312. <value>INFO</value>
  313. <description>The logging level for the reduce task. The allowed levels are:
  314. OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE and ALL.
  315. The setting here could be overridden if "mapreduce.job.log4j-properties-file"
  316. is set.
  317. </description>
  318. </property>
  319. <property>
  320. <name>mapreduce.map.cpu.vcores</name>
  321. <value>1</value>
  322. <description>
  323. The number of virtual cores required for each map task.
  324. </description>
  325. </property>
  326. <property>
  327. <name>mapreduce.reduce.cpu.vcores</name>
  328. <value>1</value>
  329. <description>
  330. The number of virtual cores required for each reduce task.
  331. </description>
  332. </property>
  333. <property>
  334. <name>mapreduce.reduce.merge.inmem.threshold</name>
  335. <value>1000</value>
  336. <description>The threshold, in terms of the number of files
  337. for the in-memory merge process. When we accumulate threshold number of files
  338. we initiate the in-memory merge and spill to disk. A value of 0 or less than
  339. 0 indicates we want to DON'T have any threshold and instead depend only on
  340. the ramfs's memory consumption to trigger the merge.
  341. </description>
  342. </property>
  343. <property>
  344. <name>mapreduce.reduce.shuffle.merge.percent</name>
  345. <value>0.66</value>
  346. <description>The usage threshold at which an in-memory merge will be
  347. initiated, expressed as a percentage of the total memory allocated to
  348. storing in-memory map outputs, as defined by
  349. mapreduce.reduce.shuffle.input.buffer.percent.
  350. </description>
  351. </property>
  352. <property>
  353. <name>mapreduce.reduce.shuffle.input.buffer.percent</name>
  354. <value>0.70</value>
  355. <description>The percentage of memory to be allocated from the maximum heap
  356. size to storing map outputs during the shuffle.
  357. </description>
  358. </property>
  359. <property>
  360. <name>mapreduce.reduce.input.buffer.percent</name>
  361. <value>0.0</value>
  362. <description>The percentage of memory- relative to the maximum heap size- to
  363. retain map outputs during the reduce. When the shuffle is concluded, any
  364. remaining map outputs in memory must consume less than this threshold before
  365. the reduce can begin.
  366. </description>
  367. </property>
  368. <property>
  369. <name>mapreduce.reduce.shuffle.memory.limit.percent</name>
  370. <value>0.25</value>
  371. <description>Expert: Maximum percentage of the in-memory limit that a
  372. single shuffle can consume</description>
  373. </property>
  374. <property>
  375. <name>mapreduce.shuffle.ssl.enabled</name>
  376. <value>false</value>
  377. <description>
  378. Whether to use SSL for for the Shuffle HTTP endpoints.
  379. </description>
  380. </property>
  381. <property>
  382. <name>mapreduce.shuffle.ssl.file.buffer.size</name>
  383. <value>65536</value>
  384. <description>Buffer size for reading spills from file when using SSL.
  385. </description>
  386. </property>
  387. <property>
  388. <name>mapreduce.shuffle.max.connections</name>
  389. <value>0</value>
  390. <description>Max allowed connections for the shuffle. Set to 0 (zero)
  391. to indicate no limit on the number of connections.
  392. </description>
  393. </property>
  394. <property>
  395. <name>mapreduce.shuffle.max.threads</name>
  396. <value>0</value>
  397. <description>Max allowed threads for serving shuffle connections. Set to zero
  398. to indicate the default of 2 times the number of available
  399. processors (as reported by Runtime.availableProcessors()). Netty is used to
  400. serve requests, so a thread is not needed for each connection.
  401. </description>
  402. </property>
  403. <property>
  404. <name>mapreduce.shuffle.transferTo.allowed</name>
  405. <value></value>
  406. <description>This option can enable/disable using nio transferTo method in
  407. the shuffle phase. NIO transferTo does not perform well on windows in the
  408. shuffle phase. Thus, with this configuration property it is possible to
  409. disable it, in which case custom transfer method will be used. Recommended
  410. value is false when running Hadoop on Windows. For Linux, it is recommended
  411. to set it to true. If nothing is set then the default value is false for
  412. Windows, and true for Linux.
  413. </description>
  414. </property>
  415. <property>
  416. <name>mapreduce.shuffle.transfer.buffer.size</name>
  417. <value>131072</value>
  418. <description>This property is used only if
  419. mapreduce.shuffle.transferTo.allowed is set to false. In that case,
  420. this property defines the size of the buffer used in the buffer copy code
  421. for the shuffle phase. The size of this buffer determines the size of the IO
  422. requests.
  423. </description>
  424. </property>
  425. <property>
  426. <name>mapreduce.reduce.markreset.buffer.percent</name>
  427. <value>0.0</value>
  428. <description>The percentage of memory -relative to the maximum heap size- to
  429. be used for caching values when using the mark-reset functionality.
  430. </description>
  431. </property>
  432. <property>
  433. <name>mapreduce.map.speculative</name>
  434. <value>true</value>
  435. <description>If true, then multiple instances of some map tasks
  436. may be executed in parallel.</description>
  437. </property>
  438. <property>
  439. <name>mapreduce.reduce.speculative</name>
  440. <value>true</value>
  441. <description>If true, then multiple instances of some reduce tasks
  442. may be executed in parallel.</description>
  443. </property>
  444. <property>
  445. <name>mapreduce.job.speculative.speculative-cap-running-tasks</name>
  446. <value>0.1</value>
  447. <description>The max percent (0-1) of running tasks that
  448. can be speculatively re-executed at any time.</description>
  449. </property>
  450. <property>
  451. <name>mapreduce.job.speculative.speculative-cap-total-tasks</name>
  452. <value>0.01</value>
  453. <description>The max percent (0-1) of all tasks that
  454. can be speculatively re-executed at any time.</description>
  455. </property>
  456. <property>
  457. <name>mapreduce.job.speculative.minimum-allowed-tasks</name>
  458. <value>10</value>
  459. <description>The minimum allowed tasks that
  460. can be speculatively re-executed at any time.</description>
  461. </property>
  462. <property>
  463. <name>mapreduce.job.speculative.retry-after-no-speculate</name>
  464. <value>1000</value>
  465. <description>The waiting time(ms) to do next round of speculation
  466. if there is no task speculated in this round.</description>
  467. </property>
  468. <property>
  469. <name>mapreduce.job.speculative.retry-after-speculate</name>
  470. <value>15000</value>
  471. <description>The waiting time(ms) to do next round of speculation
  472. if there are tasks speculated in this round.</description>
  473. </property>
  474. <property>
  475. <name>mapreduce.job.map.output.collector.class</name>
  476. <value>org.apache.hadoop.mapred.MapTask$MapOutputBuffer</value>
  477. <description>
  478. The MapOutputCollector implementation(s) to use. This may be a comma-separated
  479. list of class names, in which case the map task will try to initialize each
  480. of the collectors in turn. The first to successfully initialize will be used.
  481. </description>
  482. </property>
  483. <property>
  484. <name>mapreduce.job.speculative.slowtaskthreshold</name>
  485. <value>1.0</value>
  486. <description>The number of standard deviations by which a task's
  487. ave progress-rates must be lower than the average of all running tasks'
  488. for the task to be considered too slow.
  489. </description>
  490. </property>
  491. <property>
  492. <name>mapreduce.job.ubertask.enable</name>
  493. <value>false</value>
  494. <description>Whether to enable the small-jobs "ubertask" optimization,
  495. which runs "sufficiently small" jobs sequentially within a single JVM.
  496. "Small" is defined by the following maxmaps, maxreduces, and maxbytes
  497. settings. Note that configurations for application masters also affect
  498. the "Small" definition - yarn.app.mapreduce.am.resource.mb must be
  499. larger than both mapreduce.map.memory.mb and mapreduce.reduce.memory.mb,
  500. and yarn.app.mapreduce.am.resource.cpu-vcores must be larger than
  501. both mapreduce.map.cpu.vcores and mapreduce.reduce.cpu.vcores to enable
  502. ubertask. Users may override this value.
  503. </description>
  504. </property>
  505. <property>
  506. <name>mapreduce.job.ubertask.maxmaps</name>
  507. <value>9</value>
  508. <description>Threshold for number of maps, beyond which job is considered
  509. too big for the ubertasking optimization. Users may override this value,
  510. but only downward.
  511. </description>
  512. </property>
  513. <property>
  514. <name>mapreduce.job.ubertask.maxreduces</name>
  515. <value>1</value>
  516. <description>Threshold for number of reduces, beyond which job is considered
  517. too big for the ubertasking optimization. CURRENTLY THE CODE CANNOT SUPPORT
  518. MORE THAN ONE REDUCE and will ignore larger values. (Zero is a valid max,
  519. however.) Users may override this value, but only downward.
  520. </description>
  521. </property>
  522. <property>
  523. <name>mapreduce.job.ubertask.maxbytes</name>
  524. <value></value>
  525. <description>Threshold for number of input bytes, beyond which job is
  526. considered too big for the ubertasking optimization. If no value is
  527. specified, dfs.block.size is used as a default. Be sure to specify a
  528. default value in mapred-site.xml if the underlying filesystem is not HDFS.
  529. Users may override this value, but only downward.
  530. </description>
  531. </property>
  532. <property>
  533. <name>mapreduce.job.emit-timeline-data</name>
  534. <value>false</value>
  535. <description>Specifies if the Application Master should emit timeline data
  536. to the timeline server. Individual jobs can override this value.
  537. </description>
  538. </property>
  539. <property>
  540. <name>mapreduce.input.fileinputformat.split.minsize</name>
  541. <value>0</value>
  542. <description>The minimum size chunk that map input should be split
  543. into. Note that some file formats may have minimum split sizes that
  544. take priority over this setting.</description>
  545. </property>
  546. <property>
  547. <name>mapreduce.input.fileinputformat.list-status.num-threads</name>
  548. <value>1</value>
  549. <description>The number of threads to use to list and fetch block locations
  550. for the specified input paths. Note: multiple threads should not be used
  551. if a custom non thread-safe path filter is used.
  552. </description>
  553. </property>
  554. <property>
  555. <name>mapreduce.input.lineinputformat.linespermap</name>
  556. <value>1</value>
  557. <description>When using NLineInputFormat, the number of lines of input data
  558. to include in each split.</description>
  559. </property>
  560. <property>
  561. <name>mapreduce.client.submit.file.replication</name>
  562. <value>10</value>
  563. <description>The replication level for submitted job files. This
  564. should be around the square root of the number of nodes.
  565. </description>
  566. </property>
  567. <property>
  568. <name>mapreduce.task.files.preserve.failedtasks</name>
  569. <value>false</value>
  570. <description>Should the files for failed tasks be kept. This should only be
  571. used on jobs that are failing, because the storage is never
  572. reclaimed. It also prevents the map outputs from being erased
  573. from the reduce directory as they are consumed.</description>
  574. </property>
  575. <!--
  576. <property>
  577. <name>mapreduce.task.files.preserve.filepattern</name>
  578. <value>.*_m_123456_0</value>
  579. <description>Keep all files from tasks whose task names match the given
  580. regular expression. Defaults to none.</description>
  581. </property>
  582. -->
  583. <property>
  584. <name>mapreduce.output.fileoutputformat.compress</name>
  585. <value>false</value>
  586. <description>Should the job outputs be compressed?
  587. </description>
  588. </property>
  589. <property>
  590. <name>mapreduce.output.fileoutputformat.compress.type</name>
  591. <value>RECORD</value>
  592. <description>If the job outputs are to compressed as SequenceFiles, how should
  593. they be compressed? Should be one of NONE, RECORD or BLOCK.
  594. </description>
  595. </property>
  596. <property>
  597. <name>mapreduce.output.fileoutputformat.compress.codec</name>
  598. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  599. <description>If the job outputs are compressed, how should they be compressed?
  600. </description>
  601. </property>
  602. <property>
  603. <name>mapreduce.map.output.compress</name>
  604. <value>false</value>
  605. <description>Should the outputs of the maps be compressed before being
  606. sent across the network. Uses SequenceFile compression.
  607. </description>
  608. </property>
  609. <property>
  610. <name>mapreduce.map.output.compress.codec</name>
  611. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  612. <description>If the map outputs are compressed, how should they be
  613. compressed?
  614. </description>
  615. </property>
  616. <property>
  617. <name>map.sort.class</name>
  618. <value>org.apache.hadoop.util.QuickSort</value>
  619. <description>The default sort class for sorting keys.
  620. </description>
  621. </property>
  622. <property>
  623. <name>mapreduce.task.userlog.limit.kb</name>
  624. <value>0</value>
  625. <description>The maximum size of user-logs of each task in KB. 0 disables the cap.
  626. </description>
  627. </property>
  628. <property>
  629. <name>yarn.app.mapreduce.am.container.log.limit.kb</name>
  630. <value>0</value>
  631. <description>The maximum size of the MRAppMaster attempt container logs in KB.
  632. 0 disables the cap.
  633. </description>
  634. </property>
  635. <property>
  636. <name>yarn.app.mapreduce.task.container.log.backups</name>
  637. <value>0</value>
  638. <description>Number of backup files for task logs when using
  639. ContainerRollingLogAppender (CRLA). See
  640. org.apache.log4j.RollingFileAppender.maxBackupIndex. By default,
  641. ContainerLogAppender (CLA) is used, and container logs are not rolled. CRLA
  642. is enabled for tasks when both mapreduce.task.userlog.limit.kb and
  643. yarn.app.mapreduce.task.container.log.backups are greater than zero.
  644. </description>
  645. </property>
  646. <property>
  647. <name>yarn.app.mapreduce.am.container.log.backups</name>
  648. <value>0</value>
  649. <description>Number of backup files for the ApplicationMaster logs when using
  650. ContainerRollingLogAppender (CRLA). See
  651. org.apache.log4j.RollingFileAppender.maxBackupIndex. By default,
  652. ContainerLogAppender (CLA) is used, and container logs are not rolled. CRLA
  653. is enabled for the ApplicationMaster when both
  654. yarn.app.mapreduce.am.container.log.limit.kb and
  655. yarn.app.mapreduce.am.container.log.backups are greater than zero.
  656. </description>
  657. </property>
  658. <property>
  659. <name>yarn.app.mapreduce.shuffle.log.separate</name>
  660. <value>true</value>
  661. <description>If enabled ('true') logging generated by the client-side shuffle
  662. classes in a reducer will be written in a dedicated log file
  663. 'syslog.shuffle' instead of 'syslog'.
  664. </description>
  665. </property>
  666. <property>
  667. <name>yarn.app.mapreduce.shuffle.log.limit.kb</name>
  668. <value>0</value>
  669. <description>Maximum size of the syslog.shuffle file in kilobytes
  670. (0 for no limit).
  671. </description>
  672. </property>
  673. <property>
  674. <name>yarn.app.mapreduce.shuffle.log.backups</name>
  675. <value>0</value>
  676. <description>If yarn.app.mapreduce.shuffle.log.limit.kb and
  677. yarn.app.mapreduce.shuffle.log.backups are greater than zero
  678. then a ContainerRollngLogAppender is used instead of ContainerLogAppender
  679. for syslog.shuffle. See
  680. org.apache.log4j.RollingFileAppender.maxBackupIndex
  681. </description>
  682. </property>
  683. <property>
  684. <name>mapreduce.job.maxtaskfailures.per.tracker</name>
  685. <value>3</value>
  686. <description>The number of task-failures on a node manager of a given job
  687. after which new tasks of that job aren't assigned to it. It
  688. MUST be less than mapreduce.map.maxattempts and
  689. mapreduce.reduce.maxattempts otherwise the failed task will
  690. never be tried on a different node.
  691. </description>
  692. </property>
  693. <property>
  694. <name>mapreduce.client.output.filter</name>
  695. <value>FAILED</value>
  696. <description>The filter for controlling the output of the task's userlogs sent
  697. to the console of the JobClient.
  698. The permissible options are: NONE, KILLED, FAILED, SUCCEEDED and
  699. ALL.
  700. </description>
  701. </property>
  702. <property>
  703. <name>mapreduce.client.completion.pollinterval</name>
  704. <value>5000</value>
  705. <description>The interval (in milliseconds) between which the JobClient
  706. polls the MapReduce ApplicationMaster for updates about job status. You may want to
  707. set this to a lower value to make tests run faster on a single node system. Adjusting
  708. this value in production may lead to unwanted client-server traffic.
  709. </description>
  710. </property>
  711. <property>
  712. <name>mapreduce.client.progressmonitor.pollinterval</name>
  713. <value>1000</value>
  714. <description>The interval (in milliseconds) between which the JobClient
  715. reports status to the console and checks for job completion. You may want to set this
  716. to a lower value to make tests run faster on a single node system. Adjusting
  717. this value in production may lead to unwanted client-server traffic.
  718. </description>
  719. </property>
  720. <property>
  721. <name>mapreduce.task.profile</name>
  722. <value>false</value>
  723. <description>To set whether the system should collect profiler
  724. information for some of the tasks in this job? The information is stored
  725. in the user log directory. The value is "true" if task profiling
  726. is enabled.</description>
  727. </property>
  728. <property>
  729. <name>mapreduce.task.profile.maps</name>
  730. <value>0-2</value>
  731. <description> To set the ranges of map tasks to profile.
  732. mapreduce.task.profile has to be set to true for the value to be accounted.
  733. </description>
  734. </property>
  735. <property>
  736. <name>mapreduce.task.profile.reduces</name>
  737. <value>0-2</value>
  738. <description> To set the ranges of reduce tasks to profile.
  739. mapreduce.task.profile has to be set to true for the value to be accounted.
  740. </description>
  741. </property>
  742. <property>
  743. <name>mapreduce.task.profile.params</name>
  744. <value>-agentlib:hprof=cpu=samples,heap=sites,force=n,thread=y,verbose=n,file=%s</value>
  745. <description>JVM profiler parameters used to profile map and reduce task
  746. attempts. This string may contain a single format specifier %s that will
  747. be replaced by the path to profile.out in the task attempt log directory.
  748. To specify different profiling options for map tasks and reduce tasks,
  749. more specific parameters mapreduce.task.profile.map.params and
  750. mapreduce.task.profile.reduce.params should be used.</description>
  751. </property>
  752. <property>
  753. <name>mapreduce.task.profile.map.params</name>
  754. <value>${mapreduce.task.profile.params}</value>
  755. <description>Map-task-specific JVM profiler parameters. See
  756. mapreduce.task.profile.params</description>
  757. </property>
  758. <property>
  759. <name>mapreduce.task.profile.reduce.params</name>
  760. <value>${mapreduce.task.profile.params}</value>
  761. <description>Reduce-task-specific JVM profiler parameters. See
  762. mapreduce.task.profile.params</description>
  763. </property>
  764. <property>
  765. <name>mapreduce.task.skip.start.attempts</name>
  766. <value>2</value>
  767. <description> The number of Task attempts AFTER which skip mode
  768. will be kicked off. When skip mode is kicked off, the
  769. tasks reports the range of records which it will process
  770. next, to the MR ApplicationMaster. So that on failures, the MR AM
  771. knows which ones are possibly the bad records. On further executions,
  772. those are skipped.
  773. </description>
  774. </property>
  775. <property>
  776. <name>mapreduce.job.skip.outdir</name>
  777. <value></value>
  778. <description> If no value is specified here, the skipped records are
  779. written to the output directory at _logs/skip.
  780. User can stop writing skipped records by giving the value "none".
  781. </description>
  782. </property>
  783. <property>
  784. <name>mapreduce.map.skip.maxrecords</name>
  785. <value>0</value>
  786. <description> The number of acceptable skip records surrounding the bad
  787. record PER bad record in mapper. The number includes the bad record as well.
  788. To turn the feature of detection/skipping of bad records off, set the
  789. value to 0.
  790. The framework tries to narrow down the skipped range by retrying
  791. until this threshold is met OR all attempts get exhausted for this task.
  792. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  793. narrow down. Whatever records(depends on application) get skipped are
  794. acceptable.
  795. </description>
  796. </property>
  797. <property>
  798. <name>mapreduce.reduce.skip.maxgroups</name>
  799. <value>0</value>
  800. <description> The number of acceptable skip groups surrounding the bad
  801. group PER bad group in reducer. The number includes the bad group as well.
  802. To turn the feature of detection/skipping of bad groups off, set the
  803. value to 0.
  804. The framework tries to narrow down the skipped range by retrying
  805. until this threshold is met OR all attempts get exhausted for this task.
  806. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  807. narrow down. Whatever groups(depends on application) get skipped are
  808. acceptable.
  809. </description>
  810. </property>
  811. <property>
  812. <name>mapreduce.ifile.readahead</name>
  813. <value>true</value>
  814. <description>Configuration key to enable/disable IFile readahead.
  815. </description>
  816. </property>
  817. <property>
  818. <name>mapreduce.ifile.readahead.bytes</name>
  819. <value>4194304</value>
  820. <description>Configuration key to set the IFile readahead length in bytes.
  821. </description>
  822. </property>
  823. <property>
  824. <name>mapreduce.job.queuename</name>
  825. <value>default</value>
  826. <description> Queue to which a job is submitted. This must match one of the
  827. queues defined in mapred-queues.xml for the system. Also, the ACL setup
  828. for the queue must allow the current user to submit a job to the queue.
  829. Before specifying a queue, ensure that the system is configured with
  830. the queue, and access is allowed for submitting jobs to the queue.
  831. </description>
  832. </property>
  833. <property>
  834. <name>mapreduce.job.tags</name>
  835. <value></value>
  836. <description> Tags for the job that will be passed to YARN at submission
  837. time. Queries to YARN for applications can filter on these tags.
  838. </description>
  839. </property>
  840. <property>
  841. <name>mapreduce.cluster.local.dir</name>
  842. <value>${hadoop.tmp.dir}/mapred/local</value>
  843. <description>
  844. The local directory where MapReduce stores intermediate
  845. data files. May be a comma-separated list of
  846. directories on different devices in order to spread disk i/o.
  847. Directories that do not exist are ignored.
  848. </description>
  849. </property>
  850. <property>
  851. <name>mapreduce.cluster.acls.enabled</name>
  852. <value>false</value>
  853. <description> Specifies whether ACLs should be checked
  854. for authorization of users for doing various queue and job level operations.
  855. ACLs are disabled by default. If enabled, access control checks are made by
  856. MapReduce ApplicationMaster when requests are made by users for queue
  857. operations like submit job to a queue and kill a job in the queue and job
  858. operations like viewing the job-details (See mapreduce.job.acl-view-job)
  859. or for modifying the job (See mapreduce.job.acl-modify-job) using
  860. Map/Reduce APIs, RPCs or via the console and web user interfaces.
  861. For enabling this flag, set to true in mapred-site.xml file of all
  862. MapReduce clients (MR job submitting nodes).
  863. </description>
  864. </property>
  865. <property>
  866. <name>mapreduce.job.acl-modify-job</name>
  867. <value> </value>
  868. <description> Job specific access-control list for 'modifying' the job. It
  869. is only used if authorization is enabled in Map/Reduce by setting the
  870. configuration property mapreduce.cluster.acls.enabled to true.
  871. This specifies the list of users and/or groups who can do modification
  872. operations on the job. For specifying a list of users and groups the
  873. format to use is "user1,user2 group1,group". If set to '*', it allows all
  874. users/groups to modify this job. If set to ' '(i.e. space), it allows
  875. none. This configuration is used to guard all the modifications with respect
  876. to this job and takes care of all the following operations:
  877. o killing this job
  878. o killing a task of this job, failing a task of this job
  879. o setting the priority of this job
  880. Each of these operations are also protected by the per-queue level ACL
  881. "acl-administer-jobs" configured via mapred-queues.xml. So a caller should
  882. have the authorization to satisfy either the queue-level ACL or the
  883. job-level ACL.
  884. Irrespective of this ACL configuration, (a) job-owner, (b) the user who
  885. started the cluster, (c) members of an admin configured supergroup
  886. configured via mapreduce.cluster.permissions.supergroup and (d) queue
  887. administrators of the queue to which this job was submitted to configured
  888. via acl-administer-jobs for the specific queue in mapred-queues.xml can
  889. do all the modification operations on a job.
  890. By default, nobody else besides job-owner, the user who started the cluster,
  891. members of supergroup and queue administrators can perform modification
  892. operations on a job.
  893. </description>
  894. </property>
  895. <property>
  896. <name>mapreduce.job.acl-view-job</name>
  897. <value> </value>
  898. <description> Job specific access-control list for 'viewing' the job. It is
  899. only used if authorization is enabled in Map/Reduce by setting the
  900. configuration property mapreduce.cluster.acls.enabled to true.
  901. This specifies the list of users and/or groups who can view private details
  902. about the job. For specifying a list of users and groups the
  903. format to use is "user1,user2 group1,group". If set to '*', it allows all
  904. users/groups to modify this job. If set to ' '(i.e. space), it allows
  905. none. This configuration is used to guard some of the job-views and at
  906. present only protects APIs that can return possibly sensitive information
  907. of the job-owner like
  908. o job-level counters
  909. o task-level counters
  910. o tasks' diagnostic information
  911. o task-logs displayed on the HistoryServer's web-UI and
  912. o job.xml showed by the HistoryServer's web-UI
  913. Every other piece of information of jobs is still accessible by any other
  914. user, for e.g., JobStatus, JobProfile, list of jobs in the queue, etc.
  915. Irrespective of this ACL configuration, (a) job-owner, (b) the user who
  916. started the cluster, (c) members of an admin configured supergroup
  917. configured via mapreduce.cluster.permissions.supergroup and (d) queue
  918. administrators of the queue to which this job was submitted to configured
  919. via acl-administer-jobs for the specific queue in mapred-queues.xml can
  920. do all the view operations on a job.
  921. By default, nobody else besides job-owner, the user who started the
  922. cluster, memebers of supergroup and queue administrators can perform
  923. view operations on a job.
  924. </description>
  925. </property>
  926. <property>
  927. <name>mapreduce.job.token.tracking.ids.enabled</name>
  928. <value>false</value>
  929. <description>Whether to write tracking ids of tokens to
  930. job-conf. When true, the configuration property
  931. "mapreduce.job.token.tracking.ids" is set to the token-tracking-ids of
  932. the job</description>
  933. </property>
  934. <property>
  935. <name>mapreduce.job.token.tracking.ids</name>
  936. <value></value>
  937. <description>When mapreduce.job.token.tracking.ids.enabled is
  938. set to true, this is set by the framework to the
  939. token-tracking-ids used by the job.</description>
  940. </property>
  941. <property>
  942. <name>mapreduce.task.merge.progress.records</name>
  943. <value>10000</value>
  944. <description> The number of records to process during merge before
  945. sending a progress notification to the MR ApplicationMaster.
  946. </description>
  947. </property>
  948. <property>
  949. <name>mapreduce.task.combine.progress.records</name>
  950. <value>10000</value>
  951. <description> The number of records to process during combine output collection
  952. before sending a progress notification.
  953. </description>
  954. </property>
  955. <property>
  956. <name>mapreduce.job.reduce.slowstart.completedmaps</name>
  957. <value>0.05</value>
  958. <description>Fraction of the number of maps in the job which should be
  959. complete before reduces are scheduled for the job.
  960. </description>
  961. </property>
  962. <property>
  963. <name>mapreduce.job.complete.cancel.delegation.tokens</name>
  964. <value>true</value>
  965. <description> if false - do not unregister/cancel delegation tokens from
  966. renewal, because same tokens may be used by spawned jobs
  967. </description>
  968. </property>
  969. <property>
  970. <name>mapreduce.shuffle.port</name>
  971. <value>13562</value>
  972. <description>Default port that the ShuffleHandler will run on. ShuffleHandler
  973. is a service run at the NodeManager to facilitate transfers of intermediate
  974. Map outputs to requesting Reducers.
  975. </description>
  976. </property>
  977. <property>
  978. <name>mapreduce.job.reduce.shuffle.consumer.plugin.class</name>
  979. <value>org.apache.hadoop.mapreduce.task.reduce.Shuffle</value>
  980. <description>
  981. Name of the class whose instance will be used
  982. to send shuffle requests by reducetasks of this job.
  983. The class must be an instance of org.apache.hadoop.mapred.ShuffleConsumerPlugin.
  984. </description>
  985. </property>
  986. <!-- MR YARN Application properties -->
  987. <property>
  988. <name>mapreduce.job.node-label-expression</name>
  989. <description>All the containers of the Map Reduce job will be run with this
  990. node label expression. If the node-label-expression for job is not set, then
  991. it will use queue's default-node-label-expression for all job's containers.
  992. </description>
  993. </property>
  994. <property>
  995. <name>mapreduce.job.am.node-label-expression</name>
  996. <description>This is node-label configuration for Map Reduce Application Master
  997. container. If not configured it will make use of
  998. mapreduce.job.node-label-expression and if job's node-label expression is not
  999. configured then it will use queue's default-node-label-expression.
  1000. </description>
  1001. </property>
  1002. <property>
  1003. <name>mapreduce.map.node-label-expression</name>
  1004. <description>This is node-label configuration for Map task containers. If not
  1005. configured it will use mapreduce.job.node-label-expression and if job's
  1006. node-label expression is not configured then it will use queue's
  1007. default-node-label-expression.
  1008. </description>
  1009. </property>
  1010. <property>
  1011. <name>mapreduce.reduce.node-label-expression</name>
  1012. <description>This is node-label configuration for Reduce task containers. If
  1013. not configured it will use mapreduce.job.node-label-expression and if job's
  1014. node-label expression is not configured then it will use queue's
  1015. default-node-label-expression.
  1016. </description>
  1017. </property>
  1018. <property>
  1019. <name>mapreduce.job.counters.limit</name>
  1020. <value>120</value>
  1021. <description>Limit on the number of user counters allowed per job.
  1022. </description>
  1023. </property>
  1024. <property>
  1025. <name>mapreduce.framework.name</name>
  1026. <value>local</value>
  1027. <description>The runtime framework for executing MapReduce jobs.
  1028. Can be one of local, classic or yarn.
  1029. </description>
  1030. </property>
  1031. <property>
  1032. <name>yarn.app.mapreduce.am.staging-dir</name>
  1033. <value>/tmp/hadoop-yarn/staging</value>
  1034. <description>The staging dir used while submitting jobs.
  1035. </description>
  1036. </property>
  1037. <property>
  1038. <name>mapreduce.am.max-attempts</name>
  1039. <value>2</value>
  1040. <description>The maximum number of application attempts. It is a
  1041. application-specific setting. It should not be larger than the global number
  1042. set by resourcemanager. Otherwise, it will be override. The default number is
  1043. set to 2, to allow at least one retry for AM.</description>
  1044. </property>
  1045. <!-- Job Notification Configuration -->
  1046. <property>
  1047. <name>mapreduce.job.end-notification.url</name>
  1048. <!--<value>http://localhost:8080/jobstatus.php?jobId=$jobId&amp;jobStatus=$jobStatus</value>-->
  1049. <description>Indicates url which will be called on completion of job to inform
  1050. end status of job.
  1051. User can give at most 2 variables with URI : $jobId and $jobStatus.
  1052. If they are present in URI, then they will be replaced by their
  1053. respective values.
  1054. </description>
  1055. </property>
  1056. <property>
  1057. <name>mapreduce.job.end-notification.retry.attempts</name>
  1058. <value>0</value>
  1059. <description>The number of times the submitter of the job wants to retry job
  1060. end notification if it fails. This is capped by
  1061. mapreduce.job.end-notification.max.attempts</description>
  1062. </property>
  1063. <property>
  1064. <name>mapreduce.job.end-notification.retry.interval</name>
  1065. <value>1000</value>
  1066. <description>The number of milliseconds the submitter of the job wants to
  1067. wait before job end notification is retried if it fails. This is capped by
  1068. mapreduce.job.end-notification.max.retry.interval</description>
  1069. </property>
  1070. <property>
  1071. <name>mapreduce.job.end-notification.max.attempts</name>
  1072. <value>5</value>
  1073. <final>true</final>
  1074. <description>The maximum number of times a URL will be read for providing job
  1075. end notification. Cluster administrators can set this to limit how long
  1076. after end of a job, the Application Master waits before exiting. Must be
  1077. marked as final to prevent users from overriding this.
  1078. </description>
  1079. </property>
  1080. <property>
  1081. <name>mapreduce.job.log4j-properties-file</name>
  1082. <value></value>
  1083. <description>Used to override the default settings of log4j in container-log4j.properties
  1084. for NodeManager. Like container-log4j.properties, it requires certain
  1085. framework appenders properly defined in this overriden file. The file on the
  1086. path will be added to distributed cache and classpath. If no-scheme is given
  1087. in the path, it defaults to point to a log4j file on the local FS.
  1088. </description>
  1089. </property>
  1090. <property>
  1091. <name>mapreduce.job.end-notification.max.retry.interval</name>
  1092. <value>5000</value>
  1093. <final>true</final>
  1094. <description>The maximum amount of time (in milliseconds) to wait before
  1095. retrying job end notification. Cluster administrators can set this to
  1096. limit how long the Application Master waits before exiting. Must be marked
  1097. as final to prevent users from overriding this.</description>
  1098. </property>
  1099. <property>
  1100. <name>yarn.app.mapreduce.am.env</name>
  1101. <value></value>
  1102. <description>User added environment variables for the MR App Master
  1103. processes. Example :
  1104. 1) A=foo This will set the env variable A to foo
  1105. 2) B=$B:c This is inherit tasktracker's B env variable.
  1106. </description>
  1107. </property>
  1108. <property>
  1109. <name>yarn.app.mapreduce.am.admin.user.env</name>
  1110. <value></value>
  1111. <description> Environment variables for the MR App Master
  1112. processes for admin purposes. These values are set first and can be
  1113. overridden by the user env (yarn.app.mapreduce.am.env) Example :
  1114. 1) A=foo This will set the env variable A to foo
  1115. 2) B=$B:c This is inherit app master's B env variable.
  1116. </description>
  1117. </property>
  1118. <property>
  1119. <name>yarn.app.mapreduce.am.command-opts</name>
  1120. <value>-Xmx1024m</value>
  1121. <description>Java opts for the MR App Master processes.
  1122. The following symbol, if present, will be interpolated: @taskid@ is replaced
  1123. by current TaskID. Any other occurrences of '@' will go unchanged.
  1124. For example, to enable verbose gc logging to a file named for the taskid in
  1125. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  1126. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  1127. Usage of -Djava.library.path can cause programs to no longer function if
  1128. hadoop native libraries are used. These values should instead be set as part
  1129. of LD_LIBRARY_PATH in the map / reduce JVM env using the mapreduce.map.env and
  1130. mapreduce.reduce.env config settings.
  1131. </description>
  1132. </property>
  1133. <property>
  1134. <name>yarn.app.mapreduce.am.admin-command-opts</name>
  1135. <value></value>
  1136. <description>Java opts for the MR App Master processes for admin purposes.
  1137. It will appears before the opts set by yarn.app.mapreduce.am.command-opts and
  1138. thus its options can be overridden user.
  1139. Usage of -Djava.library.path can cause programs to no longer function if
  1140. hadoop native libraries are used. These values should instead be set as part
  1141. of LD_LIBRARY_PATH in the map / reduce JVM env using the mapreduce.map.env and
  1142. mapreduce.reduce.env config settings.
  1143. </description>
  1144. </property>
  1145. <property>
  1146. <name>yarn.app.mapreduce.am.job.task.listener.thread-count</name>
  1147. <value>30</value>
  1148. <description>The number of threads used to handle RPC calls in the
  1149. MR AppMaster from remote tasks</description>
  1150. </property>
  1151. <property>
  1152. <name>yarn.app.mapreduce.am.job.client.port-range</name>
  1153. <value></value>
  1154. <description>Range of ports that the MapReduce AM can use when binding.
  1155. Leave blank if you want all possible ports.
  1156. For example 50000-50050,50100-50200</description>
  1157. </property>
  1158. <property>
  1159. <name>yarn.app.mapreduce.am.job.committer.cancel-timeout</name>
  1160. <value>60000</value>
  1161. <description>The amount of time in milliseconds to wait for the output
  1162. committer to cancel an operation if the job is killed</description>
  1163. </property>
  1164. <property>
  1165. <name>yarn.app.mapreduce.am.job.committer.commit-window</name>
  1166. <value>10000</value>
  1167. <description>Defines a time window in milliseconds for output commit
  1168. operations. If contact with the RM has occurred within this window then
  1169. commits are allowed, otherwise the AM will not allow output commits until
  1170. contact with the RM has been re-established.</description>
  1171. </property>
  1172. <property>
  1173. <name>mapreduce.fileoutputcommitter.algorithm.version</name>
  1174. <value>2</value>
  1175. <description>The file output committer algorithm version
  1176. valid algorithm version number: 1 or 2
  1177. default to 1, which is the original algorithm
  1178. In algorithm version 1,
  1179. 1. commitTask will rename directory
  1180. $joboutput/_temporary/$appAttemptID/_temporary/$taskAttemptID/
  1181. to
  1182. $joboutput/_temporary/$appAttemptID/$taskID/
  1183. 2. recoverTask will also do a rename
  1184. $joboutput/_temporary/$appAttemptID/$taskID/
  1185. to
  1186. $joboutput/_temporary/($appAttemptID + 1)/$taskID/
  1187. 3. commitJob will merge every task output file in
  1188. $joboutput/_temporary/$appAttemptID/$taskID/
  1189. to
  1190. $joboutput/, then it will delete $joboutput/_temporary/
  1191. and write $joboutput/_SUCCESS
  1192. It has a performance regression, which is discussed in MAPREDUCE-4815.
  1193. If a job generates many files to commit then the commitJob
  1194. method call at the end of the job can take minutes.
  1195. the commit is single-threaded and waits until all
  1196. tasks have completed before commencing.
  1197. algorithm version 2 will change the behavior of commitTask,
  1198. recoverTask, and commitJob.
  1199. 1. commitTask will rename all files in
  1200. $joboutput/_temporary/$appAttemptID/_temporary/$taskAttemptID/
  1201. to $joboutput/
  1202. 2. recoverTask actually doesn't require to do anything, but for
  1203. upgrade from version 1 to version 2 case, it will check if there
  1204. are any files in
  1205. $joboutput/_temporary/($appAttemptID - 1)/$taskID/
  1206. and rename them to $joboutput/
  1207. 3. commitJob can simply delete $joboutput/_temporary and write
  1208. $joboutput/_SUCCESS
  1209. This algorithm will reduce the output commit time for
  1210. large jobs by having the tasks commit directly to the final
  1211. output directory as they were completing and commitJob had
  1212. very little to do.
  1213. </description>
  1214. </property>
  1215. <property>
  1216. <name>yarn.app.mapreduce.am.scheduler.heartbeat.interval-ms</name>
  1217. <value>1000</value>
  1218. <description>The interval in ms at which the MR AppMaster should send
  1219. heartbeats to the ResourceManager</description>
  1220. </property>
  1221. <property>
  1222. <name>yarn.app.mapreduce.client-am.ipc.max-retries</name>
  1223. <value>3</value>
  1224. <description>The number of client retries to the AM - before reconnecting
  1225. to the RM to fetch Application Status.</description>
  1226. </property>
  1227. <property>
  1228. <name>yarn.app.mapreduce.client-am.ipc.max-retries-on-timeouts</name>
  1229. <value>3</value>
  1230. <description>The number of client retries on socket timeouts to the AM - before
  1231. reconnecting to the RM to fetch Application Status.</description>
  1232. </property>
  1233. <property>
  1234. <name>yarn.app.mapreduce.client.max-retries</name>
  1235. <value>3</value>
  1236. <description>The number of client retries to the RM/HS before
  1237. throwing exception. This is a layer above the ipc.</description>
  1238. </property>
  1239. <property>
  1240. <name>yarn.app.mapreduce.am.resource.mb</name>
  1241. <value>1536</value>
  1242. <description>The amount of memory the MR AppMaster needs.</description>
  1243. </property>
  1244. <property>
  1245. <name>yarn.app.mapreduce.am.resource.cpu-vcores</name>
  1246. <value>1</value>
  1247. <description>
  1248. The number of virtual CPU cores the MR AppMaster needs.
  1249. </description>
  1250. </property>
  1251. <property>
  1252. <name>yarn.app.mapreduce.am.hard-kill-timeout-ms</name>
  1253. <value>10000</value>
  1254. <description>
  1255. Number of milliseconds to wait before the job client kills the application.
  1256. </description>
  1257. </property>
  1258. <property>
  1259. <name>yarn.app.mapreduce.client.job.max-retries</name>
  1260. <value>0</value>
  1261. <description>The number of retries the client will make for getJob and
  1262. dependent calls. The default is 0 as this is generally only needed for
  1263. non-HDFS DFS where additional, high level retries are required to avoid
  1264. spurious failures during the getJob call. 30 is a good value for
  1265. WASB</description>
  1266. </property>
  1267. <property>
  1268. <name>yarn.app.mapreduce.client.job.retry-interval</name>
  1269. <value>2000</value>
  1270. <description>The delay between getJob retries in ms for retries configured
  1271. with yarn.app.mapreduce.client.job.max-retries.</description>
  1272. </property>
  1273. <property>
  1274. <description>CLASSPATH for MR applications. A comma-separated list
  1275. of CLASSPATH entries. If mapreduce.application.framework is set then this
  1276. must specify the appropriate classpath for that archive, and the name of
  1277. the archive must be present in the classpath.
  1278. If mapreduce.app-submission.cross-platform is false, platform-specific
  1279. environment vairable expansion syntax would be used to construct the default
  1280. CLASSPATH entries.
  1281. For Linux:
  1282. $HADOOP_MAPRED_HOME/share/hadoop/mapreduce/*,
  1283. $HADOOP_MAPRED_HOME/share/hadoop/mapreduce/lib/*.
  1284. For Windows:
  1285. %HADOOP_MAPRED_HOME%/share/hadoop/mapreduce/*,
  1286. %HADOOP_MAPRED_HOME%/share/hadoop/mapreduce/lib/*.
  1287. If mapreduce.app-submission.cross-platform is true, platform-agnostic default
  1288. CLASSPATH for MR applications would be used:
  1289. {{HADOOP_MAPRED_HOME}}/share/hadoop/mapreduce/*,
  1290. {{HADOOP_MAPRED_HOME}}/share/hadoop/mapreduce/lib/*
  1291. Parameter expansion marker will be replaced by NodeManager on container
  1292. launch based on the underlying OS accordingly.
  1293. </description>
  1294. <name>mapreduce.application.classpath</name>
  1295. <value></value>
  1296. </property>
  1297. <property>
  1298. <description>If enabled, user can submit an application cross-platform
  1299. i.e. submit an application from a Windows client to a Linux/Unix server or
  1300. vice versa.
  1301. </description>
  1302. <name>mapreduce.app-submission.cross-platform</name>
  1303. <value>false</value>
  1304. </property>
  1305. <property>
  1306. <description>Path to the MapReduce framework archive. If set, the framework
  1307. archive will automatically be distributed along with the job, and this
  1308. path would normally reside in a public location in an HDFS filesystem. As
  1309. with distributed cache files, this can be a URL with a fragment specifying
  1310. the alias to use for the archive name. For example,
  1311. hdfs:/mapred/framework/hadoop-mapreduce-2.1.1.tar.gz#mrframework would
  1312. alias the localized archive as "mrframework".
  1313. Note that mapreduce.application.classpath must include the appropriate
  1314. classpath for the specified framework. The base name of the archive, or
  1315. alias of the archive if an alias is used, must appear in the specified
  1316. classpath.
  1317. </description>
  1318. <name>mapreduce.application.framework.path</name>
  1319. <value></value>
  1320. </property>
  1321. <property>
  1322. <name>mapreduce.job.classloader</name>
  1323. <value>false</value>
  1324. <description>Whether to use a separate (isolated) classloader for
  1325. user classes in the task JVM.</description>
  1326. </property>
  1327. <property>
  1328. <name>mapreduce.job.classloader.system.classes</name>
  1329. <value></value>
  1330. <description>Used to override the default definition of the system classes for
  1331. the job classloader. The system classes are a comma-separated list of
  1332. patterns that indicate whether to load a class from the system classpath,
  1333. instead from the user-supplied JARs, when mapreduce.job.classloader is
  1334. enabled.
  1335. A positive pattern is defined as:
  1336. 1. A single class name 'C' that matches 'C' and transitively all nested
  1337. classes 'C$*' defined in C;
  1338. 2. A package name ending with a '.' (e.g., "com.example.") that matches
  1339. all classes from that package.
  1340. A negative pattern is defined by a '-' in front of a positive pattern
  1341. (e.g., "-com.example.").
  1342. A class is considered a system class if and only if it matches one of the
  1343. positive patterns and none of the negative ones. More formally:
  1344. A class is a member of the inclusion set I if it matches one of the positive
  1345. patterns. A class is a member of the exclusion set E if it matches one of
  1346. the negative patterns. The set of system classes S = I \ E.
  1347. </description>
  1348. </property>
  1349. <property>
  1350. <name>mapreduce.jvm.system-properties-to-log</name>
  1351. <value>os.name,os.version,java.home,java.runtime.version,java.vendor,java.version,java.vm.name,java.class.path,java.io.tmpdir,user.dir,user.name</value>
  1352. <description>Comma-delimited list of system properties to log on mapreduce JVM start</description>
  1353. </property>
  1354. <!-- jobhistory properties -->
  1355. <property>
  1356. <name>mapreduce.jobhistory.address</name>
  1357. <value>0.0.0.0:10020</value>
  1358. <description>MapReduce JobHistory Server IPC host:port</description>
  1359. </property>
  1360. <property>
  1361. <name>mapreduce.jobhistory.webapp.address</name>
  1362. <value>0.0.0.0:19888</value>
  1363. <description>MapReduce JobHistory Server Web UI host:port</description>
  1364. </property>
  1365. <property>
  1366. <name>mapreduce.jobhistory.keytab</name>
  1367. <description>
  1368. Location of the kerberos keytab file for the MapReduce
  1369. JobHistory Server.
  1370. </description>
  1371. <value>/etc/security/keytab/jhs.service.keytab</value>
  1372. </property>
  1373. <property>
  1374. <name>mapreduce.jobhistory.principal</name>
  1375. <description>
  1376. Kerberos principal name for the MapReduce JobHistory Server.
  1377. </description>
  1378. <value>jhs/_HOST@REALM.TLD</value>
  1379. </property>
  1380. <property>
  1381. <name>mapreduce.jobhistory.intermediate-done-dir</name>
  1382. <value>${yarn.app.mapreduce.am.staging-dir}/history/done_intermediate</value>
  1383. <description></description>
  1384. </property>
  1385. <property>
  1386. <name>mapreduce.jobhistory.done-dir</name>
  1387. <value>${yarn.app.mapreduce.am.staging-dir}/history/done</value>
  1388. <description></description>
  1389. </property>
  1390. <property>
  1391. <name>mapreduce.jobhistory.cleaner.enable</name>
  1392. <value>true</value>
  1393. <description></description>
  1394. </property>
  1395. <property>
  1396. <name>mapreduce.jobhistory.cleaner.interval-ms</name>
  1397. <value>86400000</value>
  1398. <description> How often the job history cleaner checks for files to delete,
  1399. in milliseconds. Defaults to 86400000 (one day). Files are only deleted if
  1400. they are older than mapreduce.jobhistory.max-age-ms.
  1401. </description>
  1402. </property>
  1403. <property>
  1404. <name>mapreduce.jobhistory.max-age-ms</name>
  1405. <value>604800000</value>
  1406. <description> Job history files older than this many milliseconds will
  1407. be deleted when the history cleaner runs. Defaults to 604800000 (1 week).
  1408. </description>
  1409. </property>
  1410. <property>
  1411. <name>mapreduce.jobhistory.client.thread-count</name>
  1412. <value>10</value>
  1413. <description>The number of threads to handle client API requests</description>
  1414. </property>
  1415. <property>
  1416. <name>mapreduce.jobhistory.datestring.cache.size</name>
  1417. <value>200000</value>
  1418. <description>Size of the date string cache. Effects the number of directories
  1419. which will be scanned to find a job.</description>
  1420. </property>
  1421. <property>
  1422. <name>mapreduce.jobhistory.joblist.cache.size</name>
  1423. <value>20000</value>
  1424. <description>Size of the job list cache</description>
  1425. </property>
  1426. <property>
  1427. <name>mapreduce.jobhistory.loadedjobs.cache.size</name>
  1428. <value>5</value>
  1429. <description>Size of the loaded job cache</description>
  1430. </property>
  1431. <property>
  1432. <name>mapreduce.jobhistory.move.interval-ms</name>
  1433. <value>180000</value>
  1434. <description>Scan for history files to more from intermediate done dir to done
  1435. dir at this frequency.
  1436. </description>
  1437. </property>
  1438. <property>
  1439. <name>mapreduce.jobhistory.move.thread-count</name>
  1440. <value>3</value>
  1441. <description>The number of threads used to move files.</description>
  1442. </property>
  1443. <property>
  1444. <name>mapreduce.jobhistory.store.class</name>
  1445. <value></value>
  1446. <description>The HistoryStorage class to use to cache history data.</description>
  1447. </property>
  1448. <property>
  1449. <name>mapreduce.jobhistory.minicluster.fixed.ports</name>
  1450. <value>false</value>
  1451. <description>Whether to use fixed ports with the minicluster</description>
  1452. </property>
  1453. <property>
  1454. <name>mapreduce.jobhistory.admin.address</name>
  1455. <value>0.0.0.0:10033</value>
  1456. <description>The address of the History server admin interface.</description>
  1457. </property>
  1458. <property>
  1459. <name>mapreduce.jobhistory.admin.acl</name>
  1460. <value>*</value>
  1461. <description>ACL of who can be admin of the History server.</description>
  1462. </property>
  1463. <property>
  1464. <name>mapreduce.jobhistory.recovery.enable</name>
  1465. <value>false</value>
  1466. <description>Enable the history server to store server state and recover
  1467. server state upon startup. If enabled then
  1468. mapreduce.jobhistory.recovery.store.class must be specified.</description>
  1469. </property>
  1470. <property>
  1471. <name>mapreduce.jobhistory.recovery.store.class</name>
  1472. <value>org.apache.hadoop.mapreduce.v2.hs.HistoryServerFileSystemStateStoreService</value>
  1473. <description>The HistoryServerStateStoreService class to store history server
  1474. state for recovery.</description>
  1475. </property>
  1476. <property>
  1477. <name>mapreduce.jobhistory.recovery.store.fs.uri</name>
  1478. <value>${hadoop.tmp.dir}/mapred/history/recoverystore</value>
  1479. <!--value>hdfs://localhost:9000/mapred/history/recoverystore</value-->
  1480. <description>The URI where history server state will be stored if
  1481. HistoryServerFileSystemStateStoreService is configured as the recovery
  1482. storage class.</description>
  1483. </property>
  1484. <property>
  1485. <name>mapreduce.jobhistory.recovery.store.leveldb.path</name>
  1486. <value>${hadoop.tmp.dir}/mapred/history/recoverystore</value>
  1487. <description>The URI where history server state will be stored if
  1488. HistoryServerLeveldbSystemStateStoreService is configured as the recovery
  1489. storage class.</description>
  1490. </property>
  1491. <property>
  1492. <name>mapreduce.jobhistory.http.policy</name>
  1493. <value>HTTP_ONLY</value>
  1494. <description>
  1495. This configures the HTTP endpoint for JobHistoryServer web UI.
  1496. The following values are supported:
  1497. - HTTP_ONLY : Service is provided only on http
  1498. - HTTPS_ONLY : Service is provided only on https
  1499. </description>
  1500. </property>
  1501. <property>
  1502. <name>mapreduce.job.heap.memory-mb.ratio</name>
  1503. <value>0.8</value>
  1504. <description>The ratio of heap-size to container-size. If no -Xmx is
  1505. specified, it is calculated as
  1506. (mapreduce.{map|reduce}.memory.mb * mapreduce.heap.memory-mb.ratio).
  1507. If -Xmx is specified but not mapreduce.{map|reduce}.memory.mb, it is
  1508. calculated as (heapSize / mapreduce.heap.memory-mb.ratio).
  1509. </description>
  1510. </property>
  1511. <property>
  1512. <name>yarn.app.mapreduce.am.containerlauncher.threadpool-initial-size</name>
  1513. <value>10</value>
  1514. <description>The initial size of thread pool to launch containers in the
  1515. app master.
  1516. </description>
  1517. </property>
  1518. <property>
  1519. <name>mapreduce.task.exit.timeout</name>
  1520. <value>60000</value>
  1521. <description>The number of milliseconds before a task will be
  1522. terminated if it stays in finishing state for too long.
  1523. After a task attempt completes from TaskUmbilicalProtocol's point of view,
  1524. it will be transitioned to finishing state. That will give a chance for the
  1525. task to exit by itself.
  1526. </description>
  1527. </property>
  1528. <property>
  1529. <name>mapreduce.task.exit.timeout.check-interval-ms</name>
  1530. <value>20000</value>
  1531. <description>The interval in milliseconds between which the MR framework
  1532. checks if task attempts stay in finishing state for too long.
  1533. </description>
  1534. </property>
  1535. </configuration>