hdfs-default.xml 22 KB

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