hadoop-default.xml 35 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <!-- Do not modify this file directly. Instead, copy entries that you -->
  4. <!-- wish to modify from this file into hadoop-site.xml and change them -->
  5. <!-- there. If hadoop-site.xml does not already exist, create it. -->
  6. <configuration>
  7. <!--- global properties -->
  8. <property>
  9. <name>hadoop.tmp.dir</name>
  10. <value>/tmp/hadoop-${user.name}</value>
  11. <description>A base for other temporary directories.</description>
  12. </property>
  13. <property>
  14. <name>hadoop.native.lib</name>
  15. <value>true</value>
  16. <description>Should native hadoop libraries, if present, be used.</description>
  17. </property>
  18. <!--- logging properties -->
  19. <property>
  20. <name>hadoop.logfile.size</name>
  21. <value>10000000</value>
  22. <description>The max size of each log file</description>
  23. </property>
  24. <property>
  25. <name>hadoop.logfile.count</name>
  26. <value>10</value>
  27. <description>The max number of log files</description>
  28. </property>
  29. <property>
  30. <name>hadoop.job.history.location</name>
  31. <value></value>
  32. <description> If job tracker is static the history files are stored
  33. in this single well known place. If No value is set here, by default,
  34. it is in the local file system at ${hadoop.log.dir}/history.
  35. </description>
  36. </property>
  37. <property>
  38. <name>hadoop.job.history.user.location</name>
  39. <value></value>
  40. <description> User can specify a location to store the history files of
  41. a particular job. If nothing is specified, the logs are stored in
  42. output directory. The files are stored in "_logs/history/" in the directory.
  43. User can stop logging by giving the value "none".
  44. </description>
  45. </property>
  46. <property>
  47. <name>dfs.namenode.logging.level</name>
  48. <value>info</value>
  49. <description>The logging level for dfs namenode. Other values are "dir"(trac
  50. e namespace mutations), "block"(trace block under/over replications and block
  51. creations/deletions), or "all".</description>
  52. </property>
  53. <!-- i/o properties -->
  54. <property>
  55. <name>io.sort.factor</name>
  56. <value>10</value>
  57. <description>The number of streams to merge at once while sorting
  58. files. This determines the number of open file handles.</description>
  59. </property>
  60. <property>
  61. <name>io.sort.mb</name>
  62. <value>100</value>
  63. <description>The total amount of buffer memory to use while sorting
  64. files, in megabytes. By default, gives each merge stream 1MB, which
  65. should minimize seeks.</description>
  66. </property>
  67. <property>
  68. <name>io.file.buffer.size</name>
  69. <value>4096</value>
  70. <description>The size of buffer for use in sequence files.
  71. The size of this buffer should probably be a multiple of hardware
  72. page size (4096 on Intel x86), and it determines how much data is
  73. buffered during read and write operations.</description>
  74. </property>
  75. <property>
  76. <name>io.bytes.per.checksum</name>
  77. <value>512</value>
  78. <description>The number of bytes per checksum. Must not be larger than
  79. io.file.buffer.size.</description>
  80. </property>
  81. <property>
  82. <name>io.skip.checksum.errors</name>
  83. <value>false</value>
  84. <description>If true, when a checksum error is encountered while
  85. reading a sequence file, entries are skipped, instead of throwing an
  86. exception.</description>
  87. </property>
  88. <property>
  89. <name>io.map.index.skip</name>
  90. <value>0</value>
  91. <description>Number of index entries to skip between each entry.
  92. Zero by default. Setting this to values larger than zero can
  93. facilitate opening large map files using less memory.</description>
  94. </property>
  95. <property>
  96. <name>io.compression.codecs</name>
  97. <value>org.apache.hadoop.io.compress.DefaultCodec,org.apache.hadoop.io.compress.GzipCodec</value>
  98. <description>A list of the compression codec classes that can be used
  99. for compression/decompression.</description>
  100. </property>
  101. <property>
  102. <name>io.serializations</name>
  103. <value>org.apache.hadoop.io.serializer.WritableSerialization</value>
  104. <description>A list of serialization classes that can be used for
  105. obtaining serializers and deserializers.</description>
  106. </property>
  107. <!-- file system properties -->
  108. <property>
  109. <name>fs.default.name</name>
  110. <value>file:///</value>
  111. <description>The name of the default file system. A URI whose
  112. scheme and authority determine the FileSystem implementation. The
  113. uri's scheme determines the config property (fs.SCHEME.impl) naming
  114. the FileSystem implementation class. The uri's authority is used to
  115. determine the host, port, etc. for a filesystem.</description>
  116. </property>
  117. <property>
  118. <name>fs.trash.interval</name>
  119. <value>0</value>
  120. <description>Number of minutes between trash checkpoints.
  121. If zero, the trash feature is disabled.
  122. </description>
  123. </property>
  124. <property>
  125. <name>fs.file.impl</name>
  126. <value>org.apache.hadoop.fs.LocalFileSystem</value>
  127. <description>The FileSystem for file: uris.</description>
  128. </property>
  129. <property>
  130. <name>fs.hdfs.impl</name>
  131. <value>org.apache.hadoop.dfs.DistributedFileSystem</value>
  132. <description>The FileSystem for hdfs: uris.</description>
  133. </property>
  134. <property>
  135. <name>fs.s3.impl</name>
  136. <value>org.apache.hadoop.fs.s3.S3FileSystem</value>
  137. <description>The FileSystem for s3: uris.</description>
  138. </property>
  139. <property>
  140. <name>fs.kfs.impl</name>
  141. <value>org.apache.hadoop.fs.kfs.KosmosFileSystem</value>
  142. <description>The FileSystem for kfs: uris.</description>
  143. </property>
  144. <property>
  145. <name>fs.hftp.impl</name>
  146. <value>org.apache.hadoop.dfs.HftpFileSystem</value>
  147. </property>
  148. <property>
  149. <name>fs.ramfs.impl</name>
  150. <value>org.apache.hadoop.fs.InMemoryFileSystem</value>
  151. <description>The FileSystem for ramfs: uris.</description>
  152. </property>
  153. <property>
  154. <name>fs.inmemory.size.mb</name>
  155. <value>75</value>
  156. <description>The size of the in-memory filsystem instance in MB</description>
  157. </property>
  158. <property>
  159. <name>fs.checkpoint.dir</name>
  160. <value>${hadoop.tmp.dir}/dfs/namesecondary</value>
  161. <description>Determines where on the local filesystem the DFS secondary
  162. name node should store the temporary images and edits to merge.
  163. </description>
  164. </property>
  165. <property>
  166. <name>fs.checkpoint.period</name>
  167. <value>3600</value>
  168. <description>The number of seconds between two periodic checkpoints.
  169. </description>
  170. </property>
  171. <property>
  172. <name>fs.checkpoint.size</name>
  173. <value>67108864</value>
  174. <description>The size of the current edit log (in bytes) that triggers
  175. a periodic checkpoint even if the fs.checkpoint.period hasn't expired.
  176. </description>
  177. </property>
  178. <property>
  179. <name>dfs.secondary.http.address</name>
  180. <value>0.0.0.0:50090</value>
  181. <description>
  182. The secondary namenode http server address and port.
  183. If the port is 0 then the server will start on a free port.
  184. </description>
  185. </property>
  186. <property>
  187. <name>dfs.datanode.address</name>
  188. <value>0.0.0.0:50010</value>
  189. <description>
  190. The address where the datanode server will listen to.
  191. If the port is 0 then the server will start on a free port.
  192. </description>
  193. </property>
  194. <property>
  195. <name>dfs.datanode.http.address</name>
  196. <value>0.0.0.0:50075</value>
  197. <description>
  198. The datanode http server address and port.
  199. If the port is 0 then the server will start on a free port.
  200. </description>
  201. </property>
  202. <property>
  203. <name>dfs.http.address</name>
  204. <value>0.0.0.0:50070</value>
  205. <description>
  206. The address and the base port where the dfs namenode web ui will listen on.
  207. If the port is 0 then the server will start on a free port.
  208. </description>
  209. </property>
  210. <property>
  211. <name>dfs.datanode.dns.interface</name>
  212. <value>default</value>
  213. <description>The name of the Network Interface from which a data node should
  214. report its IP address.
  215. </description>
  216. </property>
  217. <property>
  218. <name>dfs.datanode.dns.nameserver</name>
  219. <value>default</value>
  220. <description>The host name or IP address of the name server (DNS)
  221. which a DataNode should use to determine the host name used by the
  222. NameNode for communication and display purposes.
  223. </description>
  224. </property>
  225. <property>
  226. <name>dfs.replication.considerLoad</name>
  227. <value>true</value>
  228. <description>Decide if chooseTarget considers the target's load or not
  229. </description>
  230. </property>
  231. <property>
  232. <name>dfs.default.chunk.view.size</name>
  233. <value>32768</value>
  234. <description>The number of bytes to view for a file on the browser.
  235. </description>
  236. </property>
  237. <property>
  238. <name>dfs.datanode.du.reserved</name>
  239. <value>0</value>
  240. <description>Reserved space in bytes per volume. Always leave this much space free for non dfs use.
  241. </description>
  242. </property>
  243. <property>
  244. <name>dfs.datanode.du.pct</name>
  245. <value>0.98f</value>
  246. <description>When calculating remaining space, only use this percentage of the real available space
  247. </description>
  248. </property>
  249. <property>
  250. <name>dfs.name.dir</name>
  251. <value>${hadoop.tmp.dir}/dfs/name</value>
  252. <description>Determines where on the local filesystem the DFS name node
  253. should store the name table. If this is a comma-delimited list
  254. of directories then the name table is replicated in all of the
  255. directories, for redundancy. </description>
  256. </property>
  257. <property>
  258. <name>dfs.web.ugi</name>
  259. <value>webuser,webgroup</value>
  260. <description>The user account used by the web interface.
  261. Syntax: USERNAME,GROUP1,GROUP2, ...
  262. </description>
  263. </property>
  264. <property>
  265. <name>dfs.permissions</name>
  266. <value>true</value>
  267. <description>
  268. If "true", enable permission checking in HDFS.
  269. If "false", permission checking is turned off,
  270. but all other behavior is unchanged.
  271. Switching from one parameter value to the other does not change the mode,
  272. owner or group of files or directories.
  273. </description>
  274. </property>
  275. <property>
  276. <name>dfs.permissions.supergroup</name>
  277. <value>supergroup</value>
  278. <description>The name of the group of super-users.</description>
  279. </property>
  280. <property>
  281. <name>dfs.client.buffer.dir</name>
  282. <value>${hadoop.tmp.dir}/dfs/tmp</value>
  283. <description>Determines where on the local filesystem an DFS client
  284. should store its blocks before it sends them to the datanode.
  285. </description>
  286. </property>
  287. <property>
  288. <name>dfs.data.dir</name>
  289. <value>${hadoop.tmp.dir}/dfs/data</value>
  290. <description>Determines where on the local filesystem an DFS data node
  291. should store its blocks. If this is a comma-delimited
  292. list of directories, then data will be stored in all named
  293. directories, typically on different devices.
  294. Directories that do not exist are ignored.
  295. </description>
  296. </property>
  297. <property>
  298. <name>dfs.replication</name>
  299. <value>3</value>
  300. <description>Default block replication.
  301. The actual number of replications can be specified when the file is created.
  302. The default is used if replication is not specified in create time.
  303. </description>
  304. </property>
  305. <property>
  306. <name>dfs.replication.max</name>
  307. <value>512</value>
  308. <description>Maximal block replication.
  309. </description>
  310. </property>
  311. <property>
  312. <name>dfs.replication.min</name>
  313. <value>1</value>
  314. <description>Minimal block replication.
  315. </description>
  316. </property>
  317. <property>
  318. <name>dfs.block.size</name>
  319. <value>67108864</value>
  320. <description>The default block size for new files.</description>
  321. </property>
  322. <property>
  323. <name>dfs.df.interval</name>
  324. <value>60000</value>
  325. <description>Disk usage statistics refresh interval in msec.</description>
  326. </property>
  327. <property>
  328. <name>dfs.client.block.write.retries</name>
  329. <value>3</value>
  330. <description>The number of retries for writing blocks to the data nodes,
  331. before we signal failure to the application.
  332. </description>
  333. </property>
  334. <property>
  335. <name>dfs.blockreport.intervalMsec</name>
  336. <value>3600000</value>
  337. <description>Determines block reporting interval in milliseconds.</description>
  338. </property>
  339. <property>
  340. <name>dfs.heartbeat.interval</name>
  341. <value>3</value>
  342. <description>Determines datanode heartbeat interval in seconds.</description>
  343. </property>
  344. <property>
  345. <name>dfs.namenode.handler.count</name>
  346. <value>10</value>
  347. <description>The number of server threads for the namenode.</description>
  348. </property>
  349. <property>
  350. <name>dfs.safemode.threshold.pct</name>
  351. <value>0.999f</value>
  352. <description>
  353. Specifies the percentage of blocks that should satisfy
  354. the minimal replication requirement defined by dfs.replication.min.
  355. Values less than or equal to 0 mean not to start in safe mode.
  356. Values greater than 1 will make safe mode permanent.
  357. </description>
  358. </property>
  359. <property>
  360. <name>dfs.safemode.extension</name>
  361. <value>30000</value>
  362. <description>
  363. Determines extension of safe mode in milliseconds
  364. after the threshold level is reached.
  365. </description>
  366. </property>
  367. <property>
  368. <name>dfs.balance.bandwidthPerSec</name>
  369. <value>1048576</value>
  370. <description>
  371. Specifies the maximum amount of bandwidth that each datanode
  372. can utilize for the balancing purpose in term of
  373. the number of bytes per second.
  374. </description>
  375. </property>
  376. <property>
  377. <name>dfs.hosts</name>
  378. <value></value>
  379. <description>Names a file that contains a list of hosts that are
  380. permitted to connect to the namenode. The full pathname of the file
  381. must be specified. If the value is empty, all hosts are
  382. permitted.</description>
  383. </property>
  384. <property>
  385. <name>dfs.hosts.exclude</name>
  386. <value></value>
  387. <description>Names a file that contains a list of hosts that are
  388. not permitted to connect to the namenode. The full pathname of the
  389. file must be specified. If the value is empty, no hosts are
  390. excluded.</description>
  391. </property>
  392. <property>
  393. <name>dfs.max.objects</name>
  394. <value>0</value>
  395. <description>The maximum number of files, directories and blocks
  396. dfs supports. A value of zero indicates no limit to the number
  397. of objects that dfs supports.
  398. </description>
  399. </property>
  400. <property>
  401. <name>dfs.namenode.decommission.interval</name>
  402. <value>300</value>
  403. <description>Namenode periodicity in seconds to check if decommission is complete.</description>
  404. </property>
  405. <property>
  406. <name>dfs.replication.interval</name>
  407. <value>3</value>
  408. <description>The periodicity in seconds with which the namenode computes repliaction work for datanodes. </description>
  409. </property>
  410. <property>
  411. <name>fs.s3.block.size</name>
  412. <value>67108864</value>
  413. <description>Block size to use when writing files to S3.</description>
  414. </property>
  415. <property>
  416. <name>fs.s3.buffer.dir</name>
  417. <value>${hadoop.tmp.dir}/s3</value>
  418. <description>Determines where on the local filesystem the S3 filesystem
  419. should store its blocks before it sends them to S3
  420. or after it retrieves them from S3.
  421. </description>
  422. </property>
  423. <property>
  424. <name>fs.s3.maxRetries</name>
  425. <value>4</value>
  426. <description>The maximum number of retries for reading or writing blocks to S3,
  427. before we signal failure to the application.
  428. </description>
  429. </property>
  430. <property>
  431. <name>fs.s3.sleepTimeSeconds</name>
  432. <value>10</value>
  433. <description>The number of seconds to sleep between each S3 retry.
  434. </description>
  435. </property>
  436. <!-- map/reduce properties -->
  437. <property>
  438. <name>mapred.job.tracker</name>
  439. <value>local</value>
  440. <description>The host and port that the MapReduce job tracker runs
  441. at. If "local", then jobs are run in-process as a single map
  442. and reduce task.
  443. </description>
  444. </property>
  445. <property>
  446. <name>mapred.job.tracker.http.address</name>
  447. <value>0.0.0.0:50030</value>
  448. <description>
  449. The job tracker http server address and port the server will listen on.
  450. If the port is 0 then the server will start on a free port.
  451. </description>
  452. </property>
  453. <property>
  454. <name>mapred.job.history.http.bindAddress</name>
  455. <value>0.0.0.0:0</value>
  456. <description>
  457. The job history http server bind address and port.
  458. If the port is 0 then the server will start on a free port.
  459. </description>
  460. </property>
  461. <property>
  462. <name>mapred.job.tracker.handler.count</name>
  463. <value>10</value>
  464. <description>
  465. The number of server threads for the JobTracker. This should be roughly
  466. 4% of the number of tasktracker nodes.
  467. </description>
  468. </property>
  469. <property>
  470. <name>mapred.task.tracker.report.address</name>
  471. <value>127.0.0.1:0</value>
  472. <description>The interface and port that task tracker server listens on.
  473. Since it is only connected to by the tasks, it uses the local interface.
  474. EXPERT ONLY. Should only be changed if your host does not have the loopback
  475. interface.</description>
  476. </property>
  477. <property>
  478. <name>mapred.local.dir</name>
  479. <value>${hadoop.tmp.dir}/mapred/local</value>
  480. <description>The local directory where MapReduce stores intermediate
  481. data files. May be a comma-separated list of
  482. directories on different devices in order to spread disk i/o.
  483. Directories that do not exist are ignored.
  484. </description>
  485. </property>
  486. <property>
  487. <name>local.cache.size</name>
  488. <value>10737418240</value>
  489. <description>The limit on the size of cache you want to keep, set by default
  490. to 10GB. This will act as a soft limit on the cache directory for out of band data.
  491. </description>
  492. </property>
  493. <property>
  494. <name>mapred.system.dir</name>
  495. <value>${hadoop.tmp.dir}/mapred/system</value>
  496. <description>The shared directory where MapReduce stores control files.
  497. </description>
  498. </property>
  499. <property>
  500. <name>mapred.temp.dir</name>
  501. <value>${hadoop.tmp.dir}/mapred/temp</value>
  502. <description>A shared directory for temporary files.
  503. </description>
  504. </property>
  505. <property>
  506. <name>mapred.local.dir.minspacestart</name>
  507. <value>0</value>
  508. <description>If the space in mapred.local.dir drops under this,
  509. do not ask for more tasks.
  510. Value in bytes.
  511. </description>
  512. </property>
  513. <property>
  514. <name>mapred.local.dir.minspacekill</name>
  515. <value>0</value>
  516. <description>If the space in mapred.local.dir drops under this,
  517. do not ask more tasks until all the current ones have finished and
  518. cleaned up. Also, to save the rest of the tasks we have running,
  519. kill one of them, to clean up some space. Start with the reduce tasks,
  520. then go with the ones that have finished the least.
  521. Value in bytes.
  522. </description>
  523. </property>
  524. <property>
  525. <name>mapred.tasktracker.expiry.interval</name>
  526. <value>600000</value>
  527. <description>Expert: The time-interval, in miliseconds, after which
  528. a tasktracker is declared 'lost' if it doesn't send heartbeats.
  529. </description>
  530. </property>
  531. <property>
  532. <name>mapred.map.tasks</name>
  533. <value>2</value>
  534. <description>The default number of map tasks per job. Typically set
  535. to a prime several times greater than number of available hosts.
  536. Ignored when mapred.job.tracker is "local".
  537. </description>
  538. </property>
  539. <property>
  540. <name>mapred.reduce.tasks</name>
  541. <value>1</value>
  542. <description>The default number of reduce tasks per job. Typically set
  543. to a prime close to the number of available hosts. Ignored when
  544. mapred.job.tracker is "local".
  545. </description>
  546. </property>
  547. <property>
  548. <name>mapred.map.max.attempts</name>
  549. <value>4</value>
  550. <description>Expert: The maximum number of attempts per map task.
  551. In other words, framework will try to execute a map task these many number
  552. of times before giving up on it.
  553. </description>
  554. </property>
  555. <property>
  556. <name>mapred.reduce.max.attempts</name>
  557. <value>4</value>
  558. <description>Expert: The maximum number of attempts per reduce task.
  559. In other words, framework will try to execute a reduce task these many number
  560. of times before giving up on it.
  561. </description>
  562. </property>
  563. <property>
  564. <name>mapred.reduce.parallel.copies</name>
  565. <value>5</value>
  566. <description>The default number of parallel transfers run by reduce
  567. during the copy(shuffle) phase.
  568. </description>
  569. </property>
  570. <property>
  571. <name>mapred.reduce.copy.backoff</name>
  572. <value>300</value>
  573. <description>The maximum amount of time (in seconds) a reducer spends on
  574. fetching one map output before declaring it as failed.
  575. </description>
  576. </property>
  577. <property>
  578. <name>mapred.task.timeout</name>
  579. <value>600000</value>
  580. <description>The number of milliseconds before a task will be
  581. terminated if it neither reads an input, writes an output, nor
  582. updates its status string.
  583. </description>
  584. </property>
  585. <property>
  586. <name>mapred.tasktracker.map.tasks.maximum</name>
  587. <value>2</value>
  588. <description>The maximum number of map tasks that will be run
  589. simultaneously by a task tracker.
  590. </description>
  591. </property>
  592. <property>
  593. <name>mapred.tasktracker.reduce.tasks.maximum</name>
  594. <value>2</value>
  595. <description>The maximum number of reduce tasks that will be run
  596. simultaneously by a task tracker.
  597. </description>
  598. </property>
  599. <property>
  600. <name>mapred.jobtracker.completeuserjobs.maximum</name>
  601. <value>100</value>
  602. <description>The maximum number of complete jobs per user to keep around before delegating them to the job history.
  603. </description>
  604. </property>
  605. <property>
  606. <name>mapred.child.java.opts</name>
  607. <value>-Xmx200m</value>
  608. <description>Java opts for the task tracker child processes.
  609. The following symbol, if present, will be interpolated: @taskid@ is replaced
  610. by current TaskID. Any other occurrences of '@' will go unchanged.
  611. For example, to enable verbose gc logging to a file named for the taskid in
  612. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  613. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  614. </description>
  615. </property>
  616. <property>
  617. <name>mapred.child.tmp</name>
  618. <value>./tmp</value>
  619. <description> To set the value of tmp directory for map and reduce tasks.
  620. If the value is an absolute path, it is directly assigned. Otherwise, it is
  621. prepended with task's working directory. The java tasks are executed with
  622. option -Djava.io.tmpdir='the absolute path of the tmp dir'. Pipes and
  623. streaming are set with environment variable,
  624. TMPDIR='the absolute path of the tmp dir'
  625. </description>
  626. </property>
  627. <property>
  628. <name>mapred.inmem.merge.threshold</name>
  629. <value>1000</value>
  630. <description>The threshold, in terms of the number of files
  631. for the in-memory merge process. When we accumulate threshold number of files
  632. we initiate the in-memory merge and spill to disk. A value of 0 or less than
  633. 0 indicates we want to DON'T have any threshold and instead depend only on
  634. the ramfs's memory consumption to trigger the merge.
  635. </description>
  636. </property>
  637. <property>
  638. <name>mapred.map.tasks.speculative.execution</name>
  639. <value>true</value>
  640. <description>If true, then multiple instances of some map tasks
  641. may be executed in parallel.</description>
  642. </property>
  643. <property>
  644. <name>mapred.reduce.tasks.speculative.execution</name>
  645. <value>true</value>
  646. <description>If true, then multiple instances of some reduce tasks
  647. may be executed in parallel.</description>
  648. </property>
  649. <property>
  650. <name>mapred.min.split.size</name>
  651. <value>0</value>
  652. <description>The minimum size chunk that map input should be split
  653. into. Note that some file formats may have minimum split sizes that
  654. take priority over this setting.</description>
  655. </property>
  656. <property>
  657. <name>mapred.submit.replication</name>
  658. <value>10</value>
  659. <description>The replication level for submitted job files. This
  660. should be around the square root of the number of nodes.
  661. </description>
  662. </property>
  663. <property>
  664. <name>mapred.tasktracker.dns.interface</name>
  665. <value>default</value>
  666. <description>The name of the Network Interface from which a task
  667. tracker should report its IP address.
  668. </description>
  669. </property>
  670. <property>
  671. <name>mapred.tasktracker.dns.nameserver</name>
  672. <value>default</value>
  673. <description>The host name or IP address of the name server (DNS)
  674. which a TaskTracker should use to determine the host name used by
  675. the JobTracker for communication and display purposes.
  676. </description>
  677. </property>
  678. <property>
  679. <name>tasktracker.http.threads</name>
  680. <value>40</value>
  681. <description>The number of worker threads that for the http server. This is
  682. used for map output fetching
  683. </description>
  684. </property>
  685. <property>
  686. <name>mapred.task.tracker.http.address</name>
  687. <value>0.0.0.0:50060</value>
  688. <description>
  689. The task tracker http server address and port.
  690. If the port is 0 then the server will start on a free port.
  691. </description>
  692. </property>
  693. <property>
  694. <name>keep.failed.task.files</name>
  695. <value>false</value>
  696. <description>Should the files for failed tasks be kept. This should only be
  697. used on jobs that are failing, because the storage is never
  698. reclaimed. It also prevents the map outputs from being erased
  699. from the reduce directory as they are consumed.</description>
  700. </property>
  701. <!--
  702. <property>
  703. <name>keep.task.files.pattern</name>
  704. <value>.*_m_123456_0</value>
  705. <description>Keep all files from tasks whose task names match the given
  706. regular expression. Defaults to none.</description>
  707. </property>
  708. -->
  709. <property>
  710. <name>mapred.output.compress</name>
  711. <value>false</value>
  712. <description>Should the job outputs be compressed?
  713. </description>
  714. </property>
  715. <property>
  716. <name>mapred.output.compression.type</name>
  717. <value>RECORD</value>
  718. <description>If the job outputs are to compressed as SequenceFiles, how should
  719. they be compressed? Should be one of NONE, RECORD or BLOCK.
  720. </description>
  721. </property>
  722. <property>
  723. <name>mapred.output.compression.codec</name>
  724. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  725. <description>If the job outputs are compressed, how should they be compressed?
  726. </description>
  727. </property>
  728. <property>
  729. <name>mapred.compress.map.output</name>
  730. <value>false</value>
  731. <description>Should the outputs of the maps be compressed before being
  732. sent across the network. Uses SequenceFile compression.
  733. </description>
  734. </property>
  735. <property>
  736. <name>mapred.map.output.compression.type</name>
  737. <value>RECORD</value>
  738. <description>If the map outputs are to compressed, how should they
  739. be compressed? Should be one of NONE, RECORD or BLOCK.
  740. </description>
  741. </property>
  742. <property>
  743. <name>mapred.map.output.compression.codec</name>
  744. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  745. <description>If the map outputs are compressed, how should they be
  746. compressed?
  747. </description>
  748. </property>
  749. <property>
  750. <name>io.seqfile.compress.blocksize</name>
  751. <value>1000000</value>
  752. <description>The minimum block size for compression in block compressed
  753. SequenceFiles.
  754. </description>
  755. </property>
  756. <property>
  757. <name>io.seqfile.lazydecompress</name>
  758. <value>true</value>
  759. <description>Should values of block-compressed SequenceFiles be decompressed
  760. only when necessary.
  761. </description>
  762. </property>
  763. <property>
  764. <name>io.seqfile.sorter.recordlimit</name>
  765. <value>1000000</value>
  766. <description>The limit on number of records to be kept in memory in a spill
  767. in SequenceFiles.Sorter
  768. </description>
  769. </property>
  770. <property>
  771. <name>map.sort.class</name>
  772. <value>org.apache.hadoop.mapred.MergeSorter</value>
  773. <description>The default sort class for sorting keys.
  774. </description>
  775. </property>
  776. <property>
  777. <name>mapred.userlog.limit.kb</name>
  778. <value>0</value>
  779. <description>The maximum size of user-logs of each task in KB. 0 disables the cap.
  780. </description>
  781. </property>
  782. <property>
  783. <name>mapred.userlog.retain.hours</name>
  784. <value>24</value>
  785. <description>The maximum time, in hours, for which the user-logs are to be
  786. retained.
  787. </description>
  788. </property>
  789. <property>
  790. <name>mapred.hosts</name>
  791. <value></value>
  792. <description>Names a file that contains the list of nodes that may
  793. connect to the jobtracker. If the value is empty, all hosts are
  794. permitted.</description>
  795. </property>
  796. <property>
  797. <name>mapred.hosts.exclude</name>
  798. <value></value>
  799. <description>Names a file that contains the list of hosts that
  800. should be excluded by the jobtracker. If the value is empty, no
  801. hosts are excluded.</description>
  802. </property>
  803. <property>
  804. <name>mapred.max.tracker.failures</name>
  805. <value>4</value>
  806. <description>The number of task-failures on a tasktracker of a given job
  807. after which new tasks of that job aren't assigned to it.
  808. </description>
  809. </property>
  810. <property>
  811. <name>jobclient.output.filter</name>
  812. <value>FAILED</value>
  813. <description>The filter for controlling the output of the task's userlogs sent
  814. to the console of the JobClient.
  815. The permissible options are: NONE, KILLED, FAILED, SUCCEEDED and
  816. ALL.
  817. </description>
  818. </property>
  819. <property>
  820. <name>mapred.job.tracker.persist.jobstatus.active</name>
  821. <value>false</value>
  822. <description>Indicates if persistency of job status information is
  823. active or not.
  824. </description>
  825. </property>
  826. <property>
  827. <name>mapred.job.tracker.persist.jobstatus.hours</name>
  828. <value>0</value>
  829. <description>The number of hours job status information is persisted in DFS.
  830. The job status information will be available after it drops of the memory
  831. queue and between jobtracker restarts. With a zero value the job status
  832. information is not persisted at all in DFS.
  833. </description>
  834. </property>
  835. <property>
  836. <name>mapred.job.tracker.persist.jobstatus.dir</name>
  837. <value>/jobtracker/jobsInfo</value>
  838. <description>The directory where the job status information is persisted
  839. in a file system to be available after it drops of the memory queue and
  840. between jobtracker restarts.
  841. </description>
  842. </property>
  843. <property>
  844. <name>mapred.task.profile</name>
  845. <value>false</value>
  846. <description>To set whether the system should collect profiler
  847. information for some of the tasks in this job? The information is stored
  848. in the the user log directory. The value is "true" if task profiling
  849. is enabled.</description>
  850. </property>
  851. <property>
  852. <name>mapred.task.profile.maps</name>
  853. <value>0-2</value>
  854. <description> To set the ranges of map tasks to profile.
  855. mapred.task.profile has to be set to true for the value to be accounted.
  856. </description>
  857. </property>
  858. <property>
  859. <name>mapred.task.profile.reduces</name>
  860. <value>0-2</value>
  861. <description> To set the ranges of reduce tasks to profile.
  862. mapred.task.profile has to be set to true for the value to be accounted.
  863. </description>
  864. </property>
  865. <!-- ipc properties -->
  866. <property>
  867. <name>ipc.client.timeout</name>
  868. <value>60000</value>
  869. <description>Defines the timeout for IPC calls in milliseconds.</description>
  870. </property>
  871. <property>
  872. <name>ipc.client.idlethreshold</name>
  873. <value>4000</value>
  874. <description>Defines the threshold number of connections after which
  875. connections will be inspected for idleness.
  876. </description>
  877. </property>
  878. <property>
  879. <name>ipc.client.maxidletime</name>
  880. <value>120000</value>
  881. <description>Defines the maximum idle time for a connected client after
  882. which it may be disconnected.
  883. </description>
  884. </property>
  885. <property>
  886. <name>ipc.client.kill.max</name>
  887. <value>10</value>
  888. <description>Defines the maximum number of clients to disconnect in one go.
  889. </description>
  890. </property>
  891. <property>
  892. <name>ipc.client.connection.maxidletime</name>
  893. <value>1000</value>
  894. <description>The maximum time after which a client will bring down the
  895. connection to the server.
  896. </description>
  897. </property>
  898. <property>
  899. <name>ipc.client.connect.max.retries</name>
  900. <value>10</value>
  901. <description>Indicates the number of retries a client will make to establish
  902. a server connection.
  903. </description>
  904. </property>
  905. <property>
  906. <name>ipc.server.listen.queue.size</name>
  907. <value>128</value>
  908. <description>Indicates the length of the listen queue for servers accepting
  909. client connections.
  910. </description>
  911. </property>
  912. <property>
  913. <name>ipc.server.tcpnodelay</name>
  914. <value>false</value>
  915. <description>Turn on/off Nagle's algorithm for the TCP socket connection on
  916. the server. Setting to true disables the algorithm and may decrease latency
  917. with a cost of more/smaller packets.
  918. </description>
  919. </property>
  920. <property>
  921. <name>ipc.client.tcpnodelay</name>
  922. <value>false</value>
  923. <description>Turn on/off Nagle's algorithm for the TCP socket connection on
  924. the client. Setting to true disables the algorithm and may decrease latency
  925. with a cost of more/smaller packets.
  926. </description>
  927. </property>
  928. <!-- Job Notification Configuration -->
  929. <!--
  930. <property>
  931. <name>job.end.notification.url</name>
  932. <value>http://localhost:8080/jobstatus.php?jobId=$jobId&amp;jobStatus=$jobStatus</value>
  933. <description>Indicates url which will be called on completion of job to inform
  934. end status of job.
  935. User can give at most 2 variables with URI : $jobId and $jobStatus.
  936. If they are present in URI, then they will be replaced by their
  937. respective values.
  938. </description>
  939. </property>
  940. -->
  941. <property>
  942. <name>job.end.retry.attempts</name>
  943. <value>0</value>
  944. <description>Indicates how many times hadoop should attempt to contact the
  945. notification URL </description>
  946. </property>
  947. <property>
  948. <name>job.end.retry.interval</name>
  949. <value>30000</value>
  950. <description>Indicates time in milliseconds between notification URL retry
  951. calls</description>
  952. </property>
  953. <!-- Web Interface Configuration -->
  954. <property>
  955. <name>webinterface.private.actions</name>
  956. <value>false</value>
  957. <description> If set to true, the web interfaces of JT and NN may contain
  958. actions, such as kill job, delete file, etc., that should
  959. not be exposed to public. Enable this option if the interfaces
  960. are only reachable by those who have the right authorization.
  961. </description>
  962. </property>
  963. <!-- Proxy Configuration -->
  964. <property>
  965. <name>hadoop.rpc.socket.factory.class.default</name>
  966. <value>org.apache.hadoop.net.StandardSocketFactory</value>
  967. <description> Default SocketFactory to use. This parameter is expected to be
  968. formatted as "package.FactoryClassName".
  969. </description>
  970. </property>
  971. <property>
  972. <name>hadoop.rpc.socket.factory.class.ClientProtocol</name>
  973. <value></value>
  974. <description> SocketFactory to use to connect to a DFS. If null or empty, use
  975. hadoop.rpc.socket.class.default. This socket factory is also used by
  976. DFSClient to create sockets to DataNodes.
  977. </description>
  978. </property>
  979. <property>
  980. <name>hadoop.rpc.socket.factory.class.JobSubmissionProtocol</name>
  981. <value></value>
  982. <description> SocketFactory to use to connect to a Map/Reduce master
  983. (JobTracker). If null or empty, then use hadoop.rpc.socket.class.default.
  984. </description>
  985. </property>
  986. <property>
  987. <name>hadoop.socks.server</name>
  988. <value></value>
  989. <description> Address (host:port) of the SOCKS server to be used by the
  990. SocksSocketFactory.
  991. </description>
  992. </property>
  993. <!-- Rack Configuration -->
  994. <property>
  995. <name>topology.node.switch.mapping.impl</name>
  996. <value>org.apache.hadoop.net.ScriptBasedMapping</value>
  997. <description> The default implementation of the DNSToSwitchMapping. It
  998. invokes a script specified in topology.script.file.name to resolve
  999. node names. If the value for topology.script.file.name is not set, the
  1000. default value of DEFAULT_RACK is returned for all node names.
  1001. </description>
  1002. </property>
  1003. <property>
  1004. <name>topology.script.file.name</name>
  1005. <value></value>
  1006. <description> The script name that should be invoked to resolve DNS names to
  1007. NetworkTopology names. Example: the script would take host.foo.bar as an
  1008. argument, and return /rack1 as the output.
  1009. </description>
  1010. </property>
  1011. <property>
  1012. <name>topology.script.number.args</name>
  1013. <value>20</value>
  1014. <description> The max number of args that the script configured with
  1015. topology.script.file.name should be run with. Each arg is an
  1016. IP address.
  1017. </description>
  1018. </property>
  1019. <property>
  1020. <name>mapred.task.cache.levels</name>
  1021. <value>2</value>
  1022. <description> This is the max level of the task cache. For example, if
  1023. the level is 2, the tasks cached are at the host level and at the rack
  1024. level.
  1025. </description>
  1026. </property>
  1027. </configuration>