summaryrefslogtreecommitdiff
path: root/ambari-server/src/main/resources/common-services/YARN/2.1.0.2.0/configuration-mapred/mapred-site.xml
blob: f30b807a17937c46a857701171a3caa39d1c8888 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<!-- Put site-specific property overrides in this file. -->

<configuration supports_final="true" xmlns:xi="http://www.w3.org/2001/XInclude">

<!-- i/o properties -->

  <property>
    <name>mapreduce.task.io.sort.mb</name>
    <value>358</value>
    <description>
      The total amount of buffer memory to use while sorting files, in megabytes.
      By default, gives each merge stream 1MB, which should minimize seeks.
    </description>
    <display-name>Sort Allocation Memory</display-name>
    <value-attributes>
      <type>int</type>
      <minimum>0</minimum>
      <maximum>2047</maximum>
      <unit>MB</unit>
      <increment-step>1</increment-step>
    </value-attributes>
    <depends-on>
      <property>
        <type>mapred-site</type>
        <name>mapreduce.map.memory.mb</name>
      </property>
    </depends-on>
  </property>

  <property>
    <name>mapreduce.map.sort.spill.percent</name>
    <value>0.7</value>
    <description>
      The soft limit in the serialization buffer. Once reached, a thread will
      begin to spill the contents to disk in the background. Note that
      collection will not block if this threshold is exceeded while a spill
      is already in progress, so spills may be larger than this threshold when
      it is set to less than .5
    </description>
  </property>

  <property>
    <name>mapreduce.task.io.sort.factor</name>
    <value>100</value>
    <description>
      The number of streams to merge at once while sorting files.
      This determines the number of open file handles.
    </description>
  </property>

