hdfs-default.xml 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. -->
  16. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  17. <!-- Do not modify this file directly. Instead, copy entries that you -->
  18. <!-- wish to modify from this file into hdfs-site.xml and change them -->
  19. <!-- there. If hdfs-site.xml does not already exist, create it. -->
  20. <configuration>
  21. <property>
  22. <name>hadoop.hdfs.configuration.version</name>
  23. <value>1</value>
  24. <description>version of this configuration file</description>
  25. </property>
  26. <property>
  27. <name>dfs.namenode.logging.level</name>
  28. <value>info</value>
  29. <description>The logging level for dfs namenode. Other values are "dir"(trac
  30. e namespace mutations), "block"(trace block under/over replications and block
  31. creations/deletions), or "all".</description>
  32. </property>
  33. <property>
  34. <name>dfs.namenode.secondary.http-address</name>
  35. <value>0.0.0.0:50090</value>
  36. <description>
  37. The secondary namenode http server address and port.
  38. If the port is 0 then the server will start on a free port.
  39. </description>
  40. </property>
  41. <property>
  42. <name>dfs.datanode.address</name>
  43. <value>0.0.0.0:50010</value>
  44. <description>
  45. The address where the datanode server will listen to.
  46. If the port is 0 then the server will start on a free port.
  47. </description>
  48. </property>
  49. <property>
  50. <name>dfs.datanode.http.address</name>
  51. <value>0.0.0.0:50075</value>
  52. <description>
  53. The datanode http server address and port.
  54. If the port is 0 then the server will start on a free port.
  55. </description>
  56. </property>
  57. <property>
  58. <name>dfs.datanode.ipc.address</name>
  59. <value>0.0.0.0:50020</value>
  60. <description>
  61. The datanode ipc server address and port.
  62. If the port is 0 then the server will start on a free port.
  63. </description>
  64. </property>
  65. <property>
  66. <name>dfs.datanode.handler.count</name>
  67. <value>3</value>
  68. <description>The number of server threads for the datanode.</description>
  69. </property>
  70. <property>
  71. <name>dfs.namenode.http-address</name>
  72. <value>0.0.0.0:50070</value>
  73. <description>
  74. The address and the base port where the dfs namenode web ui will listen on.
  75. If the port is 0 then the server will start on a free port.
  76. </description>
  77. </property>
  78. <property>
  79. <name>dfs.https.enable</name>
  80. <value>false</value>
  81. <description>Decide if HTTPS(SSL) is supported on HDFS
  82. </description>
  83. </property>
  84. <property>
  85. <name>dfs.client.https.need-auth</name>
  86. <value>false</value>
  87. <description>Whether SSL client certificate authentication is required
  88. </description>
  89. </property>
  90. <property>
  91. <name>dfs.https.server.keystore.resource</name>
  92. <value>ssl-server.xml</value>
  93. <description>Resource file from which ssl server keystore
  94. information will be extracted
  95. </description>
  96. </property>
  97. <property>
  98. <name>dfs.client.https.keystore.resource</name>
  99. <value>ssl-client.xml</value>
  100. <description>Resource file from which ssl client keystore
  101. information will be extracted
  102. </description>
  103. </property>
  104. <property>
  105. <name>dfs.datanode.https.address</name>
  106. <value>0.0.0.0:50475</value>
  107. </property>
  108. <property>
  109. <name>dfs.namenode.https-address</name>
  110. <value>0.0.0.0:50470</value>
  111. </property>
  112. <property>
  113. <name>dfs.datanode.dns.interface</name>
  114. <value>default</value>
  115. <description>The name of the Network Interface from which a data node should
  116. report its IP address.
  117. </description>
  118. </property>
  119. <property>
  120. <name>dfs.datanode.dns.nameserver</name>
  121. <value>default</value>
  122. <description>The host name or IP address of the name server (DNS)
  123. which a DataNode should use to determine the host name used by the
  124. NameNode for communication and display purposes.
  125. </description>
  126. </property>
  127. <property>
  128. <name>dfs.namenode.backup.address</name>
  129. <value>0.0.0.0:50100</value>
  130. <description>
  131. The backup node server address and port.
  132. If the port is 0 then the server will start on a free port.
  133. </description>
  134. </property>
  135. <property>
  136. <name>dfs.namenode.backup.http-address</name>
  137. <value>0.0.0.0:50105</value>
  138. <description>
  139. The backup node http server address and port.
  140. If the port is 0 then the server will start on a free port.
  141. </description>
  142. </property>
  143. <property>
  144. <name>dfs.namenode.replication.considerLoad</name>
  145. <value>true</value>
  146. <description>Decide if chooseTarget considers the target's load or not
  147. </description>
  148. </property>
  149. <property>
  150. <name>dfs.default.chunk.view.size</name>
  151. <value>32768</value>
  152. <description>The number of bytes to view for a file on the browser.
  153. </description>
  154. </property>
  155. <property>
  156. <name>dfs.datanode.du.reserved</name>
  157. <value>0</value>
  158. <description>Reserved space in bytes per volume. Always leave this much space free for non dfs use.
  159. </description>
  160. </property>
  161. <property>
  162. <name>dfs.namenode.name.dir</name>
  163. <value>file://${hadoop.tmp.dir}/dfs/name</value>
  164. <description>Determines where on the local filesystem the DFS name node
  165. should store the name table(fsimage). If this is a comma-delimited list
  166. of directories then the name table is replicated in all of the
  167. directories, for redundancy. </description>
  168. </property>
  169. <property>
  170. <name>dfs.namenode.fs-limits.max-component-length</name>
  171. <value>0</value>
  172. <description>Defines the maximum number of characters in each component
  173. of a path. A value of 0 will disable the check.</description>
  174. </property>
  175. <property>
  176. <name>dfs.namenode.fs-limits.max-directory-items</name>
  177. <value>0</value>
  178. <description>Defines the maximum number of items that a directory may
  179. contain. A value of 0 will disable the check.</description>
  180. </property>
  181. <property>
  182. <name>dfs.namenode.edits.dir</name>
  183. <value>${dfs.namenode.name.dir}</value>
  184. <description>Determines where on the local filesystem the DFS name node
  185. should store the transaction (edits) file. If this is a comma-delimited list
  186. of directories then the transaction file is replicated in all of the
  187. directories, for redundancy. Default value is same as dfs.name.dir
  188. </description>
  189. </property>
  190. <property>
  191. <name>dfs.web.ugi</name>
  192. <value>webuser,webgroup</value>
  193. <description>The user account used by the web interface.
  194. Syntax: USERNAME,GROUP1,GROUP2, ...
  195. </description>
  196. </property>
  197. <property>
  198. <name>dfs.permissions.enabled</name>
  199. <value>true</value>
  200. <description>
  201. If "true", enable permission checking in HDFS.
  202. If "false", permission checking is turned off,
  203. but all other behavior is unchanged.
  204. Switching from one parameter value to the other does not change the mode,
  205. owner or group of files or directories.
  206. </description>
  207. </property>
  208. <property>
  209. <name>dfs.permissions.superusergroup</name>
  210. <value>supergroup</value>
  211. <description>The name of the group of super-users.</description>
  212. </property>
  213. <!--
  214. <property>
  215. <name>dfs.cluster.administrators</name>
  216. <value>ACL for the admins</value>
  217. <description>This configuration is used to control who can access the
  218. default servlets in the namenode, etc.
  219. </description>
  220. </property>
  221. -->
  222. <property>
  223. <name>dfs.block.access.token.enable</name>
  224. <value>false</value>
  225. <description>
  226. If "true", access tokens are used as capabilities for accessing datanodes.
  227. If "false", no access tokens are checked on accessing datanodes.
  228. </description>
  229. </property>
  230. <property>
  231. <name>dfs.block.access.key.update.interval</name>
  232. <value>600</value>
  233. <description>
  234. Interval in minutes at which namenode updates its access keys.
  235. </description>
  236. </property>
  237. <property>
  238. <name>dfs.block.access.token.lifetime</name>
  239. <value>600</value>
  240. <description>The lifetime of access tokens in minutes.</description>
  241. </property>
  242. <property>
  243. <name>dfs.datanode.data.dir</name>
  244. <value>file://${hadoop.tmp.dir}/dfs/data</value>
  245. <description>Determines where on the local filesystem an DFS data node
  246. should store its blocks. If this is a comma-delimited
  247. list of directories, then data will be stored in all named
  248. directories, typically on different devices.
  249. Directories that do not exist are ignored.
  250. </description>
  251. </property>
  252. <property>
  253. <name>dfs.datanode.data.dir.perm</name>
  254. <value>700</value>
  255. <description>Permissions for the directories on on the local filesystem where
  256. the DFS data node store its blocks. The permissions can either be octal or
  257. symbolic.</description>
  258. </property>
  259. <property>
  260. <name>dfs.replication</name>
  261. <value>3</value>
  262. <description>Default block replication.
  263. The actual number of replications can be specified when the file is created.
  264. The default is used if replication is not specified in create time.
  265. </description>
  266. </property>
  267. <property>
  268. <name>dfs.replication.max</name>
  269. <value>512</value>
  270. <description>Maximal block replication.
  271. </description>
  272. </property>
  273. <property>
  274. <name>dfs.namenode.replication.min</name>
  275. <value>1</value>
  276. <description>Minimal block replication.
  277. </description>
  278. </property>
  279. <property>
  280. <name>dfs.blocksize</name>
  281. <value>67108864</value>
  282. <description>The default block size for new files.</description>
  283. </property>
  284. <property>
  285. <name>dfs.client.block.write.retries</name>
  286. <value>3</value>
  287. <description>The number of retries for writing blocks to the data nodes,
  288. before we signal failure to the application.
  289. </description>
  290. </property>
  291. <property>
  292. <name>dfs.client.block.write.replace-datanode-on-failure.enable</name>
  293. <value>ture</value>
  294. <description>
  295. If there is a datanode/network failure in the write pipeline,
  296. DFSClient will try to remove the failed datanode from the pipeline
  297. and then continue writing with the remaining datanodes. As a result,
  298. the number of datanodes in the pipeline is decreased. The feature is
  299. to add new datanodes to the pipeline.
  300. This is a site-wise property to enable/disable the feature.
  301. See also dfs.client.block.write.replace-datanode-on-failure.policy
  302. </description>
  303. </property>
  304. <property>
  305. <name>dfs.client.block.write.replace-datanode-on-failure.policy</name>
  306. <value>DEFAULT</value>
  307. <description>
  308. This property is used only if the value of
  309. dfs.client.block.write.replace-datanode-on-failure.enable is true.
  310. ALWAYS: always add a new datanode when an existing datanode is removed.
  311. NEVER: never add a new datanode.
  312. DEFAULT:
  313. Let r be the replication number.
  314. Let n be the number of existing datanodes.
  315. Add a new datanode only if r is greater than or equal to 3 and either
  316. (1) floor(r/2) is greater than or equal to n; or
  317. (2) r is greater than n and the block is hflushed/appended.
  318. </description>
  319. </property>
  320. <property>
  321. <name>dfs.blockreport.intervalMsec</name>
  322. <value>21600000</value>
  323. <description>Determines block reporting interval in milliseconds.</description>
  324. </property>
  325. <property>
  326. <name>dfs.blockreport.initialDelay</name> <value>0</value>
  327. <description>Delay for first block report in seconds.</description>
  328. </property>
  329. <property>
  330. <name>dfs.datanode.directoryscan.interval</name>
  331. <value>21600</value>
  332. <description>Interval in seconds for Datanode to scan data directories and
  333. reconcile the difference between blocks in memory and on the disk.
  334. </description>
  335. </property>
  336. <property>
  337. <name>dfs.datanode.directoryscan.threads</name>
  338. <value>1</value>
  339. <description>How many threads should the threadpool used to compile reports
  340. for volumes in parallel have.
  341. </description>
  342. </property>
  343. <property>
  344. <name>dfs.datanode.block.volume.choice.policy</name>
  345. <value>org.apache.hadoop.hdfs.server.datanode.RoundRobinVolumesPolicy</value>
  346. <description>The policy class to use to determine into which of the
  347. datanode's available volumes a block must be written to. Default is a simple
  348. round-robin policy that chooses volumes in a cyclic order.
  349. </description>
  350. </property>
  351. <property>
  352. <name>dfs.heartbeat.interval</name>
  353. <value>3</value>
  354. <description>Determines datanode heartbeat interval in seconds.</description>
  355. </property>
  356. <property>
  357. <name>dfs.namenode.handler.count</name>
  358. <value>10</value>
  359. <description>The number of server threads for the namenode.</description>
  360. </property>
  361. <property>
  362. <name>dfs.namenode.safemode.threshold-pct</name>
  363. <value>0.999f</value>
  364. <description>
  365. Specifies the percentage of blocks that should satisfy
  366. the minimal replication requirement defined by dfs.namenode.replication.min.
  367. Values less than or equal to 0 mean not to wait for any particular
  368. percentage of blocks before exiting safemode.
  369. Values greater than 1 will make safe mode permanent.
  370. </description>
  371. </property>
  372. <property>
  373. <name>dfs.namenode.safemode.min.datanodes</name>
  374. <value>0</value>
  375. <description>
  376. Specifies the number of datanodes that must be considered alive
  377. before the name node exits safemode.
  378. Values less than or equal to 0 mean not to take the number of live
  379. datanodes into account when deciding whether to remain in safe mode
  380. during startup.
  381. Values greater than the number of datanodes in the cluster
  382. will make safe mode permanent.
  383. </description>
  384. </property>
  385. <property>
  386. <name>dfs.namenode.safemode.extension</name>
  387. <value>30000</value>
  388. <description>
  389. Determines extension of safe mode in milliseconds
  390. after the threshold level is reached.
  391. </description>
  392. </property>
  393. <property>
  394. <name>dfs.datanode.balance.bandwidthPerSec</name>
  395. <value>1048576</value>
  396. <description>
  397. Specifies the maximum amount of bandwidth that each datanode
  398. can utilize for the balancing purpose in term of
  399. the number of bytes per second.
  400. </description>
  401. </property>
  402. <property>
  403. <name>dfs.hosts</name>
  404. <value></value>
  405. <description>Names a file that contains a list of hosts that are
  406. permitted to connect to the namenode. The full pathname of the file
  407. must be specified. If the value is empty, all hosts are
  408. permitted.</description>
  409. </property>
  410. <property>
  411. <name>dfs.hosts.exclude</name>
  412. <value></value>
  413. <description>Names a file that contains a list of hosts that are
  414. not permitted to connect to the namenode. The full pathname of the
  415. file must be specified. If the value is empty, no hosts are
  416. excluded.</description>
  417. </property>
  418. <property>
  419. <name>dfs.namenode.max.objects</name>
  420. <value>0</value>
  421. <description>The maximum number of files, directories and blocks
  422. dfs supports. A value of zero indicates no limit to the number
  423. of objects that dfs supports.
  424. </description>
  425. </property>
  426. <property>
  427. <name>dfs.namenode.decommission.interval</name>
  428. <value>30</value>
  429. <description>Namenode periodicity in seconds to check if decommission is
  430. complete.</description>
  431. </property>
  432. <property>
  433. <name>dfs.namenode.decommission.nodes.per.interval</name>
  434. <value>5</value>
  435. <description>The number of nodes namenode checks if decommission is complete
  436. in each dfs.namenode.decommission.interval.</description>
  437. </property>
  438. <property>
  439. <name>dfs.namenode.replication.interval</name>
  440. <value>3</value>
  441. <description>The periodicity in seconds with which the namenode computes
  442. repliaction work for datanodes. </description>
  443. </property>
  444. <property>
  445. <name>dfs.namenode.accesstime.precision</name>
  446. <value>3600000</value>
  447. <description>The access time for HDFS file is precise upto this value.
  448. The default value is 1 hour. Setting a value of 0 disables
  449. access times for HDFS.
  450. </description>
  451. </property>
  452. <property>
  453. <name>dfs.datanode.plugins</name>
  454. <value></value>
  455. <description>Comma-separated list of datanode plug-ins to be activated.
  456. </description>
  457. </property>
  458. <property>
  459. <name>dfs.namenode.plugins</name>
  460. <value></value>
  461. <description>Comma-separated list of namenode plug-ins to be activated.
  462. </description>
  463. </property>
  464. <property>
  465. <name>dfs.stream-buffer-size</name>
  466. <value>4096</value>
  467. <description>The size of buffer to stream files.
  468. The size of this buffer should probably be a multiple of hardware
  469. page size (4096 on Intel x86), and it determines how much data is
  470. buffered during read and write operations.</description>
  471. </property>
  472. <property>
  473. <name>dfs.bytes-per-checksum</name>
  474. <value>512</value>
  475. <description>The number of bytes per checksum. Must not be larger than
  476. dfs.stream-buffer-size</description>
  477. </property>
  478. <property>
  479. <name>dfs.client-write-packet-size</name>
  480. <value>65536</value>
  481. <description>Packet size for clients to write</description>
  482. </property>
  483. <property>
  484. <name>dfs.namenode.checkpoint.dir</name>
  485. <value>file://${hadoop.tmp.dir}/dfs/namesecondary</value>
  486. <description>Determines where on the local filesystem the DFS secondary
  487. name node should store the temporary images to merge.
  488. If this is a comma-delimited list of directories then the image is
  489. replicated in all of the directories for redundancy.
  490. </description>
  491. </property>
  492. <property>
  493. <name>dfs.namenode.checkpoint.edits.dir</name>
  494. <value>${dfs.namenode.checkpoint.dir}</value>
  495. <description>Determines where on the local filesystem the DFS secondary
  496. name node should store the temporary edits to merge.
  497. If this is a comma-delimited list of directoires then teh edits is
  498. replicated in all of the directoires for redundancy.
  499. Default value is same as dfs.namenode.checkpoint.dir
  500. </description>
  501. </property>
  502. <property>
  503. <name>dfs.namenode.checkpoint.period</name>
  504. <value>3600</value>
  505. <description>The number of seconds between two periodic checkpoints.
  506. </description>
  507. </property>
  508. <property>
  509. <name>dfs.namenode.checkpoint.txns</name>
  510. <value>40000</value>
  511. <description>The Secondary NameNode or CheckpointNode will create a checkpoint
  512. of the namespace every 'dfs.namenode.checkpoint.txns' transactions, regardless
  513. of whether 'dfs.namenode.checkpoint.period' has expired.
  514. </description>
  515. </property>
  516. <property>
  517. <name>dfs.namenode.checkpoint.check.period</name>
  518. <value>60</value>
  519. <description>The SecondaryNameNode and CheckpointNode will poll the NameNode
  520. every 'dfs.namenode.checkpoint.check.period' seconds to query the number
  521. of uncheckpointed transactions.
  522. </description>
  523. </property>
  524. <property>
  525. <name>dfs.namenode.num.checkpoints.retained</name>
  526. <value>2</value>
  527. <description>The number of image checkpoint files that will be retained by
  528. the NameNode and Secondary NameNode in their storage directories. All edit
  529. logs necessary to recover an up-to-date namespace from the oldest retained
  530. checkpoint will also be retained.
  531. </description>
  532. </property>
  533. <property>
  534. <name>dfs.namenode.delegation.key.update-interval</name>
  535. <value>86400000</value>
  536. <description>The update interval for master key for delegation tokens
  537. in the namenode in milliseconds.
  538. </description>
  539. </property>
  540. <property>
  541. <name>dfs.namenode.delegation.token.max-lifetime</name>
  542. <value>604800000</value>
  543. <description>The maximum lifetime in milliseconds for which a delegation
  544. token is valid.
  545. </description>
  546. </property>
  547. <property>
  548. <name>dfs.namenode.delegation.token.renew-interval</name>
  549. <value>86400000</value>
  550. <description>The renewal interval for delegation token in milliseconds.
  551. </description>
  552. </property>
  553. <property>
  554. <name>dfs.datanode.failed.volumes.tolerated</name>
  555. <value>0</value>
  556. <description>The number of volumes that are allowed to
  557. fail before a datanode stops offering service. By default
  558. any volume failure will cause a datanode to shutdown.
  559. </description>
  560. </property>
  561. <property>
  562. <name>dfs.image.compress</name>
  563. <value>false</value>
  564. <description>Should the dfs image be compressed?
  565. </description>
  566. </property>
  567. <property>
  568. <name>dfs.image.compression.codec</name>
  569. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  570. <description>If the dfs image is compressed, how should they be compressed?
  571. This has to be a codec defined in io.compression.codecs.
  572. </description>
  573. </property>
  574. <property>
  575. <name>dfs.image.transfer.bandwidthPerSec</name>
  576. <value>0</value>
  577. <description>
  578. Specifies the maximum amount of bandwidth that can be utilized for image
  579. transfer in term of the number of bytes per second.
  580. A default value of 0 indicates that throttling is disabled.
  581. </description>
  582. </property>
  583. <property>
  584. <name>dfs.namenode.support.allow.format</name>
  585. <value>true</value>
  586. <description>Does HDFS namenode allow itself to be formatted?
  587. You may consider setting this to false for any production
  588. cluster, to avoid any possibility of formatting a running DFS.
  589. </description>
  590. </property>
  591. <property>
  592. <name>dfs.datanode.max.transfer.threads</name>
  593. <value>4096</value>
  594. <description>
  595. Specifies the maximum number of threads to use for transferring data
  596. in and out of the DN.
  597. </description>
  598. </property>
  599. </configuration>