hadoop-default.xml 18 KB

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