<!-- map/reduce properties -->
  <property>
    <name>mapreduce.cluster.administrators</name>
    <value> hadoop</value>
    <description>
      Administrators for MapReduce applications.
    </description>
  </property>

  <property>
    <name>mapreduce.reduce.shuffle.parallelcopies</name>
    <value>30</value>
    <description>
      The default number of parallel transfers run by reduce during
      the copy(shuffle) phase.
    </description>
  </property>

  <property>
    <name>mapreduce.map.speculative</name>
    <value>false</value>
    <description>
      If true, then multiple instances of some map tasks
      may be executed in parallel.
    </description>
  </property>

  <property>
    <name>mapreduce.reduce.speculative</name>
    <value>false</value>
    <description>
      If true, then multiple instances of some reduce tasks may be
      executed in parallel.
    </description>
  </property>

  <property>
    <name>mapreduce.job.reduce.slowstart.completedmaps</name>
    <value>0.05</value>
    <description>
      Fraction of the number of maps in the job which should be complete before
      reduces are scheduled for the job.
    </description>
  </property>

  <property>
    <name>mapreduce.job.counters.max</name>
    <value>130</value>
    <description>
      Limit on the number of counters allowed per job.
    </description>
  </property>

  <property>
    <name>mapreduce.reduce.shuffle.merge.percent</name>
    <value>0.66</value>
    <description>
      The usage threshold at which an in-memory merge will be
      initiated, expressed as a percentage of the total memory allocated to
      storing in-memory map outputs, as defined by
      mapreduce.reduce.shuffle.input.buffer.percent.
    </description>
  </property>

  <property>
    <name>mapreduce.reduce.shuffle.input.buffer.percent</name>
    <value>0.7</value>
    <description>
      The percentage of memory to be allocated from the maximum heap
      size to storing map outputs during the shuffle.
    </description>
  </property>

  <property>
    <name>mapreduce.output.fileoutputformat.compress.type</name>
    <value>BLOCK</value>
    <description>
      If the job outputs are to compressed as SequenceFiles, how should
      they be compressed? Should be one of NONE, RECORD or BLOCK.
    </description>
  </property>

  <property>
    <name>mapreduce.reduce.input.buffer.percent</name>
    <value>0.0</value>
    <description>
      The percentage of memory- relative to the maximum heap size- to
      retain map outputs during the reduce. When the shuffle is concluded, any
      remaining map outputs in memory must consume less than this threshold before
      the reduce can begin.
    </description>
  </property>

  <!-- copied from kryptonite configuration -->
  <property>
    <name>mapreduce.map.output.compress</name>
    <value>false</value>
    <description>
      Should the outputs of the maps be compressed before being sent across the network. Uses SequenceFile compression.
    </description>
  </property>

  <property>
    <name>mapreduce.task.timeout</name>
    <value>300000</value>
    <description>
      The number of milliseconds before a task will be
      terminated if it neither reads an input, writes an output, nor
      updates its status string.
    </description>
  </property>

  <property>
    <name>mapreduce.map.memory.mb</name>
    <value>512</value>
    <description>Virtual memory for single Map task</description>
    <display-name>Map Memory</display-name>
    <value-attributes>
      <type>int</type>
      <minimum>512</minimum>
      <maximum>5120</maximum>
      <unit>MB</unit>
      <increment-step>256</increment-step>
    </value-attributes>
    <depends-on>
      <property>
        <type>yarn-site</type>
        <name>yarn.scheduler.maximum-allocation-mb</name>
      </property>
      <property>
        <type>yarn-site</type>
        <name>yarn.scheduler.minimum-allocation-mb</name>
      </property>
    </depends-on>
  </property>

  <property>
    <name>mapreduce.reduce.memory.mb</name>
    <value>1024</value>
    <description>Virtual memory for single Reduce task</description>
    <display-name>Reduce Memory</display-name>
    <value-attributes>
      <type>int</type>
      <minimum>512</minimum>
      <maximum>5120</maximum>
      <unit>MB</unit>
      <increment-step>256</increment-step>
    </value-attributes>
    <depends-on>
      <property>
        <type>yarn-site</type>
        <name>yarn.scheduler.maximum-allocation-mb</name>
      </property>
      <property>
        <type>yarn-site</type>
        <name>yarn.scheduler.minimum-allocation-mb</name>
      </property>
    </depends-on>
  </property>

  <property>
    <name>mapreduce.shuffle.port</name>
    <value>13562</value>
    <description>
      Default port that the ShuffleHandler will run on.
      ShuffleHandler is a service run at the NodeManager to facilitate
      transfers of intermediate Map outputs to requesting Reducers.
    </description>
  </property>

  <property>
    <name>mapreduce.jobhistory.intermediate-done-dir</name>
    <value>/mr-history/tmp</value>
    <description>
      Directory where history files are written by MapReduce jobs.
    </description>
  </property>

  <property>
    <name>mapreduce.jobhistory.done-dir</name>
    <value>/mr-history/done</value>
    <description>
      Directory where history files are managed by the MR JobHistory Server.
    </description>
  </property>

  <property>       
    <name>mapreduce.jobhistory.address</name>
    <value>localhost:10020</value>
    <property-type>DONT_ADD_ON_UPGRADE</property-type>
    <description>Enter your JobHistoryServer hostname.</description>
  </property>

  <property>       
    <name>mapreduce.jobhistory.webapp.address</name>
    <value>localhost:19888</value>
    <property-type>DONT_ADD_ON_UPGRADE</property-type>
    <description>Enter your JobHistoryServer hostname.</description>
  </property>

  <property>
    <name>mapreduce.framework.name</name>
    <value>yarn</value>
    <description>
      The runtime framework for executing MapReduce jobs. Can be one of local,
      classic or yarn.
    </description>
  </property>

  <property>
    <name>yarn.app.mapreduce.am.staging-dir</name>
    <value>/user</value>
    <description>
      The staging dir used while submitting jobs.
    </description>
  </property>

  <property>
    <name>yarn.app.mapreduce.am.resource.mb</name>
    <value>512</value>
    <description>The amount of memory the MR AppMaster needs.</description>
    <display-name>AppMaster Memory</display-name>
    <value-attributes>
      <type>int</type>
      <minimum>512</minimum>
      <maximum>5120</maximum>
      <unit>MB</unit>
      <increment-step>256</increment-step>
    </value-attributes>
    <depends-on>
      <property>
        <type>yarn-site</type>
        <name>yarn.scheduler.maximum-allocation-mb</name>
      </property>
      <property>
        <type>yarn-site</type>
        <name>yarn.scheduler.minimum-allocation-mb</name>
      </property>
    </depends-on>
  </property>

  <property>
    <name>yarn.app.mapreduce.am.command-opts</name>
    <value>-Xmx410m</value>
    <description>
      Java opts for the MR App Master processes.
      The following symbol, if present, will be interpolated: @taskid@ is replaced
      by current TaskID. Any other occurrences of '@' will go unchanged.
      For example, to enable verbose gc logging to a file named for the taskid in
      /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
      -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc

      Usage of -Djava.library.path can cause programs to no longer function if
      hadoop native libraries are used. These values should instead be set as part
      of LD_LIBRARY_PATH in the map / reduce JVM env using the mapreduce.map.env and
      mapreduce.reduce.env config settings.
    </description>
    <display-name>MR AppMaster Java Heap Size</display-name>
    <depends-on>
      <property>
        <type>mapred-site</type>
        <name>yarn.app.mapreduce.am.resource.mb</name>
      </property>
    </depends-on>
  </property>

  <property>
    <name>yarn.app.mapreduce.am.admin-command-opts</name>
    <value>-server -XX:NewRatio=8 -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN</value>
    <description>
      Java opts for the MR App Master processes for admin purposes.
      It will appears before the opts set by yarn.app.mapreduce.am.command-opts and
      thus its options can be overridden user.

      Usage of -Djava.library.path can cause programs to no longer function if
      hadoop native libraries are used. These values should instead be set as part
      of LD_LIBRARY_PATH in the map / reduce JVM env using the mapreduce.map.env and
      mapreduce.reduce.env config settings.
    </description>
    <display-name>MR AppMaster Java Heap Size</display-name>
    <depends-on>
      <property>
        <type>mapred-site</type>
        <name>yarn.app.mapreduce.am.resource.mb</name>
      </property>
    </depends-on>
  </property>

  <property>
    <name>yarn.app.mapreduce.am.log.level</name>
    <value>INFO</value>
    <description>MR App Master process log level.</description>
  </property>

  <property>
    <name>mapreduce.admin.map.child.java.opts</name>
    <value>-server -XX:NewRatio=8 -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN</value>
    <description>This property stores Java options for map tasks.</description>
  </property>

  <property>
    <name>mapreduce.admin.reduce.child.java.opts</name>
    <value>-server -XX:NewRatio=8 -Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN</value>
    <description>This property stores Java options for reduce tasks.</description>
  </property>

  <property>
    <name>mapreduce.application.classpath</name>
    <value>$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/*,$HADOOP_MAPRED_HOME/share/hadoop/mapreduce/lib/*</value>
    <description>
      CLASSPATH for MR applications. A comma-separated list of CLASSPATH
      entries.
    </description>
  </property>

  <property>
    <name>mapreduce.am.max-attempts</name>
    <value>2</value>
    <description>
      The maximum number of application attempts. It is a
      application-specific setting. It should not be larger than the global number
      set by resourcemanager. Otherwise, it will be override. The default number is
      set to 2, to allow at least one retry for AM.
    </description>
  </property>



  <property>
    <name>mapreduce.map.java.opts</name>
    <value>-Xmx410m</value>
    <description>
      Larger heap-size for child jvms of maps.
    </description>
    <display-name>MR Map Java Heap Size</display-name>
    <depends-on>
      <property>
        <type>mapred-site</type>
        <name>mapreduce.map.memory.mb</name>
      </property>
    </depends-on>
  </property>


  <property>
    <name>mapreduce.reduce.java.opts</name>
    <value>-Xmx756m</value>
    <description>
      Larger heap-size for child jvms of reduces.
    </description>
    <display-name>MR Reduce Java Heap Size</display-name>
    <depends-on>
      <property>
        <type>mapred-site</type>
        <name>mapreduce.reduce.memory.mb</name>
      </property>
    </depends-on>
  </property>

  <property>
    <name>mapreduce.map.log.level</name>
    <value>INFO</value>
    <description>
      The logging level for the map task. The allowed levels are:
      OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE and ALL.
    </description>
  </property>

  <property>
    <name>mapreduce.reduce.log.level</name>
    <value>INFO</value>
    <description>
      The logging level for the reduce task. The allowed levels are:
      OFF, FATAL, ERROR, WARN, INFO, DEBUG, TRACE and ALL.
    </description>
  </property>

  <property>
    <name>mapreduce.admin.user.env</name>
    <value>LD_LIBRARY_PATH=/usr/lib/hadoop/lib/native:/usr/lib/hadoop/lib/native/Linux-amd64-64</value>
    <description>
      Additional execution environment entries for map and reduce task processes.
      This is not an additive property. You must preserve the original value if
      you want your map and reduce tasks to have access to native libraries (compression, etc)
    </description>
  </property>

  <property>
    <name>mapreduce.output.fileoutputformat.compress</name>
    <value>false</value>
    <description>
      Should the job outputs be compressed?
    </description>
  </property>

</configuration>