hadoop-default.xml 38 KB

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