hadoop-default.xml 38 KB

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