1
0

hdfs-default.xml 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273
  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>
  30. The logging level for dfs namenode. Other values are "dir" (trace
  31. namespace mutations), "block" (trace block under/over replications
  32. and block creations/deletions), or "all".
  33. </description>
  34. </property>
  35. <property>
  36. <name>dfs.namenode.rpc-address</name>
  37. <value></value>
  38. <description>
  39. RPC address that handles all clients requests. In the case of HA/Federation where multiple namenodes exist,
  40. the name service id is added to the name e.g. dfs.namenode.rpc-address.ns1
  41. dfs.namenode.rpc-address.EXAMPLENAMESERVICE
  42. The value of this property will take the form of nn-host1:rpc-port.
  43. </description>
  44. </property>
  45. <property>
  46. <name>dfs.namenode.servicerpc-address</name>
  47. <value></value>
  48. <description>
  49. RPC address for HDFS Services communication. BackupNode, Datanodes and all other services should be
  50. connecting to this address if it is configured. In the case of HA/Federation where multiple namenodes exist,
  51. the name service id is added to the name e.g. dfs.namenode.servicerpc-address.ns1
  52. dfs.namenode.rpc-address.EXAMPLENAMESERVICE
  53. The value of this property will take the form of nn-host1:rpc-port.
  54. If the value of this property is unset the value of dfs.namenode.rpc-address will be used as the default.
  55. </description>
  56. </property>
  57. <property>
  58. <name>dfs.namenode.secondary.http-address</name>
  59. <value>0.0.0.0:50090</value>
  60. <description>
  61. The secondary namenode http server address and port.
  62. </description>
  63. </property>
  64. <property>
  65. <name>dfs.datanode.address</name>
  66. <value>0.0.0.0:50010</value>
  67. <description>
  68. The datanode server address and port for data transfer.
  69. </description>
  70. </property>
  71. <property>
  72. <name>dfs.datanode.http.address</name>
  73. <value>0.0.0.0:50075</value>
  74. <description>
  75. The datanode http server address and port.
  76. </description>
  77. </property>
  78. <property>
  79. <name>dfs.datanode.ipc.address</name>
  80. <value>0.0.0.0:50020</value>
  81. <description>
  82. The datanode ipc server address and port.
  83. </description>
  84. </property>
  85. <property>
  86. <name>dfs.datanode.handler.count</name>
  87. <value>10</value>
  88. <description>The number of server threads for the datanode.</description>
  89. </property>
  90. <property>
  91. <name>dfs.namenode.http-address</name>
  92. <value>0.0.0.0:50070</value>
  93. <description>
  94. The address and the base port where the dfs namenode web ui will listen on.
  95. </description>
  96. </property>
  97. <property>
  98. <name>dfs.https.enable</name>
  99. <value>false</value>
  100. <description>Decide if HTTPS(SSL) is supported on HDFS
  101. </description>
  102. </property>
  103. <property>
  104. <name>dfs.client.https.need-auth</name>
  105. <value>false</value>
  106. <description>Whether SSL client certificate authentication is required
  107. </description>
  108. </property>
  109. <property>
  110. <name>dfs.https.server.keystore.resource</name>
  111. <value>ssl-server.xml</value>
  112. <description>Resource file from which ssl server keystore
  113. information will be extracted
  114. </description>
  115. </property>
  116. <property>
  117. <name>dfs.client.https.keystore.resource</name>
  118. <value>ssl-client.xml</value>
  119. <description>Resource file from which ssl client keystore
  120. information will be extracted
  121. </description>
  122. </property>
  123. <property>
  124. <name>dfs.datanode.https.address</name>
  125. <value>0.0.0.0:50475</value>
  126. <description>The datanode secure http server address and port.</description>
  127. </property>
  128. <property>
  129. <name>dfs.namenode.https-address</name>
  130. <value>0.0.0.0:50470</value>
  131. <description>The namenode secure http server address and port.</description>
  132. </property>
  133. <property>
  134. <name>dfs.datanode.dns.interface</name>
  135. <value>default</value>
  136. <description>The name of the Network Interface from which a data node should
  137. report its IP address.
  138. </description>
  139. </property>
  140. <property>
  141. <name>dfs.datanode.dns.nameserver</name>
  142. <value>default</value>
  143. <description>The host name or IP address of the name server (DNS)
  144. which a DataNode should use to determine the host name used by the
  145. NameNode for communication and display purposes.
  146. </description>
  147. </property>
  148. <property>
  149. <name>dfs.namenode.backup.address</name>
  150. <value>0.0.0.0:50100</value>
  151. <description>
  152. The backup node server address and port.
  153. If the port is 0 then the server will start on a free port.
  154. </description>
  155. </property>
  156. <property>
  157. <name>dfs.namenode.backup.http-address</name>
  158. <value>0.0.0.0:50105</value>
  159. <description>
  160. The backup node http server address and port.
  161. If the port is 0 then the server will start on a free port.
  162. </description>
  163. </property>
  164. <property>
  165. <name>dfs.namenode.replication.considerLoad</name>
  166. <value>true</value>
  167. <description>Decide if chooseTarget considers the target's load or not
  168. </description>
  169. </property>
  170. <property>
  171. <name>dfs.default.chunk.view.size</name>
  172. <value>32768</value>
  173. <description>The number of bytes to view for a file on the browser.
  174. </description>
  175. </property>
  176. <property>
  177. <name>dfs.datanode.du.reserved</name>
  178. <value>0</value>
  179. <description>Reserved space in bytes per volume. Always leave this much space free for non dfs use.
  180. </description>
  181. </property>
  182. <property>
  183. <name>dfs.namenode.name.dir</name>
  184. <value>file://${hadoop.tmp.dir}/dfs/name</value>
  185. <description>Determines where on the local filesystem the DFS name node
  186. should store the name table(fsimage). If this is a comma-delimited list
  187. of directories then the name table is replicated in all of the
  188. directories, for redundancy. </description>
  189. </property>
  190. <property>
  191. <name>dfs.namenode.name.dir.restore</name>
  192. <value>false</value>
  193. <description>Set to true to enable NameNode to attempt recovering a
  194. previously failed dfs.namenode.name.dir. When enabled, a recovery of any
  195. failed directory is attempted during checkpoint.</description>
  196. </property>
  197. <property>
  198. <name>dfs.namenode.fs-limits.max-component-length</name>
  199. <value>0</value>
  200. <description>Defines the maximum number of characters in each component
  201. of a path. A value of 0 will disable the check.</description>
  202. </property>
  203. <property>
  204. <name>dfs.namenode.fs-limits.max-directory-items</name>
  205. <value>0</value>
  206. <description>Defines the maximum number of items that a directory may
  207. contain. A value of 0 will disable the check.</description>
  208. </property>
  209. <property>
  210. <name>dfs.namenode.edits.dir</name>
  211. <value>${dfs.namenode.name.dir}</value>
  212. <description>Determines where on the local filesystem the DFS name node
  213. should store the transaction (edits) file. If this is a comma-delimited list
  214. of directories then the transaction file is replicated in all of the
  215. directories, for redundancy. Default value is same as dfs.namenode.name.dir
  216. </description>
  217. </property>
  218. <property>
  219. <name>dfs.namenode.shared.edits.dir</name>
  220. <value></value>
  221. <description>A directory on shared storage between the multiple namenodes
  222. in an HA cluster. This directory will be written by the active and read
  223. by the standby in order to keep the namespaces synchronized. This directory
  224. does not need to be listed in dfs.namenode.edits.dir above. It should be
  225. left empty in a non-HA cluster.
  226. </description>
  227. </property>
  228. <property>
  229. <name>dfs.namenode.edits.journal-plugin.qjournal</name>
  230. <value>org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager</value>
  231. </property>
  232. <property>
  233. <name>dfs.permissions.enabled</name>
  234. <value>true</value>
  235. <description>
  236. If "true", enable permission checking in HDFS.
  237. If "false", permission checking is turned off,
  238. but all other behavior is unchanged.
  239. Switching from one parameter value to the other does not change the mode,
  240. owner or group of files or directories.
  241. </description>
  242. </property>
  243. <property>
  244. <name>dfs.permissions.superusergroup</name>
  245. <value>supergroup</value>
  246. <description>The name of the group of super-users.</description>
  247. </property>
  248. <!--
  249. <property>
  250. <name>dfs.cluster.administrators</name>
  251. <value>ACL for the admins</value>
  252. <description>This configuration is used to control who can access the
  253. default servlets in the namenode, etc.
  254. </description>
  255. </property>
  256. -->
  257. <property>
  258. <name>dfs.block.access.token.enable</name>
  259. <value>false</value>
  260. <description>
  261. If "true", access tokens are used as capabilities for accessing datanodes.
  262. If "false", no access tokens are checked on accessing datanodes.
  263. </description>
  264. </property>
  265. <property>
  266. <name>dfs.block.access.key.update.interval</name>
  267. <value>600</value>
  268. <description>
  269. Interval in minutes at which namenode updates its access keys.
  270. </description>
  271. </property>
  272. <property>
  273. <name>dfs.block.access.token.lifetime</name>
  274. <value>600</value>
  275. <description>The lifetime of access tokens in minutes.</description>
  276. </property>
  277. <property>
  278. <name>dfs.datanode.data.dir</name>
  279. <value>file://${hadoop.tmp.dir}/dfs/data</value>
  280. <description>Determines where on the local filesystem an DFS data node
  281. should store its blocks. If this is a comma-delimited
  282. list of directories, then data will be stored in all named
  283. directories, typically on different devices.
  284. Directories that do not exist are ignored.
  285. </description>
  286. </property>
  287. <property>
  288. <name>dfs.datanode.data.dir.perm</name>
  289. <value>700</value>
  290. <description>Permissions for the directories on on the local filesystem where
  291. the DFS data node store its blocks. The permissions can either be octal or
  292. symbolic.</description>
  293. </property>
  294. <property>
  295. <name>dfs.replication</name>
  296. <value>3</value>
  297. <description>Default block replication.
  298. The actual number of replications can be specified when the file is created.
  299. The default is used if replication is not specified in create time.
  300. </description>
  301. </property>
  302. <property>
  303. <name>dfs.replication.max</name>
  304. <value>512</value>
  305. <description>Maximal block replication.
  306. </description>
  307. </property>
  308. <property>
  309. <name>dfs.namenode.replication.min</name>
  310. <value>1</value>
  311. <description>Minimal block replication.
  312. </description>
  313. </property>
  314. <property>
  315. <name>dfs.blocksize</name>
  316. <value>134217728</value>
  317. <description>
  318. The default block size for new files, in bytes.
  319. You can use the following suffix (case insensitive):
  320. k(kilo), m(mega), g(giga), t(tera), p(peta), e(exa) to specify the size (such as 128k, 512m, 1g, etc.),
  321. Or provide complete size in bytes (such as 134217728 for 128 MB).
  322. </description>
  323. </property>
  324. <property>
  325. <name>dfs.client.block.write.retries</name>
  326. <value>3</value>
  327. <description>The number of retries for writing blocks to the data nodes,
  328. before we signal failure to the application.
  329. </description>
  330. </property>
  331. <property>
  332. <name>dfs.client.block.write.replace-datanode-on-failure.enable</name>
  333. <value>true</value>
  334. <description>
  335. If there is a datanode/network failure in the write pipeline,
  336. DFSClient will try to remove the failed datanode from the pipeline
  337. and then continue writing with the remaining datanodes. As a result,
  338. the number of datanodes in the pipeline is decreased. The feature is
  339. to add new datanodes to the pipeline.
  340. This is a site-wide property to enable/disable the feature.
  341. When the cluster size is extremely small, e.g. 3 nodes or less, cluster
  342. administrators may want to set the policy to NEVER in the default
  343. configuration file or disable this feature. Otherwise, users may
  344. experience an unusually high rate of pipeline failures since it is
  345. impossible to find new datanodes for replacement.
  346. See also dfs.client.block.write.replace-datanode-on-failure.policy
  347. </description>
  348. </property>
  349. <property>
  350. <name>dfs.client.block.write.replace-datanode-on-failure.policy</name>
  351. <value>DEFAULT</value>
  352. <description>
  353. This property is used only if the value of
  354. dfs.client.block.write.replace-datanode-on-failure.enable is true.
  355. ALWAYS: always add a new datanode when an existing datanode is removed.
  356. NEVER: never add a new datanode.
  357. DEFAULT:
  358. Let r be the replication number.
  359. Let n be the number of existing datanodes.
  360. Add a new datanode only if r is greater than or equal to 3 and either
  361. (1) floor(r/2) is greater than or equal to n; or
  362. (2) r is greater than n and the block is hflushed/appended.
  363. </description>
  364. </property>
  365. <property>
  366. <name>dfs.blockreport.intervalMsec</name>
  367. <value>21600000</value>
  368. <description>Determines block reporting interval in milliseconds.</description>
  369. </property>
  370. <property>
  371. <name>dfs.blockreport.initialDelay</name> <value>0</value>
  372. <description>Delay for first block report in seconds.</description>
  373. </property>
  374. <property>
  375. <name>dfs.datanode.directoryscan.interval</name>
  376. <value>21600</value>
  377. <description>Interval in seconds for Datanode to scan data directories and
  378. reconcile the difference between blocks in memory and on the disk.
  379. </description>
  380. </property>
  381. <property>
  382. <name>dfs.datanode.directoryscan.threads</name>
  383. <value>1</value>
  384. <description>How many threads should the threadpool used to compile reports
  385. for volumes in parallel have.
  386. </description>
  387. </property>
  388. <property>
  389. <name>dfs.heartbeat.interval</name>
  390. <value>3</value>
  391. <description>Determines datanode heartbeat interval in seconds.</description>
  392. </property>
  393. <property>
  394. <name>dfs.namenode.handler.count</name>
  395. <value>10</value>
  396. <description>The number of server threads for the namenode.</description>
  397. </property>
  398. <property>
  399. <name>dfs.namenode.safemode.threshold-pct</name>
  400. <value>0.999f</value>
  401. <description>
  402. Specifies the percentage of blocks that should satisfy
  403. the minimal replication requirement defined by dfs.namenode.replication.min.
  404. Values less than or equal to 0 mean not to wait for any particular
  405. percentage of blocks before exiting safemode.
  406. Values greater than 1 will make safe mode permanent.
  407. </description>
  408. </property>
  409. <property>
  410. <name>dfs.namenode.safemode.min.datanodes</name>
  411. <value>0</value>
  412. <description>
  413. Specifies the number of datanodes that must be considered alive
  414. before the name node exits safemode.
  415. Values less than or equal to 0 mean not to take the number of live
  416. datanodes into account when deciding whether to remain in safe mode
  417. during startup.
  418. Values greater than the number of datanodes in the cluster
  419. will make safe mode permanent.
  420. </description>
  421. </property>
  422. <property>
  423. <name>dfs.namenode.safemode.extension</name>
  424. <value>30000</value>
  425. <description>
  426. Determines extension of safe mode in milliseconds
  427. after the threshold level is reached.
  428. </description>
  429. </property>
  430. <property>
  431. <name>dfs.datanode.balance.bandwidthPerSec</name>
  432. <value>1048576</value>
  433. <description>
  434. Specifies the maximum amount of bandwidth that each datanode
  435. can utilize for the balancing purpose in term of
  436. the number of bytes per second.
  437. </description>
  438. </property>
  439. <property>
  440. <name>dfs.hosts</name>
  441. <value></value>
  442. <description>Names a file that contains a list of hosts that are
  443. permitted to connect to the namenode. The full pathname of the file
  444. must be specified. If the value is empty, all hosts are
  445. permitted.</description>
  446. </property>
  447. <property>
  448. <name>dfs.hosts.exclude</name>
  449. <value></value>
  450. <description>Names a file that contains a list of hosts that are
  451. not permitted to connect to the namenode. The full pathname of the
  452. file must be specified. If the value is empty, no hosts are
  453. excluded.</description>
  454. </property>
  455. <property>
  456. <name>dfs.namenode.max.objects</name>
  457. <value>0</value>
  458. <description>The maximum number of files, directories and blocks
  459. dfs supports. A value of zero indicates no limit to the number
  460. of objects that dfs supports.
  461. </description>
  462. </property>
  463. <property>
  464. <name>dfs.namenode.decommission.interval</name>
  465. <value>30</value>
  466. <description>Namenode periodicity in seconds to check if decommission is
  467. complete.</description>
  468. </property>
  469. <property>
  470. <name>dfs.namenode.decommission.nodes.per.interval</name>
  471. <value>5</value>
  472. <description>The number of nodes namenode checks if decommission is complete
  473. in each dfs.namenode.decommission.interval.</description>
  474. </property>
  475. <property>
  476. <name>dfs.namenode.replication.interval</name>
  477. <value>3</value>
  478. <description>The periodicity in seconds with which the namenode computes
  479. repliaction work for datanodes. </description>
  480. </property>
  481. <property>
  482. <name>dfs.namenode.accesstime.precision</name>
  483. <value>3600000</value>
  484. <description>The access time for HDFS file is precise upto this value.
  485. The default value is 1 hour. Setting a value of 0 disables
  486. access times for HDFS.
  487. </description>
  488. </property>
  489. <property>
  490. <name>dfs.datanode.plugins</name>
  491. <value></value>
  492. <description>Comma-separated list of datanode plug-ins to be activated.
  493. </description>
  494. </property>
  495. <property>
  496. <name>dfs.namenode.plugins</name>
  497. <value></value>
  498. <description>Comma-separated list of namenode plug-ins to be activated.
  499. </description>
  500. </property>
  501. <property>
  502. <name>dfs.stream-buffer-size</name>
  503. <value>4096</value>
  504. <description>The size of buffer to stream files.
  505. The size of this buffer should probably be a multiple of hardware
  506. page size (4096 on Intel x86), and it determines how much data is
  507. buffered during read and write operations.</description>
  508. </property>
  509. <property>
  510. <name>dfs.bytes-per-checksum</name>
  511. <value>512</value>
  512. <description>The number of bytes per checksum. Must not be larger than
  513. dfs.stream-buffer-size</description>
  514. </property>
  515. <property>
  516. <name>dfs.client-write-packet-size</name>
  517. <value>65536</value>
  518. <description>Packet size for clients to write</description>
  519. </property>
  520. <property>
  521. <name>dfs.client.write.exclude.nodes.cache.expiry.interval.millis</name>
  522. <value>600000</value>
  523. <description>The maximum period to keep a DN in the excluded nodes list
  524. at a client. After this period, in milliseconds, the previously excluded node(s) will
  525. be removed automatically from the cache and will be considered good for block allocations
  526. again. Useful to lower or raise in situations where you keep a file open for very long
  527. periods (such as a Write-Ahead-Log (WAL) file) to make the writer tolerant to cluster maintenance
  528. restarts. Defaults to 10 minutes.</description>
  529. </property>
  530. <property>
  531. <name>dfs.namenode.checkpoint.dir</name>
  532. <value>file://${hadoop.tmp.dir}/dfs/namesecondary</value>
  533. <description>Determines where on the local filesystem the DFS secondary
  534. name node should store the temporary images to merge.
  535. If this is a comma-delimited list of directories then the image is
  536. replicated in all of the directories for redundancy.
  537. </description>
  538. </property>
  539. <property>
  540. <name>dfs.namenode.checkpoint.edits.dir</name>
  541. <value>${dfs.namenode.checkpoint.dir}</value>
  542. <description>Determines where on the local filesystem the DFS secondary
  543. name node should store the temporary edits to merge.
  544. If this is a comma-delimited list of directoires then teh edits is
  545. replicated in all of the directoires for redundancy.
  546. Default value is same as dfs.namenode.checkpoint.dir
  547. </description>
  548. </property>
  549. <property>
  550. <name>dfs.namenode.checkpoint.period</name>
  551. <value>3600</value>
  552. <description>The number of seconds between two periodic checkpoints.
  553. </description>
  554. </property>
  555. <property>
  556. <name>dfs.namenode.checkpoint.txns</name>
  557. <value>1000000</value>
  558. <description>The Secondary NameNode or CheckpointNode will create a checkpoint
  559. of the namespace every 'dfs.namenode.checkpoint.txns' transactions, regardless
  560. of whether 'dfs.namenode.checkpoint.period' has expired.
  561. </description>
  562. </property>
  563. <property>
  564. <name>dfs.namenode.checkpoint.check.period</name>
  565. <value>60</value>
  566. <description>The SecondaryNameNode and CheckpointNode will poll the NameNode
  567. every 'dfs.namenode.checkpoint.check.period' seconds to query the number
  568. of uncheckpointed transactions.
  569. </description>
  570. </property>
  571. <property>
  572. <name>dfs.namenode.checkpoint.max-retries</name>
  573. <value>3</value>
  574. <description>The SecondaryNameNode retries failed checkpointing. If the
  575. failure occurs while loading fsimage or replaying edits, the number of
  576. retries is limited by this variable.
  577. </description>
  578. </property>
  579. <property>
  580. <name>dfs.namenode.num.checkpoints.retained</name>
  581. <value>2</value>
  582. <description>The number of image checkpoint files that will be retained by
  583. the NameNode and Secondary NameNode in their storage directories. All edit
  584. logs necessary to recover an up-to-date namespace from the oldest retained
  585. checkpoint will also be retained.
  586. </description>
  587. </property>
  588. <property>
  589. <name>dfs.namenode.num.extra.edits.retained</name>
  590. <value>1000000</value>
  591. <description>The number of extra transactions which should be retained
  592. beyond what is minimally necessary for a NN restart. This can be useful for
  593. audit purposes or for an HA setup where a remote Standby Node may have
  594. been offline for some time and need to have a longer backlog of retained
  595. edits in order to start again.
  596. Typically each edit is on the order of a few hundred bytes, so the default
  597. of 1 million edits should be on the order of hundreds of MBs or low GBs.
  598. NOTE: Fewer extra edits may be retained than value specified for this setting
  599. if doing so would mean that more segments would be retained than the number
  600. configured by dfs.namenode.max.extra.edits.segments.retained.
  601. </description>
  602. </property>
  603. <property>
  604. <name>dfs.namenode.max.extra.edits.segments.retained</name>
  605. <value>10000</value>
  606. <description>The maximum number of extra edit log segments which should be retained
  607. beyond what is minimally necessary for a NN restart. When used in conjunction with
  608. dfs.namenode.num.extra.edits.retained, this configuration property serves to cap
  609. the number of extra edits files to a reasonable value.
  610. </description>
  611. </property>
  612. <property>
  613. <name>dfs.namenode.delegation.key.update-interval</name>
  614. <value>86400000</value>
  615. <description>The update interval for master key for delegation tokens
  616. in the namenode in milliseconds.
  617. </description>
  618. </property>
  619. <property>
  620. <name>dfs.namenode.delegation.token.max-lifetime</name>
  621. <value>604800000</value>
  622. <description>The maximum lifetime in milliseconds for which a delegation
  623. token is valid.
  624. </description>
  625. </property>
  626. <property>
  627. <name>dfs.namenode.delegation.token.renew-interval</name>
  628. <value>86400000</value>
  629. <description>The renewal interval for delegation token in milliseconds.
  630. </description>
  631. </property>
  632. <property>
  633. <name>dfs.datanode.failed.volumes.tolerated</name>
  634. <value>0</value>
  635. <description>The number of volumes that are allowed to
  636. fail before a datanode stops offering service. By default
  637. any volume failure will cause a datanode to shutdown.
  638. </description>
  639. </property>
  640. <property>
  641. <name>dfs.image.compress</name>
  642. <value>false</value>
  643. <description>Should the dfs image be compressed?
  644. </description>
  645. </property>
  646. <property>
  647. <name>dfs.image.compression.codec</name>
  648. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  649. <description>If the dfs image is compressed, how should they be compressed?
  650. This has to be a codec defined in io.compression.codecs.
  651. </description>
  652. </property>
  653. <property>
  654. <name>dfs.image.transfer.timeout</name>
  655. <value>600000</value>
  656. <description>
  657. Timeout for image transfer in milliseconds. This timeout and the related
  658. dfs.image.transfer.bandwidthPerSec parameter should be configured such
  659. that normal image transfer can complete within the timeout.
  660. This timeout prevents client hangs when the sender fails during
  661. image transfer, which is particularly important during checkpointing.
  662. Note that this timeout applies to the entirety of image transfer, and
  663. is not a socket timeout.
  664. </description>
  665. </property>
  666. <property>
  667. <name>dfs.image.transfer.bandwidthPerSec</name>
  668. <value>0</value>
  669. <description>
  670. Maximum bandwidth used for image transfer in bytes per second.
  671. This can help keep normal namenode operations responsive during
  672. checkpointing. The maximum bandwidth and timeout in
  673. dfs.image.transfer.timeout should be set such that normal image
  674. transfers can complete successfully.
  675. A default value of 0 indicates that throttling is disabled.
  676. </description>
  677. </property>
  678. <property>
  679. <name>dfs.namenode.support.allow.format</name>
  680. <value>true</value>
  681. <description>Does HDFS namenode allow itself to be formatted?
  682. You may consider setting this to false for any production
  683. cluster, to avoid any possibility of formatting a running DFS.
  684. </description>
  685. </property>
  686. <property>
  687. <name>dfs.datanode.max.transfer.threads</name>
  688. <value>4096</value>
  689. <description>
  690. Specifies the maximum number of threads to use for transferring data
  691. in and out of the DN.
  692. </description>
  693. </property>
  694. <property>
  695. <name>dfs.datanode.readahead.bytes</name>
  696. <value>4193404</value>
  697. <description>
  698. While reading block files, if the Hadoop native libraries are available,
  699. the datanode can use the posix_fadvise system call to explicitly
  700. page data into the operating system buffer cache ahead of the current
  701. reader's position. This can improve performance especially when
  702. disks are highly contended.
  703. This configuration specifies the number of bytes ahead of the current
  704. read position which the datanode will attempt to read ahead. This
  705. feature may be disabled by configuring this property to 0.
  706. If the native libraries are not available, this configuration has no
  707. effect.
  708. </description>
  709. </property>
  710. <property>
  711. <name>dfs.datanode.drop.cache.behind.reads</name>
  712. <value>false</value>
  713. <description>
  714. In some workloads, the data read from HDFS is known to be significantly
  715. large enough that it is unlikely to be useful to cache it in the
  716. operating system buffer cache. In this case, the DataNode may be
  717. configured to automatically purge all data from the buffer cache
  718. after it is delivered to the client. This behavior is automatically
  719. disabled for workloads which read only short sections of a block
  720. (e.g HBase random-IO workloads).
  721. This may improve performance for some workloads by freeing buffer
  722. cache spage usage for more cacheable data.
  723. If the Hadoop native libraries are not available, this configuration
  724. has no effect.
  725. </description>
  726. </property>
  727. <property>
  728. <name>dfs.datanode.drop.cache.behind.writes</name>
  729. <value>false</value>
  730. <description>
  731. In some workloads, the data written to HDFS is known to be significantly
  732. large enough that it is unlikely to be useful to cache it in the
  733. operating system buffer cache. In this case, the DataNode may be
  734. configured to automatically purge all data from the buffer cache
  735. after it is written to disk.
  736. This may improve performance for some workloads by freeing buffer
  737. cache spage usage for more cacheable data.
  738. If the Hadoop native libraries are not available, this configuration
  739. has no effect.
  740. </description>
  741. </property>
  742. <property>
  743. <name>dfs.datanode.sync.behind.writes</name>
  744. <value>false</value>
  745. <description>
  746. If this configuration is enabled, the datanode will instruct the
  747. operating system to enqueue all written data to the disk immediately
  748. after it is written. This differs from the usual OS policy which
  749. may wait for up to 30 seconds before triggering writeback.
  750. This may improve performance for some workloads by smoothing the
  751. IO profile for data written to disk.
  752. If the Hadoop native libraries are not available, this configuration
  753. has no effect.
  754. </description>
  755. </property>
  756. <property>
  757. <name>dfs.client.failover.max.attempts</name>
  758. <value>15</value>
  759. <description>
  760. Expert only. The number of client failover attempts that should be
  761. made before the failover is considered failed.
  762. </description>
  763. </property>
  764. <property>
  765. <name>dfs.client.failover.sleep.base.millis</name>
  766. <value>500</value>
  767. <description>
  768. Expert only. The time to wait, in milliseconds, between failover
  769. attempts increases exponentially as a function of the number of
  770. attempts made so far, with a random factor of +/- 50%. This option
  771. specifies the base value used in the failover calculation. The
  772. first failover will retry immediately. The 2nd failover attempt
  773. will delay at least dfs.client.failover.sleep.base.millis
  774. milliseconds. And so on.
  775. </description>
  776. </property>
  777. <property>
  778. <name>dfs.client.failover.sleep.max.millis</name>
  779. <value>15000</value>
  780. <description>
  781. Expert only. The time to wait, in milliseconds, between failover
  782. attempts increases exponentially as a function of the number of
  783. attempts made so far, with a random factor of +/- 50%. This option
  784. specifies the maximum value to wait between failovers.
  785. Specifically, the time between two failover attempts will not
  786. exceed +/- 50% of dfs.client.failover.sleep.max.millis
  787. milliseconds.
  788. </description>
  789. </property>
  790. <property>
  791. <name>dfs.client.failover.connection.retries</name>
  792. <value>0</value>
  793. <description>
  794. Expert only. Indicates the number of retries a failover IPC client
  795. will make to establish a server connection.
  796. </description>
  797. </property>
  798. <property>
  799. <name>dfs.client.failover.connection.retries.on.timeouts</name>
  800. <value>0</value>
  801. <description>
  802. Expert only. The number of retry attempts a failover IPC client
  803. will make on socket timeout when establishing a server connection.
  804. </description>
  805. </property>
  806. <property>
  807. <name>dfs.nameservices</name>
  808. <value></value>
  809. <description>
  810. Comma-separated list of nameservices.
  811. </description>
  812. </property>
  813. <property>
  814. <name>dfs.nameservice.id</name>
  815. <value></value>
  816. <description>
  817. The ID of this nameservice. If the nameservice ID is not
  818. configured or more than one nameservice is configured for
  819. dfs.nameservices it is determined automatically by
  820. matching the local node's address with the configured address.
  821. </description>
  822. </property>
  823. <property>
  824. <name>dfs.ha.namenodes.EXAMPLENAMESERVICE</name>
  825. <value></value>
  826. <description>
  827. The prefix for a given nameservice, contains a comma-separated
  828. list of namenodes for a given nameservice (eg EXAMPLENAMESERVICE).
  829. </description>
  830. </property>
  831. <property>
  832. <name>dfs.ha.namenode.id</name>
  833. <value></value>
  834. <description>
  835. The ID of this namenode. If the namenode ID is not configured it
  836. is determined automatically by matching the local node's address
  837. with the configured address.
  838. </description>
  839. </property>
  840. <property>
  841. <name>dfs.ha.log-roll.period</name>
  842. <value>120</value>
  843. <description>
  844. How often, in seconds, the StandbyNode should ask the active to
  845. roll edit logs. Since the StandbyNode only reads from finalized
  846. log segments, the StandbyNode will only be as up-to-date as how
  847. often the logs are rolled. Note that failover triggers a log roll
  848. so the StandbyNode will be up to date before it becomes active.
  849. </description>
  850. </property>
  851. <property>
  852. <name>dfs.ha.tail-edits.period</name>
  853. <value>60</value>
  854. <description>
  855. How often, in seconds, the StandbyNode should check for new
  856. finalized log segments in the shared edits log.
  857. </description>
  858. </property>
  859. <property>
  860. <name>dfs.ha.automatic-failover.enabled</name>
  861. <value>false</value>
  862. <description>
  863. Whether automatic failover is enabled. See the HDFS High
  864. Availability documentation for details on automatic HA
  865. configuration.
  866. </description>
  867. </property>
  868. <property>
  869. <name>dfs.support.append</name>
  870. <value>true</value>
  871. <description>
  872. Does HDFS allow appends to files?
  873. </description>
  874. </property>
  875. <property>
  876. <name>dfs.client.use.datanode.hostname</name>
  877. <value>false</value>
  878. <description>Whether clients should use datanode hostnames when
  879. connecting to datanodes.
  880. </description>
  881. </property>
  882. <property>
  883. <name>dfs.datanode.use.datanode.hostname</name>
  884. <value>false</value>
  885. <description>Whether datanodes should use datanode hostnames when
  886. connecting to other datanodes for data transfer.
  887. </description>
  888. </property>
  889. <property>
  890. <name>dfs.client.local.interfaces</name>
  891. <value></value>
  892. <description>A comma separated list of network interface names to use
  893. for data transfer between the client and datanodes. When creating
  894. a connection to read from or write to a datanode, the client
  895. chooses one of the specified interfaces at random and binds its
  896. socket to the IP of that interface. Individual names may be
  897. specified as either an interface name (eg "eth0"), a subinterface
  898. name (eg "eth0:0"), or an IP address (which may be specified using
  899. CIDR notation to match a range of IPs).
  900. </description>
  901. </property>
  902. <property>
  903. <name>dfs.namenode.kerberos.internal.spnego.principal</name>
  904. <value>${dfs.web.authentication.kerberos.principal}</value>
  905. </property>
  906. <property>
  907. <name>dfs.secondary.namenode.kerberos.internal.spnego.principal</name>
  908. <value>${dfs.web.authentication.kerberos.principal}</value>
  909. </property>
  910. <property>
  911. <name>dfs.namenode.avoid.read.stale.datanode</name>
  912. <value>false</value>
  913. <description>
  914. Indicate whether or not to avoid reading from &quot;stale&quot; datanodes whose
  915. heartbeat messages have not been received by the namenode
  916. for more than a specified time interval. Stale datanodes will be
  917. moved to the end of the node list returned for reading. See
  918. dfs.namenode.avoid.write.stale.datanode for a similar setting for writes.
  919. </description>
  920. </property>
  921. <property>
  922. <name>dfs.namenode.avoid.write.stale.datanode</name>
  923. <value>false</value>
  924. <description>
  925. Indicate whether or not to avoid writing to &quot;stale&quot; datanodes whose
  926. heartbeat messages have not been received by the namenode
  927. for more than a specified time interval. Writes will avoid using
  928. stale datanodes unless more than a configured ratio
  929. (dfs.namenode.write.stale.datanode.ratio) of datanodes are marked as
  930. stale. See dfs.namenode.avoid.read.stale.datanode for a similar setting
  931. for reads.
  932. </description>
  933. </property>
  934. <property>
  935. <name>dfs.namenode.stale.datanode.interval</name>
  936. <value>30000</value>
  937. <description>
  938. Default time interval for marking a datanode as "stale", i.e., if
  939. the namenode has not received heartbeat msg from a datanode for
  940. more than this time interval, the datanode will be marked and treated
  941. as "stale" by default. The stale interval cannot be too small since
  942. otherwise this may cause too frequent change of stale states.
  943. We thus set a minimum stale interval value (the default value is 3 times
  944. of heartbeat interval) and guarantee that the stale interval cannot be less
  945. than the minimum value.
  946. </description>
  947. </property>
  948. <property>
  949. <name>dfs.namenode.write.stale.datanode.ratio</name>
  950. <value>0.5f</value>
  951. <description>
  952. When the ratio of number stale datanodes to total datanodes marked
  953. is greater than this ratio, stop avoiding writing to stale nodes so
  954. as to prevent causing hotspots.
  955. </description>
  956. </property>
  957. <property>
  958. <name>dfs.namenode.invalidate.work.pct.per.iteration</name>
  959. <value>0.32f</value>
  960. <description>
  961. *Note*: Advanced property. Change with caution.
  962. This determines the percentage amount of block
  963. invalidations (deletes) to do over a single DN heartbeat
  964. deletion command. The final deletion count is determined by applying this
  965. percentage to the number of live nodes in the system.
  966. The resultant number is the number of blocks from the deletion list
  967. chosen for proper invalidation over a single heartbeat of a single DN.
  968. Value should be a positive, non-zero percentage in float notation (X.Yf),
  969. with 1.0f meaning 100%.
  970. </description>
  971. </property>
  972. <property>
  973. <name>dfs.namenode.replication.work.multiplier.per.iteration</name>
  974. <value>2</value>
  975. <description>
  976. *Note*: Advanced property. Change with caution.
  977. This determines the total amount of block transfers to begin in
  978. parallel at a DN, for replication, when such a command list is being
  979. sent over a DN heartbeat by the NN. The actual number is obtained by
  980. multiplying this multiplier with the total number of live nodes in the
  981. cluster. The result number is the number of blocks to begin transfers
  982. immediately for, per DN heartbeat. This number can be any positive,
  983. non-zero integer.
  984. </description>
  985. </property>
  986. <property>
  987. <name>dfs.webhdfs.enabled</name>
  988. <value>false</value>
  989. <description>
  990. Enable WebHDFS (REST API) in Namenodes and Datanodes.
  991. </description>
  992. </property>
  993. <property>
  994. <name>hadoop.fuse.connection.timeout</name>
  995. <value>300</value>
  996. <description>
  997. The minimum number of seconds that we'll cache libhdfs connection objects
  998. in fuse_dfs. Lower values will result in lower memory consumption; higher
  999. values may speed up access by avoiding the overhead of creating new
  1000. connection objects.
  1001. </description>
  1002. </property>
  1003. <property>
  1004. <name>hadoop.fuse.timer.period</name>
  1005. <value>5</value>
  1006. <description>
  1007. The number of seconds between cache expiry checks in fuse_dfs. Lower values
  1008. will result in fuse_dfs noticing changes to Kerberos ticket caches more
  1009. quickly.
  1010. </description>
  1011. </property>
  1012. <property>
  1013. <name>dfs.metrics.percentiles.intervals</name>
  1014. <value></value>
  1015. <description>
  1016. Comma-delimited set of integers denoting the desired rollover intervals
  1017. (in seconds) for percentile latency metrics on the Namenode and Datanode.
  1018. By default, percentile latency metrics are disabled.
  1019. </description>
  1020. </property>
  1021. <property>
  1022. <name>dfs.encrypt.data.transfer</name>
  1023. <value>false</value>
  1024. <description>
  1025. Whether or not actual block data that is read/written from/to HDFS should
  1026. be encrypted on the wire. This only needs to be set on the NN and DNs,
  1027. clients will deduce this automatically.
  1028. </description>
  1029. </property>
  1030. <property>
  1031. <name>dfs.encrypt.data.transfer.algorithm</name>
  1032. <value></value>
  1033. <description>
  1034. This value may be set to either "3des" or "rc4". If nothing is set, then
  1035. the configured JCE default on the system is used (usually 3DES.) It is
  1036. widely believed that 3DES is more cryptographically secure, but RC4 is
  1037. substantially faster.
  1038. </description>
  1039. </property>
  1040. <property>
  1041. <name>dfs.datanode.hdfs-blocks-metadata.enabled</name>
  1042. <value>false</value>
  1043. <description>
  1044. Boolean which enables backend datanode-side support for the experimental DistributedFileSystem#getFileVBlockStorageLocations API.
  1045. </description>
  1046. </property>
  1047. <property>
  1048. <name>dfs.client.file-block-storage-locations.num-threads</name>
  1049. <value>10</value>
  1050. <description>
  1051. Number of threads used for making parallel RPCs in DistributedFileSystem#getFileBlockStorageLocations().
  1052. </description>
  1053. </property>
  1054. <property>
  1055. <name>dfs.client.file-block-storage-locations.timeout</name>
  1056. <value>60</value>
  1057. <description>
  1058. Timeout (in seconds) for the parallel RPCs made in DistributedFileSystem#getFileBlockStorageLocations().
  1059. </description>
  1060. </property>
  1061. <property>
  1062. <name>dfs.journalnode.rpc-address</name>
  1063. <value>0.0.0.0:8485</value>
  1064. <description>
  1065. The JournalNode RPC server address and port.
  1066. </description>
  1067. </property>
  1068. <property>
  1069. <name>dfs.journalnode.http-address</name>
  1070. <value>0.0.0.0:8480</value>
  1071. <description>
  1072. The address and port the JournalNode web UI listens on.
  1073. If the port is 0 then the server will start on a free port.
  1074. </description>
  1075. </property>
  1076. <property>
  1077. <name>dfs.namenode.audit.loggers</name>
  1078. <value>default</value>
  1079. <description>
  1080. List of classes implementing audit loggers that will receive audit events.
  1081. These should be implementations of org.apache.hadoop.hdfs.server.namenode.AuditLogger.
  1082. The special value "default" can be used to reference the default audit
  1083. logger, which uses the configured log system. Installing custom audit loggers
  1084. may affect the performance and stability of the NameNode. Refer to the custom
  1085. logger's documentation for more details.
  1086. </description>
  1087. </property>
  1088. <property>
  1089. <name>dfs.domain.socket.path</name>
  1090. <value></value>
  1091. <description>
  1092. Optional. This is a path to a UNIX domain socket that will be used for
  1093. communication between the DataNode and local HDFS clients.
  1094. If the string "_PORT" is present in this path, it will be replaced by the
  1095. TCP port of the DataNode.
  1096. </description>
  1097. </property>
  1098. <property>
  1099. <name>dfs.datanode.fsdataset.volume.choosing.balanced-space-threshold</name>
  1100. <value>10737418240</value> <!-- 10 GB -->
  1101. <description>
  1102. Only used when the dfs.datanode.fsdataset.volume.choosing.policy is set to
  1103. org.apache.hadoop.hdfs.server.datanode.fsdataset.AvailableSpaceVolumeChoosingPolicy.
  1104. This setting controls how much DN volumes are allowed to differ in terms of
  1105. bytes of free disk space before they are considered imbalanced. If the free
  1106. space of all the volumes are within this range of each other, the volumes
  1107. will be considered balanced and block assignments will be done on a pure
  1108. round robin basis.
  1109. </description>
  1110. </property>
  1111. <property>
  1112. <name>dfs.datanode.fsdataset.volume.choosing.balanced-space-preference-percent</name>
  1113. <value>0.75f</value>
  1114. <description>
  1115. Only used when the dfs.datanode.fsdataset.volume.choosing.policy is set to
  1116. org.apache.hadoop.hdfs.server.datanode.fsdataset.AvailableSpaceVolumeChoosingPolicy.
  1117. This setting controls what percentage of new block allocations will be sent
  1118. to volumes with more available disk space than others. This setting should
  1119. be in the range 0.0 - 1.0, though in practice 0.5 - 1.0, since there should
  1120. be no reason to prefer that volumes with less available disk space receive
  1121. more block allocations.
  1122. </description>
  1123. </property>
  1124. </configuration>