mapred-default.xml 40 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  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.jobtracker.jobhistory.location</name>
  23. <value></value>
  24. <description> If job tracker is static the history files are stored
  25. in this single well known place. If No value is set here, by default,
  26. it is in the local file system at ${hadoop.log.dir}/history.
  27. </description>
  28. </property>
  29. <property>
  30. <name>mapreduce.jobtracker.jobhistory.task.numberprogresssplits</name>
  31. <value>12</value>
  32. <description> Every task attempt progresses from 0.0 to 1.0 [unless
  33. it fails or is killed]. We record, for each task attempt, certain
  34. statistics over each twelfth of the progress range. You can change
  35. the number of intervals we divide the entire range of progress into
  36. by setting this property. Higher values give more precision to the
  37. recorded data, but costs more memory in the job tracker at runtime.
  38. Each increment in this attribute costs 16 bytes per running task.
  39. </description>
  40. </property>
  41. <property>
  42. <name>mapreduce.job.userhistorylocation</name>
  43. <value></value>
  44. <description> User can specify a location to store the history files of
  45. a particular job. If nothing is specified, the logs are stored in
  46. output directory. The files are stored in "_logs/history/" in the directory.
  47. User can stop logging by giving the value "none".
  48. </description>
  49. </property>
  50. <property>
  51. <name>mapreduce.jobtracker.jobhistory.completed.location</name>
  52. <value></value>
  53. <description> The completed job history files are stored at this single well
  54. known location. If nothing is specified, the files are stored at
  55. ${mapreduce.jobtracker.jobhistory.location}/done.
  56. </description>
  57. </property>
  58. <property>
  59. <name>mapreduce.job.committer.setup.cleanup.needed</name>
  60. <value>true</value>
  61. <description> true, if job needs job-setup and job-cleanup.
  62. false, otherwise
  63. </description>
  64. </property>
  65. <!-- i/o properties -->
  66. <property>
  67. <name>mapreduce.task.io.sort.factor</name>
  68. <value>10</value>
  69. <description>The number of streams to merge at once while sorting
  70. files. This determines the number of open file handles.</description>
  71. </property>
  72. <property>
  73. <name>mapreduce.task.io.sort.mb</name>
  74. <value>100</value>
  75. <description>The total amount of buffer memory to use while sorting
  76. files, in megabytes. By default, gives each merge stream 1MB, which
  77. should minimize seeks.</description>
  78. </property>
  79. <property>
  80. <name>mapreduce.map.sort.spill.percent</name>
  81. <value>0.80</value>
  82. <description>The soft limit in the serialization buffer. Once reached, a
  83. thread will begin to spill the contents to disk in the background. Note that
  84. collection will not block if this threshold is exceeded while a spill is
  85. already in progress, so spills may be larger than this threshold when it is
  86. set to less than .5</description>
  87. </property>
  88. <property>
  89. <name>mapreduce.jobtracker.address</name>
  90. <value>local</value>
  91. <description>The host and port that the MapReduce job tracker runs
  92. at. If "local", then jobs are run in-process as a single map
  93. and reduce task.
  94. </description>
  95. </property>
  96. <property>
  97. <name>mapreduce.jobtracker.http.address</name>
  98. <value>0.0.0.0:50030</value>
  99. <description>
  100. The job tracker http server address and port the server will listen on.
  101. If the port is 0 then the server will start on a free port.
  102. </description>
  103. </property>
  104. <property>
  105. <name>mapreduce.jobtracker.handler.count</name>
  106. <value>10</value>
  107. <description>
  108. The number of server threads for the JobTracker. This should be roughly
  109. 4% of the number of tasktracker nodes.
  110. </description>
  111. </property>
  112. <property>
  113. <name>mapreduce.tasktracker.report.address</name>
  114. <value>127.0.0.1:0</value>
  115. <description>The interface and port that task tracker server listens on.
  116. Since it is only connected to by the tasks, it uses the local interface.
  117. EXPERT ONLY. Should only be changed if your host does not have the loopback
  118. interface.</description>
  119. </property>
  120. <property>
  121. <name>mapreduce.cluster.local.dir</name>
  122. <value>${hadoop.tmp.dir}/mapred/local</value>
  123. <description>The local directory where MapReduce stores intermediate
  124. data files. May be a comma-separated list of
  125. directories on different devices in order to spread disk i/o.
  126. Directories that do not exist are ignored.
  127. </description>
  128. </property>
  129. <property>
  130. <name>mapreduce.jobtracker.system.dir</name>
  131. <value>${hadoop.tmp.dir}/mapred/system</value>
  132. <description>The directory where MapReduce stores control files.
  133. </description>
  134. </property>
  135. <property>
  136. <name>mapreduce.jobtracker.staging.root.dir</name>
  137. <value>${hadoop.tmp.dir}/mapred/staging</value>
  138. <description>The root of the staging area for users' job files
  139. In practice, this should be the directory where users' home
  140. directories are located (usually /user)
  141. </description>
  142. </property>
  143. <property>
  144. <name>mapreduce.cluster.temp.dir</name>
  145. <value>${hadoop.tmp.dir}/mapred/temp</value>
  146. <description>A shared directory for temporary files.
  147. </description>
  148. </property>
  149. <property>
  150. <name>mapreduce.tasktracker.local.dir.minspacestart</name>
  151. <value>0</value>
  152. <description>If the space in mapreduce.cluster.local.dir drops under this,
  153. do not ask for more tasks.
  154. Value in bytes.
  155. </description>
  156. </property>
  157. <property>
  158. <name>mapreduce.tasktracker.local.dir.minspacekill</name>
  159. <value>0</value>
  160. <description>If the space in mapreduce.cluster.local.dir drops under this,
  161. do not ask more tasks until all the current ones have finished and
  162. cleaned up. Also, to save the rest of the tasks we have running,
  163. kill one of them, to clean up some space. Start with the reduce tasks,
  164. then go with the ones that have finished the least.
  165. Value in bytes.
  166. </description>
  167. </property>
  168. <property>
  169. <name>mapreduce.jobtracker.expire.trackers.interval</name>
  170. <value>600000</value>
  171. <description>Expert: The time-interval, in miliseconds, after which
  172. a tasktracker is declared 'lost' if it doesn't send heartbeats.
  173. </description>
  174. </property>
  175. <property>
  176. <name>mapreduce.tasktracker.instrumentation</name>
  177. <value>org.apache.hadoop.mapred.TaskTrackerMetricsInst</value>
  178. <description>Expert: The instrumentation class to associate with each TaskTracker.
  179. </description>
  180. </property>
  181. <property>
  182. <name>mapreduce.tasktracker.resourcecalculatorplugin</name>
  183. <value></value>
  184. <description>
  185. Name of the class whose instance will be used to query resource information
  186. on the tasktracker.
  187. The class must be an instance of
  188. org.apache.hadoop.util.ResourceCalculatorPlugin. If the value is null, the
  189. tasktracker attempts to use a class appropriate to the platform.
  190. Currently, the only platform supported is Linux.
  191. </description>
  192. </property>
  193. <property>
  194. <name>mapreduce.tasktracker.taskmemorymanager.monitoringinterval</name>
  195. <value>5000</value>
  196. <description>The interval, in milliseconds, for which the tasktracker waits
  197. between two cycles of monitoring its tasks' memory usage. Used only if
  198. tasks' memory management is enabled via mapred.tasktracker.tasks.maxmemory.
  199. </description>
  200. </property>
  201. <property>
  202. <name>mapreduce.tasktracker.tasks.sleeptimebeforesigkill</name>
  203. <value>5000</value>
  204. <description>The time, in milliseconds, the tasktracker waits for sending a
  205. SIGKILL to a task, after it has been sent a SIGTERM. This is currently
  206. not used on WINDOWS where tasks are just sent a SIGTERM.
  207. </description>
  208. </property>
  209. <property>
  210. <name>mapreduce.job.maps</name>
  211. <value>2</value>
  212. <description>The default number of map tasks per job.
  213. Ignored when mapreduce.jobtracker.address is "local".
  214. </description>
  215. </property>
  216. <property>
  217. <name>mapreduce.job.reduces</name>
  218. <value>1</value>
  219. <description>The default number of reduce tasks per job. Typically set to 99%
  220. of the cluster's reduce capacity, so that if a node fails the reduces can
  221. still be executed in a single wave.
  222. Ignored when mapreduce.jobtracker.address is "local".
  223. </description>
  224. </property>
  225. <property>
  226. <name>mapreduce.jobtracker.restart.recover</name>
  227. <value>false</value>
  228. <description>"true" to enable (job) recovery upon restart,
  229. "false" to start afresh
  230. </description>
  231. </property>
  232. <property>
  233. <name>mapreduce.jobtracker.jobhistory.block.size</name>
  234. <value>3145728</value>
  235. <description>The block size of the job history file. Since the job recovery
  236. uses job history, its important to dump job history to disk as
  237. soon as possible. Note that this is an expert level parameter.
  238. The default value is set to 3 MB.
  239. </description>
  240. </property>
  241. <property>
  242. <name>mapreduce.jobtracker.taskscheduler</name>
  243. <value>org.apache.hadoop.mapred.JobQueueTaskScheduler</value>
  244. <description>The class responsible for scheduling the tasks.</description>
  245. </property>
  246. <property>
  247. <name>mapreduce.jobtracker.split.metainfo.maxsize</name>
  248. <value>10000000</value>
  249. <description>The maximum permissible size of the split metainfo file.
  250. The JobTracker won't attempt to read split metainfo files bigger than
  251. the configured value.
  252. No limits if set to -1.
  253. </description>
  254. </property>
  255. <property>
  256. <name>mapreduce.jobtracker.taskscheduler.maxrunningtasks.perjob</name>
  257. <value></value>
  258. <description>The maximum number of running tasks for a job before
  259. it gets preempted. No limits if undefined.
  260. </description>
  261. </property>
  262. <property>
  263. <name>mapreduce.map.maxattempts</name>
  264. <value>4</value>
  265. <description>Expert: The maximum number of attempts per map task.
  266. In other words, framework will try to execute a map task these many number
  267. of times before giving up on it.
  268. </description>
  269. </property>
  270. <property>
  271. <name>mapreduce.reduce.maxattempts</name>
  272. <value>4</value>
  273. <description>Expert: The maximum number of attempts per reduce task.
  274. In other words, framework will try to execute a reduce task these many number
  275. of times before giving up on it.
  276. </description>
  277. </property>
  278. <property>
  279. <name>mapreduce.reduce.shuffle.parallelcopies</name>
  280. <value>5</value>
  281. <description>The default number of parallel transfers run by reduce
  282. during the copy(shuffle) phase.
  283. </description>
  284. </property>
  285. <property>
  286. <name>mapreduce.reduce.shuffle.connect.timeout</name>
  287. <value>180000</value>
  288. <description>Expert: The maximum amount of time (in milli seconds) reduce
  289. task spends in trying to connect to a tasktracker for getting map output.
  290. </description>
  291. </property>
  292. <property>
  293. <name>mapreduce.reduce.shuffle.read.timeout</name>
  294. <value>180000</value>
  295. <description>Expert: The maximum amount of time (in milli seconds) reduce
  296. task waits for map output data to be available for reading after obtaining
  297. connection.
  298. </description>
  299. </property>
  300. <property>
  301. <name>mapreduce.task.timeout</name>
  302. <value>600000</value>
  303. <description>The number of milliseconds before a task will be
  304. terminated if it neither reads an input, writes an output, nor
  305. updates its status string.
  306. </description>
  307. </property>
  308. <property>
  309. <name>mapreduce.tasktracker.map.tasks.maximum</name>
  310. <value>2</value>
  311. <description>The maximum number of map tasks that will be run
  312. simultaneously by a task tracker.
  313. </description>
  314. </property>
  315. <property>
  316. <name>mapreduce.tasktracker.reduce.tasks.maximum</name>
  317. <value>2</value>
  318. <description>The maximum number of reduce tasks that will be run
  319. simultaneously by a task tracker.
  320. </description>
  321. </property>
  322. <property>
  323. <name>mapreduce.jobtracker.retiredjobs.cache.size</name>
  324. <value>1000</value>
  325. <description>The number of retired job status to keep in the cache.
  326. </description>
  327. </property>
  328. <property>
  329. <name>mapreduce.tasktracker.outofband.heartbeat</name>
  330. <value>false</value>
  331. <description>Expert: Set this to true to let the tasktracker send an
  332. out-of-band heartbeat on task-completion for better latency.
  333. </description>
  334. </property>
  335. <property>
  336. <name>mapreduce.jobtracker.jobhistory.lru.cache.size</name>
  337. <value>5</value>
  338. <description>The number of job history files loaded in memory. The jobs are
  339. loaded when they are first accessed. The cache is cleared based on LRU.
  340. </description>
  341. </property>
  342. <property>
  343. <name>mapreduce.jobtracker.instrumentation</name>
  344. <value>org.apache.hadoop.mapred.JobTrackerMetricsInst</value>
  345. <description>Expert: The instrumentation class to associate with each JobTracker.
  346. </description>
  347. </property>
  348. <property>
  349. <name>mapred.child.java.opts</name>
  350. <value>-Xmx200m</value>
  351. <description>Java opts for the task tracker child processes.
  352. The following symbol, if present, will be interpolated: @taskid@ is replaced
  353. by current TaskID. Any other occurrences of '@' will go unchanged.
  354. For example, to enable verbose gc logging to a file named for the taskid in
  355. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  356. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  357. </description>
  358. </property>
  359. <property>
  360. <name>mapred.child.env</name>
  361. <value></value>
  362. <description>User added environment variables for the task tracker child
  363. processes. Example :
  364. 1) A=foo This will set the env variable A to foo
  365. 2) B=$B:c This is inherit tasktracker's B env variable.
  366. </description>
  367. </property>
  368. <property>
  369. <name>mapreduce.map.log.level</name>
  370. <value>INFO</value>
  371. <description>The logging level for the map task. The allowed levels are:
  372. OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE and ALL.
  373. </description>
  374. </property>
  375. <property>
  376. <name>mapreduce.reduce.log.level</name>
  377. <value>INFO</value>
  378. <description>The logging level for the reduce task. The allowed levels are:
  379. OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE and ALL.
  380. </description>
  381. </property>
  382. <property>
  383. <name>mapreduce.reduce.merge.inmem.threshold</name>
  384. <value>1000</value>
  385. <description>The threshold, in terms of the number of files
  386. for the in-memory merge process. When we accumulate threshold number of files
  387. we initiate the in-memory merge and spill to disk. A value of 0 or less than
  388. 0 indicates we want to DON'T have any threshold and instead depend only on
  389. the ramfs's memory consumption to trigger the merge.
  390. </description>
  391. </property>
  392. <property>
  393. <name>mapreduce.reduce.shuffle.merge.percent</name>
  394. <value>0.66</value>
  395. <description>The usage threshold at which an in-memory merge will be
  396. initiated, expressed as a percentage of the total memory allocated to
  397. storing in-memory map outputs, as defined by
  398. mapreduce.reduce.shuffle.input.buffer.percent.
  399. </description>
  400. </property>
  401. <property>
  402. <name>mapreduce.reduce.shuffle.input.buffer.percent</name>
  403. <value>0.70</value>
  404. <description>The percentage of memory to be allocated from the maximum heap
  405. size to storing map outputs during the shuffle.
  406. </description>
  407. </property>
  408. <property>
  409. <name>mapreduce.reduce.input.buffer.percent</name>
  410. <value>0.0</value>
  411. <description>The percentage of memory- relative to the maximum heap size- to
  412. retain map outputs during the reduce. When the shuffle is concluded, any
  413. remaining map outputs in memory must consume less than this threshold before
  414. the reduce can begin.
  415. </description>
  416. </property>
  417. <property>
  418. <name>mapreduce.reduce.markreset.buffer.percent</name>
  419. <value>0.0</value>
  420. <description>The percentage of memory -relative to the maximum heap size- to
  421. be used for caching values when using the mark-reset functionality.
  422. </description>
  423. </property>
  424. <property>
  425. <name>mapreduce.map.speculative</name>
  426. <value>true</value>
  427. <description>If true, then multiple instances of some map tasks
  428. may be executed in parallel.</description>
  429. </property>
  430. <property>
  431. <name>mapreduce.reduce.speculative</name>
  432. <value>true</value>
  433. <description>If true, then multiple instances of some reduce tasks
  434. may be executed in parallel.</description>
  435. </property>
  436. <property>
  437. <name>mapreduce.job.speculative.speculativecap</name>
  438. <value>0.1</value>
  439. <description>The max percent (0-1) of running tasks that
  440. can be speculatively re-executed at any time.</description>
  441. </property>
  442. <property>
  443. <name>mapreduce.job.speculative.slowtaskthreshold</name>
  444. <value>1.0</value>The number of standard deviations by which a task's
  445. ave progress-rates must be lower than the average of all running tasks'
  446. for the task to be considered too slow.
  447. <description>
  448. </description>
  449. </property>
  450. <property>
  451. <name>mapreduce.job.speculative.slownodethreshold</name>
  452. <value>1.0</value>
  453. <description>The number of standard deviations by which a Task
  454. Tracker's ave map and reduce progress-rates (finishTime-dispatchTime)
  455. must be lower than the average of all successful map/reduce task's for
  456. the TT to be considered too slow to give a speculative task to.
  457. </description>
  458. </property>
  459. <property>
  460. <name>mapreduce.job.jvm.numtasks</name>
  461. <value>1</value>
  462. <description>How many tasks to run per jvm. If set to -1, there is
  463. no limit.
  464. </description>
  465. </property>
  466. <property>
  467. <name>mapreduce.input.fileinputformat.split.minsize</name>
  468. <value>0</value>
  469. <description>The minimum size chunk that map input should be split
  470. into. Note that some file formats may have minimum split sizes that
  471. take priority over this setting.</description>
  472. </property>
  473. <property>
  474. <name>mapreduce.jobtracker.maxtasks.perjob</name>
  475. <value>-1</value>
  476. <description>The maximum number of tasks for a single job.
  477. A value of -1 indicates that there is no maximum. </description>
  478. </property>
  479. <property>
  480. <name>mapreduce.client.submit.file.replication</name>
  481. <value>10</value>
  482. <description>The replication level for submitted job files. This
  483. should be around the square root of the number of nodes.
  484. </description>
  485. </property>
  486. <property>
  487. <name>mapreduce.tasktracker.dns.interface</name>
  488. <value>default</value>
  489. <description>The name of the Network Interface from which a task
  490. tracker should report its IP address.
  491. </description>
  492. </property>
  493. <property>
  494. <name>mapreduce.tasktracker.dns.nameserver</name>
  495. <value>default</value>
  496. <description>The host name or IP address of the name server (DNS)
  497. which a TaskTracker should use to determine the host name used by
  498. the JobTracker for communication and display purposes.
  499. </description>
  500. </property>
  501. <property>
  502. <name>mapreduce.tasktracker.http.threads</name>
  503. <value>40</value>
  504. <description>The number of worker threads that for the http server. This is
  505. used for map output fetching
  506. </description>
  507. </property>
  508. <property>
  509. <name>mapreduce.tasktracker.http.address</name>
  510. <value>0.0.0.0:50060</value>
  511. <description>
  512. The task tracker http server address and port.
  513. If the port is 0 then the server will start on a free port.
  514. </description>
  515. </property>
  516. <property>
  517. <name>mapreduce.task.files.preserve.failedtasks</name>
  518. <value>false</value>
  519. <description>Should the files for failed tasks be kept. This should only be
  520. used on jobs that are failing, because the storage is never
  521. reclaimed. It also prevents the map outputs from being erased
  522. from the reduce directory as they are consumed.</description>
  523. </property>
  524. <!--
  525. <property>
  526. <name>mapreduce.task.files.preserve.filepattern</name>
  527. <value>.*_m_123456_0</value>
  528. <description>Keep all files from tasks whose task names match the given
  529. regular expression. Defaults to none.</description>
  530. </property>
  531. -->
  532. <property>
  533. <name>mapreduce.output.fileoutputformat.compress</name>
  534. <value>false</value>
  535. <description>Should the job outputs be compressed?
  536. </description>
  537. </property>
  538. <property>
  539. <name>mapreduce.output.fileoutputformat.compression.type</name>
  540. <value>RECORD</value>
  541. <description>If the job outputs are to compressed as SequenceFiles, how should
  542. they be compressed? Should be one of NONE, RECORD or BLOCK.
  543. </description>
  544. </property>
  545. <property>
  546. <name>mapreduce.output.fileoutputformat.compression.codec</name>
  547. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  548. <description>If the job outputs are compressed, how should they be compressed?
  549. </description>
  550. </property>
  551. <property>
  552. <name>mapreduce.map.output.compress</name>
  553. <value>false</value>
  554. <description>Should the outputs of the maps be compressed before being
  555. sent across the network. Uses SequenceFile compression.
  556. </description>
  557. </property>
  558. <property>
  559. <name>mapreduce.map.output.compress.codec</name>
  560. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  561. <description>If the map outputs are compressed, how should they be
  562. compressed?
  563. </description>
  564. </property>
  565. <property>
  566. <name>map.sort.class</name>
  567. <value>org.apache.hadoop.util.QuickSort</value>
  568. <description>The default sort class for sorting keys.
  569. </description>
  570. </property>
  571. <property>
  572. <name>mapreduce.task.userlog.limit.kb</name>
  573. <value>0</value>
  574. <description>The maximum size of user-logs of each task in KB. 0 disables the cap.
  575. </description>
  576. </property>
  577. <property>
  578. <name>mapreduce.job.userlog.retain.hours</name>
  579. <value>24</value>
  580. <description>The maximum time, in hours, for which the user-logs are to be
  581. retained after the job completion.
  582. </description>
  583. </property>
  584. <property>
  585. <name>mapreduce.jobtracker.hosts.filename</name>
  586. <value></value>
  587. <description>Names a file that contains the list of nodes that may
  588. connect to the jobtracker. If the value is empty, all hosts are
  589. permitted.</description>
  590. </property>
  591. <property>
  592. <name>mapreduce.jobtracker.hosts.exclude.filename</name>
  593. <value></value>
  594. <description>Names a file that contains the list of hosts that
  595. should be excluded by the jobtracker. If the value is empty, no
  596. hosts are excluded.</description>
  597. </property>
  598. <property>
  599. <name>mapreduce.jobtracker.heartbeats.in.second</name>
  600. <value>100</value>
  601. <description>Expert: Approximate number of heart-beats that could arrive
  602. at JobTracker in a second. Assuming each RPC can be processed
  603. in 10msec, the default value is made 100 RPCs in a second.
  604. </description>
  605. </property>
  606. <property>
  607. <name>mapreduce.jobtracker.tasktracker.maxblacklists</name>
  608. <value>4</value>
  609. <description>The number of blacklists for a taskTracker by various jobs
  610. after which the task tracker could be blacklisted across
  611. all jobs. The tracker will be given a tasks later
  612. (after a day). The tracker will become a healthy
  613. tracker after a restart.
  614. </description>
  615. </property>
  616. <property>
  617. <name>mapreduce.job.maxtaskfailures.per.tracker</name>
  618. <value>4</value>
  619. <description>The number of task-failures on a tasktracker of a given job
  620. after which new tasks of that job aren't assigned to it.
  621. </description>
  622. </property>
  623. <property>
  624. <name>mapreduce.client.output.filter</name>
  625. <value>FAILED</value>
  626. <description>The filter for controlling the output of the task's userlogs sent
  627. to the console of the JobClient.
  628. The permissible options are: NONE, KILLED, FAILED, SUCCEEDED and
  629. ALL.
  630. </description>
  631. </property>
  632. <property>
  633. <name>mapreduce.client.completion.pollinterval</name>
  634. <value>5000</value>
  635. <description>The interval (in milliseconds) between which the JobClient
  636. polls the JobTracker for updates about job status. You may want to set this
  637. to a lower value to make tests run faster on a single node system. Adjusting
  638. this value in production may lead to unwanted client-server traffic.
  639. </description>
  640. </property>
  641. <property>
  642. <name>mapreduce.client.progressmonitor.pollinterval</name>
  643. <value>1000</value>
  644. <description>The interval (in milliseconds) between which the JobClient
  645. reports status to the console and checks for job completion. You may want to set this
  646. to a lower value to make tests run faster on a single node system. Adjusting
  647. this value in production may lead to unwanted client-server traffic.
  648. </description>
  649. </property>
  650. <property>
  651. <name>mapreduce.jobtracker.persist.jobstatus.active</name>
  652. <value>true</value>
  653. <description>Indicates if persistency of job status information is
  654. active or not.
  655. </description>
  656. </property>
  657. <property>
  658. <name>mapreduce.jobtracker.persist.jobstatus.hours</name>
  659. <value>1</value>
  660. <description>The number of hours job status information is persisted in DFS.
  661. The job status information will be available after it drops of the memory
  662. queue and between jobtracker restarts. With a zero value the job status
  663. information is not persisted at all in DFS.
  664. </description>
  665. </property>
  666. <property>
  667. <name>mapreduce.jobtracker.persist.jobstatus.dir</name>
  668. <value>/jobtracker/jobsInfo</value>
  669. <description>The directory where the job status information is persisted
  670. in a file system to be available after it drops of the memory queue and
  671. between jobtracker restarts.
  672. </description>
  673. </property>
  674. <property>
  675. <name>mapreduce.task.profile</name>
  676. <value>false</value>
  677. <description>To set whether the system should collect profiler
  678. information for some of the tasks in this job? The information is stored
  679. in the user log directory. The value is "true" if task profiling
  680. is enabled.</description>
  681. </property>
  682. <property>
  683. <name>mapreduce.task.profile.maps</name>
  684. <value>0-2</value>
  685. <description> To set the ranges of map tasks to profile.
  686. mapreduce.task.profile has to be set to true for the value to be accounted.
  687. </description>
  688. </property>
  689. <property>
  690. <name>mapreduce.task.profile.reduces</name>
  691. <value>0-2</value>
  692. <description> To set the ranges of reduce tasks to profile.
  693. mapreduce.task.profile has to be set to true for the value to be accounted.
  694. </description>
  695. </property>
  696. <property>
  697. <name>mapreduce.task.skip.start.attempts</name>
  698. <value>2</value>
  699. <description> The number of Task attempts AFTER which skip mode
  700. will be kicked off. When skip mode is kicked off, the
  701. tasks reports the range of records which it will process
  702. next, to the TaskTracker. So that on failures, TT knows which
  703. ones are possibly the bad records. On further executions,
  704. those are skipped.
  705. </description>
  706. </property>
  707. <property>
  708. <name>mapreduce.map.skip.proc.count.autoincr</name>
  709. <value>true</value>
  710. <description> The flag which if set to true,
  711. SkipBadRecords.COUNTER_MAP_PROCESSED_RECORDS is incremented
  712. by MapRunner after invoking the map function. This value must be set to
  713. false for applications which process the records asynchronously
  714. or buffer the input records. For example streaming.
  715. In such cases applications should increment this counter on their own.
  716. </description>
  717. </property>
  718. <property>
  719. <name>mapreduce.reduce.skip.proc.count.autoincr</name>
  720. <value>true</value>
  721. <description> The flag which if set to true,
  722. SkipBadRecords.COUNTER_REDUCE_PROCESSED_GROUPS is incremented
  723. by framework after invoking the reduce function. This value must be set to
  724. false for applications which process the records asynchronously
  725. or buffer the input records. For example streaming.
  726. In such cases applications should increment this counter on their own.
  727. </description>
  728. </property>
  729. <property>
  730. <name>mapreduce.job.skip.outdir</name>
  731. <value></value>
  732. <description> If no value is specified here, the skipped records are
  733. written to the output directory at _logs/skip.
  734. User can stop writing skipped records by giving the value "none".
  735. </description>
  736. </property>
  737. <property>
  738. <name>mapreduce.map.skip.maxrecords</name>
  739. <value>0</value>
  740. <description> The number of acceptable skip records surrounding the bad
  741. record PER bad record in mapper. The number includes the bad record as well.
  742. To turn the feature of detection/skipping of bad records off, set the
  743. value to 0.
  744. The framework tries to narrow down the skipped range by retrying
  745. until this threshold is met OR all attempts get exhausted for this task.
  746. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  747. narrow down. Whatever records(depends on application) get skipped are
  748. acceptable.
  749. </description>
  750. </property>
  751. <property>
  752. <name>mapreduce.reduce.skip.maxgroups</name>
  753. <value>0</value>
  754. <description> The number of acceptable skip groups surrounding the bad
  755. group PER bad group in reducer. The number includes the bad group as well.
  756. To turn the feature of detection/skipping of bad groups off, set the
  757. value to 0.
  758. The framework tries to narrow down the skipped range by retrying
  759. until this threshold is met OR all attempts get exhausted for this task.
  760. Set the value to Long.MAX_VALUE to indicate that framework need not try to
  761. narrow down. Whatever groups(depends on application) get skipped are
  762. acceptable.
  763. </description>
  764. </property>
  765. <!-- Job Notification Configuration -->
  766. <!--
  767. <property>
  768. <name>mapreduce.job.end-notification.url</name>
  769. <value>http://localhost:8080/jobstatus.php?jobId=$jobId&amp;jobStatus=$jobStatus</value>
  770. <description>Indicates url which will be called on completion of job to inform
  771. end status of job.
  772. User can give at most 2 variables with URI : $jobId and $jobStatus.
  773. If they are present in URI, then they will be replaced by their
  774. respective values.
  775. </description>
  776. </property>
  777. -->
  778. <property>
  779. <name>mapreduce.job.end-notification.retry.attempts</name>
  780. <value>0</value>
  781. <description>Indicates how many times hadoop should attempt to contact the
  782. notification URL </description>
  783. </property>
  784. <property>
  785. <name>mapreduce.job.end-notification.retry.interval</name>
  786. <value>30000</value>
  787. <description>Indicates time in milliseconds between notification URL retry
  788. calls</description>
  789. </property>
  790. <!-- Proxy Configuration -->
  791. <property>
  792. <name>mapreduce.jobtracker.taskcache.levels</name>
  793. <value>2</value>
  794. <description> This is the max level of the task cache. For example, if
  795. the level is 2, the tasks cached are at the host level and at the rack
  796. level.
  797. </description>
  798. </property>
  799. <property>
  800. <name>mapreduce.job.queuename</name>
  801. <value>default</value>
  802. <description> Queue to which a job is submitted. This must match one of the
  803. queues defined in mapred-queues.xml for the system. Also, the ACL setup
  804. for the queue must allow the current user to submit a job to the queue.
  805. Before specifying a queue, ensure that the system is configured with
  806. the queue, and access is allowed for submitting jobs to the queue.
  807. </description>
  808. </property>
  809. <property>
  810. <name>mapreduce.cluster.acls.enabled</name>
  811. <value>false</value>
  812. <description> Specifies whether ACLs should be checked
  813. for authorization of users for doing various queue and job level operations.
  814. ACLs are disabled by default. If enabled, access control checks are made by
  815. JobTracker and TaskTracker when requests are made by users for queue
  816. operations like submit job to a queue and kill a job in the queue and job
  817. operations like viewing the job-details (See mapreduce.job.acl-view-job)
  818. or for modifying the job (See mapreduce.job.acl-modify-job) using
  819. Map/Reduce APIs, RPCs or via the console and web user interfaces.
  820. For enabling this flag(mapreduce.cluster.acls.enabled), this is to be set
  821. to true in mapred-site.xml on JobTracker node and on all TaskTracker nodes.
  822. </description>
  823. </property>
  824. <property>
  825. <description>Network ACL to AM closed.</description>
  826. <name>mapreduce.job.am-access-disabled</name>
  827. <value>false</value>
  828. </property>
  829. <property>
  830. <name>mapreduce.job.acl-modify-job</name>
  831. <value> </value>
  832. <description> Job specific access-control list for 'modifying' the job. It
  833. is only used if authorization is enabled in Map/Reduce by setting the
  834. configuration property mapreduce.cluster.acls.enabled to true.
  835. This specifies the list of users and/or groups who can do modification
  836. operations on the job. For specifying a list of users and groups the
  837. format to use is "user1,user2 group1,group". If set to '*', it allows all
  838. users/groups to modify this job. If set to ' '(i.e. space), it allows
  839. none. This configuration is used to guard all the modifications with respect
  840. to this job and takes care of all the following operations:
  841. o killing this job
  842. o killing a task of this job, failing a task of this job
  843. o setting the priority of this job
  844. Each of these operations are also protected by the per-queue level ACL
  845. "acl-administer-jobs" configured via mapred-queues.xml. So a caller should
  846. have the authorization to satisfy either the queue-level ACL or the
  847. job-level ACL.
  848. Irrespective of this ACL configuration, (a) job-owner, (b) the user who
  849. started the cluster, (c) cluster administrators
  850. configured via mapreduce.cluster.administrators and (d) queue
  851. administrators of the queue to which this job was submitted to configured
  852. via acl-administer-jobs for the specific queue in mapred-queues.xml can
  853. do all the modification operations on a job.
  854. By default, nobody else besides job-owner, the user who started the cluster,
  855. cluster administrators and queue administrators can perform modification
  856. operations on a job.
  857. </description>
  858. </property>
  859. <property>
  860. <name>mapreduce.job.acl-view-job</name>
  861. <value> </value>
  862. <description> Job specific access-control list for 'viewing' the job. It is
  863. only used if authorization is enabled in Map/Reduce by setting the
  864. configuration property mapreduce.cluster.acls.enabled to true.
  865. This specifies the list of users and/or groups who can view private details
  866. about the job. For specifying a list of users and groups the
  867. format to use is "user1,user2 group1,group". If set to '*', it allows all
  868. users/groups to modify this job. If set to ' '(i.e. space), it allows
  869. none. This configuration is used to guard some of the job-views and at
  870. present only protects APIs that can return possibly sensitive information
  871. of the job-owner like
  872. o job-level counters
  873. o task-level counters
  874. o tasks' diagnostic information
  875. o task-logs displayed on the TaskTracker web-UI and
  876. o job.xml showed by the JobTracker's web-UI
  877. Every other piece of information of jobs is still accessible by any other
  878. user, for e.g., JobStatus, JobProfile, list of jobs in the queue, etc.
  879. Irrespective of this ACL configuration, (a) job-owner, (b) the user who
  880. started the cluster, (c) cluster administrators
  881. configured via mapreduce.cluster.administrators and (d) queue
  882. administrators of the queue to which this job was submitted to configured
  883. via acl-administer-jobs for the specific queue in mapred-queues.xml can
  884. do all the view operations on a job.
  885. By default, nobody else besides job-owner, the user who started the
  886. cluster, cluster administrators and queue administrators can perform
  887. view operations on a job.
  888. </description>
  889. </property>
  890. <property>
  891. <name>mapreduce.jobtracker.webinterface.trusted</name>
  892. <value>false</value>
  893. <description> If set to true, the web interface of the JobTracker
  894. will include actions such as kill job that are security sensitive.
  895. Leave this option as false if untrusted users have access to the web interface.
  896. </description>
  897. </property>
  898. <property>
  899. <name>mapreduce.tasktracker.indexcache.mb</name>
  900. <value>10</value>
  901. <description> The maximum memory that a task tracker allows for the
  902. index cache that is used when serving map outputs to reducers.
  903. </description>
  904. </property>
  905. <!-- TaskTracker DistributedCache configuration -->
  906. <property>
  907. <name>mapreduce.tasktracker.cache.local.size</name>
  908. <value>10737418240</value>
  909. <description>The number of bytes to allocate in each local TaskTracker
  910. directory for holding Distributed Cache data.</description>
  911. </property>
  912. <property>
  913. <name>mapreduce.tasktracker.cache.local.numberdirectories</name>
  914. <value>10000</value>
  915. <description>
  916. The maximum number of subdirectories that should be created in any particular
  917. distributed cache store. After this many directories have been created,
  918. cache items will be expunged regardless of whether the total size threshold
  919. has been exceeded.
  920. </description>
  921. </property>
  922. <!-- End of TaskTracker DistributedCache configuration -->
  923. <property>
  924. <name>mapreduce.task.combine.progress.records</name>
  925. <value>10000</value>
  926. <description> The number of records to process during combine output collection
  927. before sending a progress notification to the TaskTracker.
  928. </description>
  929. </property>
  930. <property>
  931. <name>mapreduce.task.merge.progress.records</name>
  932. <value>10000</value>
  933. <description> The number of records to process during merge before
  934. sending a progress notification to the TaskTracker.
  935. </description>
  936. </property>
  937. <property>
  938. <name>mapreduce.job.reduce.slowstart.completedmaps</name>
  939. <value>0.05</value>
  940. <description>Fraction of the number of maps in the job which should be
  941. complete before reduces are scheduled for the job.
  942. </description>
  943. </property>
  944. <property>
  945. <name>mapreduce.job.complete.cancel.delegation.tokens</name>
  946. <value>true</value>
  947. <description> if false - do not unregister/cancel delegation tokens from
  948. renewal, because same tokens may be used by spawned jobs
  949. </description>
  950. </property>
  951. <property>
  952. <name>mapreduce.tasktracker.taskcontroller</name>
  953. <value>org.apache.hadoop.mapred.DefaultTaskController</value>
  954. <description>TaskController which is used to launch and manage task execution
  955. </description>
  956. </property>
  957. <property>
  958. <name>mapreduce.tasktracker.group</name>
  959. <value></value>
  960. <description>Expert: Group to which TaskTracker belongs. If
  961. LinuxTaskController is configured via mapreduce.tasktracker.taskcontroller,
  962. the group owner of the task-controller binary should be same as this group.
  963. </description>
  964. </property>
  965. <!-- Node health script variables -->
  966. <property>
  967. <name>mapreduce.tasktracker.healthchecker.script.path</name>
  968. <value></value>
  969. <description>Absolute path to the script which is
  970. periodicallyrun by the node health monitoring service to determine if
  971. the node is healthy or not. If the value of this key is empty or the
  972. file does not exist in the location configured here, the node health
  973. monitoring service is not started.</description>
  974. </property>
  975. <property>
  976. <name>mapreduce.tasktracker.healthchecker.interval</name>
  977. <value>60000</value>
  978. <description>Frequency of the node health script to be run,
  979. in milliseconds</description>
  980. </property>
  981. <property>
  982. <name>mapreduce.tasktracker.healthchecker.script.timeout</name>
  983. <value>600000</value>
  984. <description>Time after node health script should be killed if
  985. unresponsive and considered that the script has failed.</description>
  986. </property>
  987. <property>
  988. <name>mapreduce.tasktracker.healthchecker.script.args</name>
  989. <value></value>
  990. <description>List of arguments which are to be passed to
  991. node health script when it is being launched comma seperated.
  992. </description>
  993. </property>
  994. <!-- end of node health script variables -->
  995. </configuration>