hadoop-default.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683
  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. <!--- logging properties -->
  14. <property>
  15. <name>hadoop.logfile.size</name>
  16. <value>10000000</value>
  17. <description>The max size of each log file</description>
  18. </property>
  19. <property>
  20. <name>hadoop.logfile.count</name>
  21. <value>10</value>
  22. <description>The max number of log files</description>
  23. </property>
  24. <property>
  25. <name>dfs.namenode.logging.level</name>
  26. <value>info</value>
  27. <description>The logging level for dfs namenode. Other values are "dir"(trac
  28. e namespace mutations), "block"(trace block under/over replications and block
  29. creations/deletions), or "all".</description>
  30. </property>
  31. <!-- i/o properties -->
  32. <property>
  33. <name>io.sort.factor</name>
  34. <value>10</value>
  35. <description>The number of streams to merge at once while sorting
  36. files. This determines the number of open file handles.</description>
  37. </property>
  38. <property>
  39. <name>io.sort.mb</name>
  40. <value>100</value>
  41. <description>The total amount of buffer memory to use while sorting
  42. files, in megabytes. By default, gives each merge stream 1MB, which
  43. should minimize seeks.</description>
  44. </property>
  45. <property>
  46. <name>io.file.buffer.size</name>
  47. <value>4096</value>
  48. <description>The size of buffer for use in sequence files.
  49. The size of this buffer should probably be a multiple of hardware
  50. page size (4096 on Intel x86), and it determines how much data is
  51. buffered during read and write operations.</description>
  52. </property>
  53. <property>
  54. <name>io.bytes.per.checksum</name>
  55. <value>512</value>
  56. <description>The number of bytes per checksum. Must not be larger than
  57. io.file.buffer.size.</description>
  58. </property>
  59. <property>
  60. <name>io.skip.checksum.errors</name>
  61. <value>false</value>
  62. <description>If true, when a checksum error is encountered while
  63. reading a sequence file, entries are skipped, instead of throwing an
  64. exception.</description>
  65. </property>
  66. <property>
  67. <name>io.map.index.skip</name>
  68. <value>0</value>
  69. <description>Number of index entries to skip between each entry.
  70. Zero by default. Setting this to values larger than zero can
  71. facilitate opening large map files using less memory.</description>
  72. </property>
  73. <property>
  74. <name>io.compression.codecs</name>
  75. <value>org.apache.hadoop.io.compress.DefaultCodec,org.apache.hadoop.io.compress.GzipCodec</value>
  76. <description>A list of the compression codec classes that can be used
  77. for compression/decompression.</description>
  78. </property>
  79. <!-- file system properties -->
  80. <property>
  81. <name>fs.default.name</name>
  82. <value>file:///</value>
  83. <description>The name of the default file system. A URI whose
  84. scheme and authority determine the FileSystem implementation. The
  85. uri's scheme determines the config property (fs.SCHEME.impl) naming
  86. the FileSystem implementation class. The uri's authority is used to
  87. determine the host, port, etc. for a filesystem.</description>
  88. </property>
  89. <property>
  90. <name>fs.file.impl</name>
  91. <value>org.apache.hadoop.fs.LocalFileSystem</value>
  92. <description>The FileSystem for file: uris.</description>
  93. </property>
  94. <property>
  95. <name>fs.hdfs.impl</name>
  96. <value>org.apache.hadoop.dfs.DistributedFileSystem</value>
  97. <description>The FileSystem for hdfs: uris.</description>
  98. </property>
  99. <property>
  100. <name>fs.s3.impl</name>
  101. <value>org.apache.hadoop.fs.s3.S3FileSystem</value>
  102. <description>The FileSystem for s3: uris.</description>
  103. </property>
  104. <property>
  105. <name>dfs.datanode.bindAddress</name>
  106. <value>0.0.0.0</value>
  107. <description>
  108. the address where the datanode will listen to.
  109. </description>
  110. </property>
  111. <property>
  112. <name>dfs.datanode.port</name>
  113. <value>50010</value>
  114. <description>The port number that the dfs datanode server uses as a starting
  115. point to look for a free port to listen on.
  116. </description>
  117. </property>
  118. <property>
  119. <name>dfs.info.bindAddress</name>
  120. <value>0.0.0.0</value>
  121. <description>
  122. the address where the dfs namenode web ui will listen on.
  123. </description>
  124. </property>
  125. <property>
  126. <name>dfs.info.port</name>
  127. <value>50070</value>
  128. <description>The base port number for the dfs namenode web ui.
  129. </description>
  130. </property>
  131. <property>
  132. <name>dfs.datanode.dns.interface</name>
  133. <value>default</value>
  134. <description>The name of the Network Interface from which a data node should
  135. report its IP address.
  136. </description>
  137. </property>
  138. <property>
  139. <name>dfs.datanode.dns.nameserver</name>
  140. <value>default</value>
  141. <description>The host name or IP address of the name server (DNS)
  142. which a DataNode should use to determine the host name used by the
  143. NameNode for communication and display purposes.
  144. </description>
  145. </property>
  146. <property>
  147. <name>dfs.default.chunk.view.size</name>
  148. <value>32768</value>
  149. <description>The number of bytes to view for a file on the browser.
  150. </description>
  151. </property>
  152. <property>
  153. <name>dfs.datanode.du.reserved</name>
  154. <value>0</value>
  155. <description>Reserved space in bytes. Always leave this much space free for non dfs use
  156. </description>
  157. </property>
  158. <property>
  159. <name>dfs.datanode.du.pct</name>
  160. <value>0.98f</value>
  161. <description>When calculating remaining space, only use this percentage of the real available space
  162. </description>
  163. </property>
  164. <property>
  165. <name>dfs.name.dir</name>
  166. <value>${hadoop.tmp.dir}/dfs/name</value>
  167. <description>Determines where on the local filesystem the DFS name node
  168. should store the name table. If this is a comma-delimited list
  169. of directories then the name table is replicated in all of the
  170. directories, for redundancy. </description>
  171. </property>
  172. <property>
  173. <name>dfs.client.buffer.dir</name>
  174. <value>${hadoop.tmp.dir}/dfs/tmp</value>
  175. <description>Determines where on the local filesystem an DFS client
  176. should store its blocks before it sends them to the datanode.
  177. </description>
  178. </property>
  179. <property>
  180. <name>dfs.data.dir</name>
  181. <value>${hadoop.tmp.dir}/dfs/data</value>
  182. <description>Determines where on the local filesystem an DFS data node
  183. should store its blocks. If this is a comma-delimited
  184. list of directories, then data will be stored in all named
  185. directories, typically on different devices.
  186. Directories that do not exist are ignored.
  187. </description>
  188. </property>
  189. <property>
  190. <name>dfs.replication</name>
  191. <value>3</value>
  192. <description>Default block replication.
  193. The actual number of replications can be specified when the file is created.
  194. The default is used if replication is not specified in create time.
  195. </description>
  196. </property>
  197. <property>
  198. <name>dfs.replication.max</name>
  199. <value>512</value>
  200. <description>Maximal block replication.
  201. </description>
  202. </property>
  203. <property>
  204. <name>dfs.replication.min</name>
  205. <value>1</value>
  206. <description>Minimal block replication.
  207. </description>
  208. </property>
  209. <property>
  210. <name>dfs.block.size</name>
  211. <value>67108864</value>
  212. <description>The default block size for new files.</description>
  213. </property>
  214. <property>
  215. <name>dfs.df.interval</name>
  216. <value>3000</value>
  217. <description>Disk usage statistics refresh interval in msec.</description>
  218. </property>
  219. <property>
  220. <name>dfs.client.block.write.retries</name>
  221. <value>3</value>
  222. <description>The number of retries for writing blocks to the data nodes,
  223. before we signal failure to the application.
  224. </description>
  225. </property>
  226. <property>
  227. <name>dfs.blockreport.intervalMsec</name>
  228. <value>3600000</value>
  229. <description>Determines block reporting interval in milliseconds.</description>
  230. </property>
  231. <property>
  232. <name>dfs.heartbeat.interval</name>
  233. <value>3</value>
  234. <description>Determines datanode heartbeat interval in seconds.</description>
  235. </property>
  236. <property>
  237. <name>dfs.safemode.threshold.pct</name>
  238. <value>0.999f</value>
  239. <description>
  240. Specifies the percentage of blocks that should satisfy
  241. the minimal replication requirement defined by dfs.replication.min.
  242. Values less than or equal to 0 mean not to start in safe mode.
  243. Values greater than 1 will make safe mode permanent.
  244. </description>
  245. </property>
  246. <property>
  247. <name>dfs.safemode.extension</name>
  248. <value>30000</value>
  249. <description>
  250. Determines extension of safe mode in milliseconds
  251. after the threshold level is reached.
  252. </description>
  253. </property>
  254. <!-- map/reduce properties -->
  255. <property>
  256. <name>mapred.job.tracker</name>
  257. <value>local</value>
  258. <description>The host and port that the MapReduce job tracker runs
  259. at. If "local", then jobs are run in-process as a single map
  260. and reduce task.
  261. </description>
  262. </property>
  263. <property>
  264. <name>mapred.job.tracker.info.bindAddress</name>
  265. <value>0.0.0.0</value>
  266. <description>
  267. the address where the job tracker info webserver will be binded on.
  268. </description>
  269. </property>
  270. <property>
  271. <name>mapred.job.tracker.info.port</name>
  272. <value>50030</value>
  273. <description>The port that the MapReduce job tracker info webserver runs at.
  274. </description>
  275. </property>
  276. <property>
  277. <name>mapred.task.tracker.report.bindAddress</name>
  278. <value>0.0.0.0</value>
  279. <description>
  280. the address where the maperd tracker report server will be binded on.
  281. </description>
  282. </property>
  283. <property>
  284. <name>mapred.task.tracker.report.port</name>
  285. <value>50050</value>
  286. <description>The port number that the MapReduce task tracker report server uses as a starting
  287. point to look for a free port to listen on.
  288. </description>
  289. </property>
  290. <property>
  291. <name>mapred.local.dir</name>
  292. <value>${hadoop.tmp.dir}/mapred/local</value>
  293. <description>The local directory where MapReduce stores intermediate
  294. data files. May be a comma-separated list of
  295. directories on different devices in order to spread disk i/o.
  296. Directories that do not exist are ignored.
  297. </description>
  298. </property>
  299. <property>
  300. <name>local.cache.size</name>
  301. <value>10737418240</value>
  302. <description>The limit on the size of cache you want to keep, set by default
  303. to 10GB. This will act as a soft limit on the cache directory for out of band data.
  304. </description>
  305. </property>
  306. <property>
  307. <name>mapred.system.dir</name>
  308. <value>${hadoop.tmp.dir}/mapred/system</value>
  309. <description>The shared directory where MapReduce stores control files.
  310. </description>
  311. </property>
  312. <property>
  313. <name>mapred.temp.dir</name>
  314. <value>${hadoop.tmp.dir}/mapred/temp</value>
  315. <description>A shared directory for temporary files.
  316. </description>
  317. </property>
  318. <property>
  319. <name>mapred.local.dir.minspacestart</name>
  320. <value>0</value>
  321. <description>If the space in mapred.local.dir drops under this,
  322. do not ask for more tasks.
  323. Value in bytes.
  324. </description>
  325. </property>
  326. <property>
  327. <name>mapred.local.dir.minspacekill</name>
  328. <value>0</value>
  329. <description>If the space in mapred.local.dir drops under this,
  330. do not ask more tasks until all the current ones have finished and
  331. cleaned up. Also, to save the rest of the tasks we have running,
  332. kill one of them, to clean up some space. Start with the reduce tasks,
  333. then go with the ones that have finished the least.
  334. Value in bytes.
  335. </description>
  336. </property>
  337. <property>
  338. <name>mapred.map.tasks</name>
  339. <value>2</value>
  340. <description>The default number of map tasks per job. Typically set
  341. to a prime several times greater than number of available hosts.
  342. Ignored when mapred.job.tracker is "local".
  343. </description>
  344. </property>
  345. <property>
  346. <name>mapred.reduce.tasks</name>
  347. <value>1</value>
  348. <description>The default number of reduce tasks per job. Typically set
  349. to a prime close to the number of available hosts. Ignored when
  350. mapred.job.tracker is "local".
  351. </description>
  352. </property>
  353. <property>
  354. <name>mapred.reduce.parallel.copies</name>
  355. <value>5</value>
  356. <description>The default number of parallel transfers run by reduce
  357. during the copy(shuffle) phase.
  358. </description>
  359. </property>
  360. <property>
  361. <name>mapred.task.timeout</name>
  362. <value>600000</value>
  363. <description>The number of milliseconds before a task will be
  364. terminated if it neither reads an input, writes an output, nor
  365. updates its status string.
  366. </description>
  367. </property>
  368. <property>
  369. <name>mapred.tasktracker.tasks.maximum</name>
  370. <value>2</value>
  371. <description>The maximum number of tasks that will be run
  372. simultaneously by a task tracker.
  373. </description>
  374. </property>
  375. <property>
  376. <name>mapred.child.java.opts</name>
  377. <value>-Xmx200m</value>
  378. <description>Java opts for the task tracker child processes. Subsumes
  379. 'mapred.child.heap.size' (If a mapred.child.heap.size value is found
  380. in a configuration, its maximum heap size will be used and a warning
  381. emitted that heap.size has been deprecated). Also, the following symbols,
  382. if present, will be interpolated: @taskid@ is replaced by current TaskID;
  383. and @port@ will be replaced by mapred.task.tracker.report.port + 1 (A second
  384. child will fail with a port-in-use if mapred.tasktracker.tasks.maximum is
  385. greater than one). Any other occurrences of '@' will go unchanged. For
  386. example, to enable verbose gc logging to a file named for the taskid in
  387. /tmp and to set the heap maximum to be a gigabyte, pass a 'value' of:
  388. -Xmx1024m -verbose:gc -Xloggc:/tmp/@taskid@.gc
  389. </description>
  390. </property>
  391. <property>
  392. <name>mapred.speculative.execution</name>
  393. <value>false</value>
  394. <description>If true, then multiple instances of some map and reduce tasks
  395. may be executed in parallel.</description>
  396. </property>
  397. <property>
  398. <name>mapred.min.split.size</name>
  399. <value>0</value>
  400. <description>The minimum size chunk that map input should be split
  401. into. Note that some file formats may have minimum split sizes that
  402. take priority over this setting.</description>
  403. </property>
  404. <property>
  405. <name>mapred.submit.replication</name>
  406. <value>10</value>
  407. <description>The replication level for submitted job files. This
  408. should be around the square root of the number of nodes.
  409. </description>
  410. </property>
  411. <property>
  412. <name>mapred.tasktracker.dns.interface</name>
  413. <value>default</value>
  414. <description>The name of the Network Interface from which a task
  415. tracker should report its IP address.
  416. </description>
  417. </property>
  418. <property>
  419. <name>mapred.tasktracker.dns.nameserver</name>
  420. <value>default</value>
  421. <description>The host name or IP address of the name server (DNS)
  422. which a TaskTracker should use to determine the host name used by
  423. the JobTracker for communication and display purposes.
  424. </description>
  425. </property>
  426. <property>
  427. <name>tasktracker.http.threads</name>
  428. <value>40</value>
  429. <description>The number of worker threads that for the http server. This is
  430. used for map output fetching
  431. </description>
  432. </property>
  433. <property>
  434. <name>tasktracker.http.bindAddress</name>
  435. <value>0.0.0.0</value>
  436. <description>
  437. the address where the task tracker http server will be binded on.
  438. </description>
  439. </property>
  440. <property>
  441. <name>tasktracker.http.port</name>
  442. <value>50060</value>
  443. <description>The default port for task trackers to use as their http server.
  444. </description>
  445. </property>
  446. <property>
  447. <name>keep.failed.task.files</name>
  448. <value>false</value>
  449. <description>Should the files for failed tasks be kept. This should only be
  450. used on jobs that are failing, because the storage is never
  451. reclaimed. It also prevents the map outputs from being erased
  452. from the reduce directory as they are consumed.</description>
  453. </property>
  454. <!--
  455. <property>
  456. <name>keep.task.files.pattern</name>
  457. <value>.*_m_123456_0</value>
  458. <description>Keep all files from tasks whose task names match the given
  459. regular expression. Defaults to none.</description>
  460. </property>
  461. -->
  462. <property>
  463. <name>mapred.output.compress</name>
  464. <value>false</value>
  465. <description>Should the outputs of the reduces be compressed?
  466. </description>
  467. </property>
  468. <property>
  469. <name>mapred.output.compression.codec</name>
  470. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  471. <description>If the reduce outputs are compressed, how should they be
  472. compressed?
  473. </description>
  474. </property>
  475. <property>
  476. <name>mapred.compress.map.output</name>
  477. <value>false</value>
  478. <description>Should the outputs of the maps be compressed before being
  479. sent across the network. Uses SequenceFile compression.
  480. </description>
  481. </property>
  482. <property>
  483. <name>io.seqfile.compress.blocksize</name>
  484. <value>1000000</value>
  485. <description>The minimum block size for compression in block compressed
  486. SequenceFiles.
  487. </description>
  488. </property>
  489. <property>
  490. <name>io.seqfile.lazydecompress</name>
  491. <value>true</value>
  492. <description>Should values of block-compressed SequenceFiles be decompressed
  493. only when necessary.
  494. </description>
  495. </property>
  496. <property>
  497. <name>io.seqfile.sorter.recordlimit</name>
  498. <value>1000000</value>
  499. <description>The limit on number of records to be kept in memory in a spill
  500. in SequenceFiles.Sorter
  501. </description>
  502. </property>
  503. <property>
  504. <name>io.seqfile.compression.type</name>
  505. <value>RECORD</value>
  506. <description>The default compression type for SequenceFile.Writer.
  507. </description>
  508. </property>
  509. <property>
  510. <name>map.sort.class</name>
  511. <value>org.apache.hadoop.mapred.MergeSorter</value>
  512. <description>The default sort class for sorting keys.
  513. </description>
  514. </property>
  515. <property>
  516. <name>mapred.userlog.num.splits</name>
  517. <value>4</value>
  518. <description>The number of fragments into which the user-log is to be split.
  519. </description>
  520. </property>
  521. <property>
  522. <name>mapred.userlog.limit.kb</name>
  523. <value>100</value>
  524. <description>The maximum size of user-logs of each task.
  525. </description>
  526. </property>
  527. <property>
  528. <name>mapred.userlog.purgesplits</name>
  529. <value>true</value>
  530. <description>Should the splits be purged disregarding the user-log size limit.
  531. </description>
  532. </property>
  533. <property>
  534. <name>mapred.userlog.retain.hours</name>
  535. <value>12</value>
  536. <description>The maximum time, in hours, for which the user-logs are to be
  537. retained.
  538. </description>
  539. </property>
  540. <!-- ipc properties -->
  541. <property>
  542. <name>ipc.client.timeout</name>
  543. <value>60000</value>
  544. <description>Defines the timeout for IPC calls in milliseconds.</description>
  545. </property>
  546. <property>
  547. <name>ipc.client.idlethreshold</name>
  548. <value>4000</value>
  549. <description>Defines the threshold number of connections after which
  550. connections will be inspected for idleness.
  551. </description>
  552. </property>
  553. <property>
  554. <name>ipc.client.maxidletime</name>
  555. <value>120000</value>
  556. <description>Defines the maximum idle time for a connected client after
  557. which it may be disconnected.
  558. </description>
  559. </property>
  560. <property>
  561. <name>ipc.client.kill.max</name>
  562. <value>10</value>
  563. <description>Defines the maximum number of clients to disconnect in one go.
  564. </description>
  565. </property>
  566. <property>
  567. <name>ipc.client.connection.maxidletime</name>
  568. <value>1000</value>
  569. <description>The maximum time after which a client will bring down the
  570. connection to the server.
  571. </description>
  572. </property>
  573. <property>
  574. <name>ipc.client.connect.max.retries</name>
  575. <value>10</value>
  576. <description>Indicates the number of retries a client will make to establish
  577. a server connection.
  578. </description>
  579. </property>
  580. <property>
  581. <name>ipc.server.listen.queue.size</name>
  582. <value>128</value>
  583. <description>Indicates the length of the listen queue for servers accepting
  584. client connections.
  585. </description>
  586. </property>
  587. </configuration>