1
0

hdfs-default.xml 43 KB

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