hdfs-default.xml 55 KB

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