hdfs-default.xml 83 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427
  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.rpc-address</name>
  28. <value></value>
  29. <description>
  30. RPC address that handles all clients requests. In the case of HA/Federation where multiple namenodes exist,
  31. the name service id is added to the name e.g. dfs.namenode.rpc-address.ns1
  32. dfs.namenode.rpc-address.EXAMPLENAMESERVICE
  33. The value of this property will take the form of nn-host1:rpc-port.
  34. </description>
  35. </property>
  36. <property>
  37. <name>dfs.namenode.rpc-bind-host</name>
  38. <value></value>
  39. <description>
  40. The actual address the RPC server will bind to. If this optional address is
  41. set, it overrides only the hostname portion of dfs.namenode.rpc-address.
  42. It can also be specified per name node or name service for HA/Federation.
  43. This is useful for making the name node listen on all interfaces by
  44. setting it to 0.0.0.0.
  45. </description>
  46. </property>
  47. <property>
  48. <name>dfs.namenode.servicerpc-address</name>
  49. <value></value>
  50. <description>
  51. RPC address for HDFS Services communication. BackupNode, Datanodes and all other services should be
  52. connecting to this address if it is configured. In the case of HA/Federation where multiple namenodes exist,
  53. the name service id is added to the name e.g. dfs.namenode.servicerpc-address.ns1
  54. dfs.namenode.rpc-address.EXAMPLENAMESERVICE
  55. The value of this property will take the form of nn-host1:rpc-port.
  56. If the value of this property is unset the value of dfs.namenode.rpc-address will be used as the default.
  57. </description>
  58. </property>
  59. <property>
  60. <name>dfs.namenode.servicerpc-bind-host</name>
  61. <value></value>
  62. <description>
  63. The actual address the service RPC server will bind to. If this optional address is
  64. set, it overrides only the hostname portion of dfs.namenode.servicerpc-address.
  65. It can also be specified per name node or name service for HA/Federation.
  66. This is useful for making the name node listen on all interfaces by
  67. setting it to 0.0.0.0.
  68. </description>
  69. </property>
  70. <property>
  71. <name>dfs.namenode.secondary.http-address</name>
  72. <value>0.0.0.0:50090</value>
  73. <description>
  74. The secondary namenode http server address and port.
  75. </description>
  76. </property>
  77. <property>
  78. <name>dfs.namenode.secondary.https-address</name>
  79. <value>0.0.0.0:50091</value>
  80. <description>
  81. The secondary namenode HTTPS server address and port.
  82. </description>
  83. </property>
  84. <property>
  85. <name>dfs.datanode.address</name>
  86. <value>0.0.0.0:50010</value>
  87. <description>
  88. The datanode server address and port for data transfer.
  89. </description>
  90. </property>
  91. <property>
  92. <name>dfs.datanode.http.address</name>
  93. <value>0.0.0.0:50075</value>
  94. <description>
  95. The datanode http server address and port.
  96. </description>
  97. </property>
  98. <property>
  99. <name>dfs.datanode.ipc.address</name>
  100. <value>0.0.0.0:50020</value>
  101. <description>
  102. The datanode ipc server address and port.
  103. </description>
  104. </property>
  105. <property>
  106. <name>dfs.datanode.handler.count</name>
  107. <value>10</value>
  108. <description>The number of server threads for the datanode.</description>
  109. </property>
  110. <property>
  111. <name>dfs.namenode.http-address</name>
  112. <value>0.0.0.0:50070</value>
  113. <description>
  114. The address and the base port where the dfs namenode web ui will listen on.
  115. </description>
  116. </property>
  117. <property>
  118. <name>dfs.namenode.http-bind-host</name>
  119. <value></value>
  120. <description>
  121. The actual adress the HTTP server will bind to. If this optional address
  122. is set, it overrides only the hostname portion of dfs.namenode.http-address.
  123. It can also be specified per name node or name service for HA/Federation.
  124. This is useful for making the name node HTTP server listen on all
  125. interfaces by setting it to 0.0.0.0.
  126. </description>
  127. </property>
  128. <property>
  129. <name>dfs.namenode.heartbeat.recheck-interval</name>
  130. <value>300000</value>
  131. <description>
  132. This time decides the interval to check for expired datanodes.
  133. With this value and dfs.heartbeat.interval, the interval of
  134. deciding the datanode is stale or not is also calculated.
  135. The unit of this configuration is millisecond.
  136. </description>
  137. </property>
  138. <property>
  139. <name>dfs.http.policy</name>
  140. <value>HTTP_ONLY</value>
  141. <description>Decide if HTTPS(SSL) is supported on HDFS
  142. This configures the HTTP endpoint for HDFS daemons:
  143. The following values are supported:
  144. - HTTP_ONLY : Service is provided only on http
  145. - HTTPS_ONLY : Service is provided only on https
  146. - HTTP_AND_HTTPS : Service is provided both on http and https
  147. </description>
  148. </property>
  149. <property>
  150. <name>dfs.client.https.need-auth</name>
  151. <value>false</value>
  152. <description>Whether SSL client certificate authentication is required
  153. </description>
  154. </property>
  155. <property>
  156. <name>dfs.client.cached.conn.retry</name>
  157. <value>3</value>
  158. <description>The number of times the HDFS client will pull a socket from the
  159. cache. Once this number is exceeded, the client will try to create a new
  160. socket.
  161. </description>
  162. </property>
  163. <property>
  164. <name>dfs.https.server.keystore.resource</name>
  165. <value>ssl-server.xml</value>
  166. <description>Resource file from which ssl server keystore
  167. information will be extracted
  168. </description>
  169. </property>
  170. <property>
  171. <name>dfs.client.https.keystore.resource</name>
  172. <value>ssl-client.xml</value>
  173. <description>Resource file from which ssl client keystore
  174. information will be extracted
  175. </description>
  176. </property>
  177. <property>
  178. <name>dfs.datanode.https.address</name>
  179. <value>0.0.0.0:50475</value>
  180. <description>The datanode secure http server address and port.</description>
  181. </property>
  182. <property>
  183. <name>dfs.namenode.https-address</name>
  184. <value>0.0.0.0:50470</value>
  185. <description>The namenode secure http server address and port.</description>
  186. </property>
  187. <property>
  188. <name>dfs.namenode.https-bind-host</name>
  189. <value></value>
  190. <description>
  191. The actual adress the HTTPS server will bind to. If this optional address
  192. is set, it overrides only the hostname portion of dfs.namenode.https-address.
  193. It can also be specified per name node or name service for HA/Federation.
  194. This is useful for making the name node HTTPS server listen on all
  195. interfaces by setting it to 0.0.0.0.
  196. </description>
  197. </property>
  198. <property>
  199. <name>dfs.datanode.dns.interface</name>
  200. <value>default</value>
  201. <description>The name of the Network Interface from which a data node should
  202. report its IP address.
  203. </description>
  204. </property>
  205. <property>
  206. <name>dfs.datanode.dns.nameserver</name>
  207. <value>default</value>
  208. <description>The host name or IP address of the name server (DNS)
  209. which a DataNode should use to determine the host name used by the
  210. NameNode for communication and display purposes.
  211. </description>
  212. </property>
  213. <property>
  214. <name>dfs.namenode.backup.address</name>
  215. <value>0.0.0.0:50100</value>
  216. <description>
  217. The backup node server address and port.
  218. If the port is 0 then the server will start on a free port.
  219. </description>
  220. </property>
  221. <property>
  222. <name>dfs.namenode.backup.http-address</name>
  223. <value>0.0.0.0:50105</value>
  224. <description>
  225. The backup node http server address and port.
  226. If the port is 0 then the server will start on a free port.
  227. </description>
  228. </property>
  229. <property>
  230. <name>dfs.namenode.replication.considerLoad</name>
  231. <value>true</value>
  232. <description>Decide if chooseTarget considers the target's load or not
  233. </description>
  234. </property>
  235. <property>
  236. <name>dfs.default.chunk.view.size</name>
  237. <value>32768</value>
  238. <description>The number of bytes to view for a file on the browser.
  239. </description>
  240. </property>
  241. <property>
  242. <name>dfs.datanode.du.reserved</name>
  243. <value>0</value>
  244. <description>Reserved space in bytes per volume. Always leave this much space free for non dfs use.
  245. </description>
  246. </property>
  247. <property>
  248. <name>dfs.namenode.name.dir</name>
  249. <value>file://${hadoop.tmp.dir}/dfs/name</value>
  250. <description>Determines where on the local filesystem the DFS name node
  251. should store the name table(fsimage). If this is a comma-delimited list
  252. of directories then the name table is replicated in all of the
  253. directories, for redundancy. </description>
  254. </property>
  255. <property>
  256. <name>dfs.namenode.name.dir.restore</name>
  257. <value>false</value>
  258. <description>Set to true to enable NameNode to attempt recovering a
  259. previously failed dfs.namenode.name.dir. When enabled, a recovery of any
  260. failed directory is attempted during checkpoint.</description>
  261. </property>
  262. <property>
  263. <name>dfs.namenode.fs-limits.max-component-length</name>
  264. <value>255</value>
  265. <description>Defines the maximum number of bytes in UTF-8 encoding in each
  266. component of a path. A value of 0 will disable the check.</description>
  267. </property>
  268. <property>
  269. <name>dfs.namenode.fs-limits.max-directory-items</name>
  270. <value>1048576</value>
  271. <description>Defines the maximum number of items that a directory may
  272. contain. Cannot set the property to a value less than 1 or more than
  273. 6400000.</description>
  274. </property>
  275. <property>
  276. <name>dfs.namenode.fs-limits.min-block-size</name>
  277. <value>1048576</value>
  278. <description>Minimum block size in bytes, enforced by the Namenode at create
  279. time. This prevents the accidental creation of files with tiny block
  280. sizes (and thus many blocks), which can degrade
  281. performance.</description>
  282. </property>
  283. <property>
  284. <name>dfs.namenode.fs-limits.max-blocks-per-file</name>
  285. <value>1048576</value>
  286. <description>Maximum number of blocks per file, enforced by the Namenode on
  287. write. This prevents the creation of extremely large files which can
  288. degrade performance.</description>
  289. </property>
  290. <property>
  291. <name>dfs.namenode.edits.dir</name>
  292. <value>${dfs.namenode.name.dir}</value>
  293. <description>Determines where on the local filesystem the DFS name node
  294. should store the transaction (edits) file. If this is a comma-delimited list
  295. of directories then the transaction file is replicated in all of the
  296. directories, for redundancy. Default value is same as dfs.namenode.name.dir
  297. </description>
  298. </property>
  299. <property>
  300. <name>dfs.namenode.shared.edits.dir</name>
  301. <value></value>
  302. <description>A directory on shared storage between the multiple namenodes
  303. in an HA cluster. This directory will be written by the active and read
  304. by the standby in order to keep the namespaces synchronized. This directory
  305. does not need to be listed in dfs.namenode.edits.dir above. It should be
  306. left empty in a non-HA cluster.
  307. </description>
  308. </property>
  309. <property>
  310. <name>dfs.namenode.edits.journal-plugin.qjournal</name>
  311. <value>org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager</value>
  312. </property>
  313. <property>
  314. <name>dfs.permissions.enabled</name>
  315. <value>true</value>
  316. <description>
  317. If "true", enable permission checking in HDFS.
  318. If "false", permission checking is turned off,
  319. but all other behavior is unchanged.
  320. Switching from one parameter value to the other does not change the mode,
  321. owner or group of files or directories.
  322. </description>
  323. </property>
  324. <property>
  325. <name>dfs.permissions.superusergroup</name>
  326. <value>supergroup</value>
  327. <description>The name of the group of super-users.</description>
  328. </property>
  329. <!--
  330. <property>
  331. <name>dfs.cluster.administrators</name>
  332. <value>ACL for the admins</value>
  333. <description>This configuration is used to control who can access the
  334. default servlets in the namenode, etc.
  335. </description>
  336. </property>
  337. -->
  338. <property>
  339. <name>dfs.namenode.acls.enabled</name>
  340. <value>false</value>
  341. <description>
  342. Set to true to enable support for HDFS ACLs (Access Control Lists). By
  343. default, ACLs are disabled. When ACLs are disabled, the NameNode rejects
  344. all RPCs related to setting or getting ACLs.
  345. </description>
  346. </property>
  347. <property>
  348. <name>dfs.namenode.lazypersist.file.scrub.interval.sec</name>
  349. <value>300</value>
  350. <description>
  351. The NameNode periodically scans the namespace for LazyPersist files with
  352. missing blocks and unlinks them from the namespace. This configuration key
  353. controls the interval between successive scans. Set it to a negative value
  354. to disable this behavior.
  355. </description>
  356. </property>
  357. <property>
  358. <name>dfs.block.access.token.enable</name>
  359. <value>false</value>
  360. <description>
  361. If "true", access tokens are used as capabilities for accessing datanodes.
  362. If "false", no access tokens are checked on accessing datanodes.
  363. </description>
  364. </property>
  365. <property>
  366. <name>dfs.block.access.key.update.interval</name>
  367. <value>600</value>
  368. <description>
  369. Interval in minutes at which namenode updates its access keys.
  370. </description>
  371. </property>
  372. <property>
  373. <name>dfs.block.access.token.lifetime</name>
  374. <value>600</value>
  375. <description>The lifetime of access tokens in minutes.</description>
  376. </property>
  377. <property>
  378. <name>dfs.datanode.data.dir</name>
  379. <value>file://${hadoop.tmp.dir}/dfs/data</value>
  380. <description>Determines where on the local filesystem an DFS data node
  381. should store its blocks. If this is a comma-delimited
  382. list of directories, then data will be stored in all named
  383. directories, typically on different devices. The directories should be tagged
  384. with corresponding storage types ([SSD]/[DISK]/[ARCHIVE]/[RAM_DISK]) for HDFS
  385. storage policies. The default storage type will be DISK if the directory does
  386. not have a storage type tagged explicitly. Directories that do not exist will
  387. be created if local filesystem permission allows.
  388. </description>
  389. </property>
  390. <property>
  391. <name>dfs.datanode.data.dir.perm</name>
  392. <value>700</value>
  393. <description>Permissions for the directories on on the local filesystem where
  394. the DFS data node store its blocks. The permissions can either be octal or
  395. symbolic.</description>
  396. </property>
  397. <property>
  398. <name>dfs.replication</name>
  399. <value>3</value>
  400. <description>Default block replication.
  401. The actual number of replications can be specified when the file is created.
  402. The default is used if replication is not specified in create time.
  403. </description>
  404. </property>
  405. <property>
  406. <name>dfs.replication.max</name>
  407. <value>512</value>
  408. <description>Maximal block replication.
  409. </description>
  410. </property>
  411. <property>
  412. <name>dfs.namenode.replication.min</name>
  413. <value>1</value>
  414. <description>Minimal block replication.
  415. </description>
  416. </property>
  417. <property>
  418. <name>dfs.blocksize</name>
  419. <value>134217728</value>
  420. <description>
  421. The default block size for new files, in bytes.
  422. You can use the following suffix (case insensitive):
  423. k(kilo), m(mega), g(giga), t(tera), p(peta), e(exa) to specify the size (such as 128k, 512m, 1g, etc.),
  424. Or provide complete size in bytes (such as 134217728 for 128 MB).
  425. </description>
  426. </property>
  427. <property>
  428. <name>dfs.client.block.write.retries</name>
  429. <value>3</value>
  430. <description>The number of retries for writing blocks to the data nodes,
  431. before we signal failure to the application.
  432. </description>
  433. </property>
  434. <property>
  435. <name>dfs.client.block.write.replace-datanode-on-failure.enable</name>
  436. <value>true</value>
  437. <description>
  438. If there is a datanode/network failure in the write pipeline,
  439. DFSClient will try to remove the failed datanode from the pipeline
  440. and then continue writing with the remaining datanodes. As a result,
  441. the number of datanodes in the pipeline is decreased. The feature is
  442. to add new datanodes to the pipeline.
  443. This is a site-wide property to enable/disable the feature.
  444. When the cluster size is extremely small, e.g. 3 nodes or less, cluster
  445. administrators may want to set the policy to NEVER in the default
  446. configuration file or disable this feature. Otherwise, users may
  447. experience an unusually high rate of pipeline failures since it is
  448. impossible to find new datanodes for replacement.
  449. See also dfs.client.block.write.replace-datanode-on-failure.policy
  450. </description>
  451. </property>
  452. <property>
  453. <name>dfs.client.block.write.replace-datanode-on-failure.policy</name>
  454. <value>DEFAULT</value>
  455. <description>
  456. This property is used only if the value of
  457. dfs.client.block.write.replace-datanode-on-failure.enable is true.
  458. ALWAYS: always add a new datanode when an existing datanode is removed.
  459. NEVER: never add a new datanode.
  460. DEFAULT:
  461. Let r be the replication number.
  462. Let n be the number of existing datanodes.
  463. Add a new datanode only if r is greater than or equal to 3 and either
  464. (1) floor(r/2) is greater than or equal to n; or
  465. (2) r is greater than n and the block is hflushed/appended.
  466. </description>
  467. </property>
  468. <property>
  469. <name>dfs.client.block.write.replace-datanode-on-failure.best-effort</name>
  470. <value>false</value>
  471. <description>
  472. This property is used only if the value of
  473. dfs.client.block.write.replace-datanode-on-failure.enable is true.
  474. Best effort means that the client will try to replace a failed datanode
  475. in write pipeline (provided that the policy is satisfied), however, it
  476. continues the write operation in case that the datanode replacement also
  477. fails.
  478. Suppose the datanode replacement fails.
  479. false: An exception should be thrown so that the write will fail.
  480. true : The write should be resumed with the remaining datandoes.
  481. Note that setting this property to true allows writing to a pipeline
  482. with a smaller number of datanodes. As a result, it increases the
  483. probability of data loss.
  484. </description>
  485. </property>
  486. <property>
  487. <name>dfs.blockreport.intervalMsec</name>
  488. <value>21600000</value>
  489. <description>Determines block reporting interval in milliseconds.</description>
  490. </property>
  491. <property>
  492. <name>dfs.blockreport.initialDelay</name> <value>0</value>
  493. <description>Delay for first block report in seconds.</description>
  494. </property>
  495. <property>
  496. <name>dfs.blockreport.split.threshold</name>
  497. <value>1000000</value>
  498. <description>If the number of blocks on the DataNode is below this
  499. threshold then it will send block reports for all Storage Directories
  500. in a single message.
  501. If the number of blocks exceeds this threshold then the DataNode will
  502. send block reports for each Storage Directory in separate messages.
  503. Set to zero to always split.
  504. </description>
  505. </property>
  506. <property>
  507. <name>dfs.namenode.max.full.block.report.leases</name>
  508. <value>6</value>
  509. <description>The maximum number of leases for full block reports that the
  510. NameNode will issue at any given time. This prevents the NameNode from
  511. being flooded with full block reports that use up all the RPC handler
  512. threads. This number should never be more than the number of RPC handler
  513. threads or less than 1.
  514. </description>
  515. </property>
  516. <property>
  517. <name>dfs.namenode.full.block.report.lease.length.ms</name>
  518. <value>300000</value>
  519. <description>
  520. The number of milliseconds that the NameNode will wait before invalidating
  521. a full block report lease. This prevents a crashed DataNode from
  522. permanently using up a full block report lease.
  523. </description>
  524. </property>
  525. <property>
  526. <name>dfs.datanode.directoryscan.interval</name>
  527. <value>21600</value>
  528. <description>Interval in seconds for Datanode to scan data directories and
  529. reconcile the difference between blocks in memory and on the disk.
  530. </description>
  531. </property>
  532. <property>
  533. <name>dfs.datanode.directoryscan.threads</name>
  534. <value>1</value>
  535. <description>How many threads should the threadpool used to compile reports
  536. for volumes in parallel have.
  537. </description>
  538. </property>
  539. <property>
  540. <name>dfs.heartbeat.interval</name>
  541. <value>3</value>
  542. <description>Determines datanode heartbeat interval in seconds.</description>
  543. </property>
  544. <property>
  545. <name>dfs.namenode.handler.count</name>
  546. <value>10</value>
  547. <description>The number of Namenode RPC server threads that listen to
  548. requests from clients.
  549. If dfs.namenode.servicerpc-address is not configured then
  550. Namenode RPC server threads listen to requests from all nodes.
  551. </description>
  552. </property>
  553. <property>
  554. <name>dfs.namenode.service.handler.count</name>
  555. <value>10</value>
  556. <description>The number of Namenode RPC server threads that listen to
  557. requests from DataNodes and from all other non-client nodes.
  558. dfs.namenode.service.handler.count will be valid only if
  559. dfs.namenode.servicerpc-address is configured.
  560. </description>
  561. </property>
  562. <property>
  563. <name>dfs.namenode.safemode.threshold-pct</name>
  564. <value>0.999f</value>
  565. <description>
  566. Specifies the percentage of blocks that should satisfy
  567. the minimal replication requirement defined by dfs.namenode.replication.min.
  568. Values less than or equal to 0 mean not to wait for any particular
  569. percentage of blocks before exiting safemode.
  570. Values greater than 1 will make safe mode permanent.
  571. </description>
  572. </property>
  573. <property>
  574. <name>dfs.namenode.safemode.min.datanodes</name>
  575. <value>0</value>
  576. <description>
  577. Specifies the number of datanodes that must be considered alive
  578. before the name node exits safemode.
  579. Values less than or equal to 0 mean not to take the number of live
  580. datanodes into account when deciding whether to remain in safe mode
  581. during startup.
  582. Values greater than the number of datanodes in the cluster
  583. will make safe mode permanent.
  584. </description>
  585. </property>
  586. <property>
  587. <name>dfs.namenode.safemode.extension</name>
  588. <value>30000</value>
  589. <description>
  590. Determines extension of safe mode in milliseconds
  591. after the threshold level is reached.
  592. </description>
  593. </property>
  594. <property>
  595. <name>dfs.namenode.resource.check.interval</name>
  596. <value>5000</value>
  597. <description>
  598. The interval in milliseconds at which the NameNode resource checker runs.
  599. The checker calculates the number of the NameNode storage volumes whose
  600. available spaces are more than dfs.namenode.resource.du.reserved, and
  601. enters safemode if the number becomes lower than the minimum value
  602. specified by dfs.namenode.resource.checked.volumes.minimum.
  603. </description>
  604. </property>
  605. <property>
  606. <name>dfs.namenode.resource.du.reserved</name>
  607. <value>104857600</value>
  608. <description>
  609. The amount of space to reserve/require for a NameNode storage directory
  610. in bytes. The default is 100MB.
  611. </description>
  612. </property>
  613. <property>
  614. <name>dfs.namenode.resource.checked.volumes</name>
  615. <value></value>
  616. <description>
  617. A list of local directories for the NameNode resource checker to check in
  618. addition to the local edits directories.
  619. </description>
  620. </property>
  621. <property>
  622. <name>dfs.namenode.resource.checked.volumes.minimum</name>
  623. <value>1</value>
  624. <description>
  625. The minimum number of redundant NameNode storage volumes required.
  626. </description>
  627. </property>
  628. <property>
  629. <name>dfs.datanode.balance.bandwidthPerSec</name>
  630. <value>1048576</value>
  631. <description>
  632. Specifies the maximum amount of bandwidth that each datanode
  633. can utilize for the balancing purpose in term of
  634. the number of bytes per second.
  635. </description>
  636. </property>
  637. <property>
  638. <name>dfs.hosts</name>
  639. <value></value>
  640. <description>Names a file that contains a list of hosts that are
  641. permitted to connect to the namenode. The full pathname of the file
  642. must be specified. If the value is empty, all hosts are
  643. permitted.</description>
  644. </property>
  645. <property>
  646. <name>dfs.hosts.exclude</name>
  647. <value></value>
  648. <description>Names a file that contains a list of hosts that are
  649. not permitted to connect to the namenode. The full pathname of the
  650. file must be specified. If the value is empty, no hosts are
  651. excluded.</description>
  652. </property>
  653. <property>
  654. <name>dfs.namenode.max.objects</name>
  655. <value>0</value>
  656. <description>The maximum number of files, directories and blocks
  657. dfs supports. A value of zero indicates no limit to the number
  658. of objects that dfs supports.
  659. </description>
  660. </property>
  661. <property>
  662. <name>dfs.namenode.datanode.registration.ip-hostname-check</name>
  663. <value>true</value>
  664. <description>
  665. If true (the default), then the namenode requires that a connecting
  666. datanode's address must be resolved to a hostname. If necessary, a reverse
  667. DNS lookup is performed. All attempts to register a datanode from an
  668. unresolvable address are rejected.
  669. It is recommended that this setting be left on to prevent accidental
  670. registration of datanodes listed by hostname in the excludes file during a
  671. DNS outage. Only set this to false in environments where there is no
  672. infrastructure to support reverse DNS lookup.
  673. </description>
  674. </property>
  675. <property>
  676. <name>dfs.namenode.decommission.interval</name>
  677. <value>30</value>
  678. <description>Namenode periodicity in seconds to check if decommission is
  679. complete.</description>
  680. </property>
  681. <property>
  682. <name>dfs.namenode.decommission.blocks.per.interval</name>
  683. <value>500000</value>
  684. <description>The approximate number of blocks to process per
  685. decommission interval, as defined in dfs.namenode.decommission.interval.
  686. </description>
  687. </property>
  688. <property>
  689. <name>dfs.namenode.decommission.max.concurrent.tracked.nodes</name>
  690. <value>100</value>
  691. <description>
  692. The maximum number of decommission-in-progress datanodes nodes that will be
  693. tracked at one time by the namenode. Tracking a decommission-in-progress
  694. datanode consumes additional NN memory proportional to the number of blocks
  695. on the datnode. Having a conservative limit reduces the potential impact
  696. of decomissioning a large number of nodes at once.
  697. A value of 0 means no limit will be enforced.
  698. </description>
  699. </property>
  700. <property>
  701. <name>dfs.namenode.replication.interval</name>
  702. <value>3</value>
  703. <description>The periodicity in seconds with which the namenode computes
  704. replication work for datanodes. </description>
  705. </property>
  706. <property>
  707. <name>dfs.namenode.accesstime.precision</name>
  708. <value>3600000</value>
  709. <description>The access time for HDFS file is precise upto this value.
  710. The default value is 1 hour. Setting a value of 0 disables
  711. access times for HDFS.
  712. </description>
  713. </property>
  714. <property>
  715. <name>dfs.datanode.plugins</name>
  716. <value></value>
  717. <description>Comma-separated list of datanode plug-ins to be activated.
  718. </description>
  719. </property>
  720. <property>
  721. <name>dfs.namenode.plugins</name>
  722. <value></value>
  723. <description>Comma-separated list of namenode plug-ins to be activated.
  724. </description>
  725. </property>
  726. <property>
  727. <name>dfs.stream-buffer-size</name>
  728. <value>4096</value>
  729. <description>The size of buffer to stream files.
  730. The size of this buffer should probably be a multiple of hardware
  731. page size (4096 on Intel x86), and it determines how much data is
  732. buffered during read and write operations.</description>
  733. </property>
  734. <property>
  735. <name>dfs.bytes-per-checksum</name>
  736. <value>512</value>
  737. <description>The number of bytes per checksum. Must not be larger than
  738. dfs.stream-buffer-size</description>
  739. </property>
  740. <property>
  741. <name>dfs.client-write-packet-size</name>
  742. <value>65536</value>
  743. <description>Packet size for clients to write</description>
  744. </property>
  745. <property>
  746. <name>dfs.client.write.exclude.nodes.cache.expiry.interval.millis</name>
  747. <value>600000</value>
  748. <description>The maximum period to keep a DN in the excluded nodes list
  749. at a client. After this period, in milliseconds, the previously excluded node(s) will
  750. be removed automatically from the cache and will be considered good for block allocations
  751. again. Useful to lower or raise in situations where you keep a file open for very long
  752. periods (such as a Write-Ahead-Log (WAL) file) to make the writer tolerant to cluster maintenance
  753. restarts. Defaults to 10 minutes.</description>
  754. </property>
  755. <property>
  756. <name>dfs.namenode.checkpoint.dir</name>
  757. <value>file://${hadoop.tmp.dir}/dfs/namesecondary</value>
  758. <description>Determines where on the local filesystem the DFS secondary
  759. name node should store the temporary images to merge.
  760. If this is a comma-delimited list of directories then the image is
  761. replicated in all of the directories for redundancy.
  762. </description>
  763. </property>
  764. <property>
  765. <name>dfs.namenode.checkpoint.edits.dir</name>
  766. <value>${dfs.namenode.checkpoint.dir}</value>
  767. <description>Determines where on the local filesystem the DFS secondary
  768. name node should store the temporary edits to merge.
  769. If this is a comma-delimited list of directories then the edits is
  770. replicated in all of the directories for redundancy.
  771. Default value is same as dfs.namenode.checkpoint.dir
  772. </description>
  773. </property>
  774. <property>
  775. <name>dfs.namenode.checkpoint.period</name>
  776. <value>3600</value>
  777. <description>The number of seconds between two periodic checkpoints.
  778. </description>
  779. </property>
  780. <property>
  781. <name>dfs.namenode.checkpoint.txns</name>
  782. <value>1000000</value>
  783. <description>The Secondary NameNode or CheckpointNode will create a checkpoint
  784. of the namespace every 'dfs.namenode.checkpoint.txns' transactions, regardless
  785. of whether 'dfs.namenode.checkpoint.period' has expired.
  786. </description>
  787. </property>
  788. <property>
  789. <name>dfs.namenode.checkpoint.check.period</name>
  790. <value>60</value>
  791. <description>The SecondaryNameNode and CheckpointNode will poll the NameNode
  792. every 'dfs.namenode.checkpoint.check.period' seconds to query the number
  793. of uncheckpointed transactions.
  794. </description>
  795. </property>
  796. <property>
  797. <name>dfs.namenode.checkpoint.max-retries</name>
  798. <value>3</value>
  799. <description>The SecondaryNameNode retries failed checkpointing. If the
  800. failure occurs while loading fsimage or replaying edits, the number of
  801. retries is limited by this variable.
  802. </description>
  803. </property>
  804. <property>
  805. <name>dfs.namenode.checkpoint.check.quiet-multiplier</name>
  806. <value>1.5</value>
  807. <description>
  808. Used to calculate the amount of time between retries when in the 'quiet' period
  809. for creating checkpoints (active namenode already has an up-to-date image from another
  810. checkpointer), so we wait a multiplier of the dfs.namenode.checkpoint.check.period before
  811. retrying the checkpoint because another node likely is already managing the checkpoints,
  812. allowing us to save bandwidth to transfer checkpoints that don't need to be used.
  813. </description>
  814. </property>
  815. <property>
  816. <name>dfs.namenode.num.checkpoints.retained</name>
  817. <value>2</value>
  818. <description>The number of image checkpoint files (fsimage_*) that will be retained by
  819. the NameNode and Secondary NameNode in their storage directories. All edit
  820. logs (stored on edits_* files) necessary to recover an up-to-date namespace from the oldest retained
  821. checkpoint will also be retained.
  822. </description>
  823. </property>
  824. <property>
  825. <name>dfs.namenode.num.extra.edits.retained</name>
  826. <value>1000000</value>
  827. <description>The number of extra transactions which should be retained
  828. beyond what is minimally necessary for a NN restart.
  829. It does not translate directly to file's age, or the number of files kept,
  830. but to the number of transactions (here "edits" means transactions).
  831. One edit file may contain several transactions (edits).
  832. During checkpoint, NameNode will identify the total number of edits to retain as extra by
  833. checking the latest checkpoint transaction value, subtracted by the value of this property.
  834. Then, it scans edits files to identify the older ones that don't include the computed range of
  835. retained transactions that are to be kept around, and purges them subsequently.
  836. The retainment can be useful for audit purposes or for an HA setup where a remote Standby Node may have
  837. been offline for some time and need to have a longer backlog of retained
  838. edits in order to start again.
  839. Typically each edit is on the order of a few hundred bytes, so the default
  840. of 1 million edits should be on the order of hundreds of MBs or low GBs.
  841. NOTE: Fewer extra edits may be retained than value specified for this setting
  842. if doing so would mean that more segments would be retained than the number
  843. configured by dfs.namenode.max.extra.edits.segments.retained.
  844. </description>
  845. </property>
  846. <property>
  847. <name>dfs.namenode.max.extra.edits.segments.retained</name>
  848. <value>10000</value>
  849. <description>The maximum number of extra edit log segments which should be retained
  850. beyond what is minimally necessary for a NN restart. When used in conjunction with
  851. dfs.namenode.num.extra.edits.retained, this configuration property serves to cap
  852. the number of extra edits files to a reasonable value.
  853. </description>
  854. </property>
  855. <property>
  856. <name>dfs.namenode.delegation.key.update-interval</name>
  857. <value>86400000</value>
  858. <description>The update interval for master key for delegation tokens
  859. in the namenode in milliseconds.
  860. </description>
  861. </property>
  862. <property>
  863. <name>dfs.namenode.delegation.token.max-lifetime</name>
  864. <value>604800000</value>
  865. <description>The maximum lifetime in milliseconds for which a delegation
  866. token is valid.
  867. </description>
  868. </property>
  869. <property>
  870. <name>dfs.namenode.delegation.token.renew-interval</name>
  871. <value>86400000</value>
  872. <description>The renewal interval for delegation token in milliseconds.
  873. </description>
  874. </property>
  875. <property>
  876. <name>dfs.datanode.failed.volumes.tolerated</name>
  877. <value>0</value>
  878. <description>The number of volumes that are allowed to
  879. fail before a datanode stops offering service. By default
  880. any volume failure will cause a datanode to shutdown.
  881. </description>
  882. </property>
  883. <property>
  884. <name>dfs.image.compress</name>
  885. <value>false</value>
  886. <description>Should the dfs image be compressed?
  887. </description>
  888. </property>
  889. <property>
  890. <name>dfs.image.compression.codec</name>
  891. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  892. <description>If the dfs image is compressed, how should they be compressed?
  893. This has to be a codec defined in io.compression.codecs.
  894. </description>
  895. </property>
  896. <property>
  897. <name>dfs.image.transfer.timeout</name>
  898. <value>60000</value>
  899. <description>
  900. Socket timeout for image transfer in milliseconds. This timeout and the related
  901. dfs.image.transfer.bandwidthPerSec parameter should be configured such
  902. that normal image transfer can complete successfully.
  903. This timeout prevents client hangs when the sender fails during
  904. image transfer. This is socket timeout during image transfer.
  905. </description>
  906. </property>
  907. <property>
  908. <name>dfs.image.transfer.bandwidthPerSec</name>
  909. <value>0</value>
  910. <description>
  911. Maximum bandwidth used for image transfer in bytes per second.
  912. This can help keep normal namenode operations responsive during
  913. checkpointing. The maximum bandwidth and timeout in
  914. dfs.image.transfer.timeout should be set such that normal image
  915. transfers can complete successfully.
  916. A default value of 0 indicates that throttling is disabled.
  917. </description>
  918. </property>
  919. <property>
  920. <name>dfs.image.transfer.chunksize</name>
  921. <value>65536</value>
  922. <description>
  923. Chunksize in bytes to upload the checkpoint.
  924. Chunked streaming is used to avoid internal buffering of contents
  925. of image file of huge size.
  926. </description>
  927. </property>
  928. <property>
  929. <name>dfs.namenode.support.allow.format</name>
  930. <value>true</value>
  931. <description>Does HDFS namenode allow itself to be formatted?
  932. You may consider setting this to false for any production
  933. cluster, to avoid any possibility of formatting a running DFS.
  934. </description>
  935. </property>
  936. <property>
  937. <name>dfs.datanode.max.transfer.threads</name>
  938. <value>4096</value>
  939. <description>
  940. Specifies the maximum number of threads to use for transferring data
  941. in and out of the DN.
  942. </description>
  943. </property>
  944. <property>
  945. <name>dfs.datanode.scan.period.hours</name>
  946. <value>504</value>
  947. <description>
  948. If this is positive, the DataNode will not scan any
  949. individual block more than once in the specified scan period.
  950. If this is negative, the block scanner is disabled.
  951. If this is set to zero, then the default value of 504 hours
  952. or 3 weeks is used. Prior versions of HDFS incorrectly documented
  953. that setting this key to zero will disable the block scanner.
  954. </description>
  955. </property>
  956. <property>
  957. <name>dfs.block.scanner.volume.bytes.per.second</name>
  958. <value>1048576</value>
  959. <description>
  960. If this is 0, the DataNode's block scanner will be disabled. If this
  961. is positive, this is the number of bytes per second that the DataNode's
  962. block scanner will try to scan from each volume.
  963. </description>
  964. </property>
  965. <property>
  966. <name>dfs.datanode.readahead.bytes</name>
  967. <value>4194304</value>
  968. <description>
  969. While reading block files, if the Hadoop native libraries are available,
  970. the datanode can use the posix_fadvise system call to explicitly
  971. page data into the operating system buffer cache ahead of the current
  972. reader's position. This can improve performance especially when
  973. disks are highly contended.
  974. This configuration specifies the number of bytes ahead of the current
  975. read position which the datanode will attempt to read ahead. This
  976. feature may be disabled by configuring this property to 0.
  977. If the native libraries are not available, this configuration has no
  978. effect.
  979. </description>
  980. </property>
  981. <property>
  982. <name>dfs.datanode.drop.cache.behind.reads</name>
  983. <value>false</value>
  984. <description>
  985. In some workloads, the data read from HDFS is known to be significantly
  986. large enough that it is unlikely to be useful to cache it in the
  987. operating system buffer cache. In this case, the DataNode may be
  988. configured to automatically purge all data from the buffer cache
  989. after it is delivered to the client. This behavior is automatically
  990. disabled for workloads which read only short sections of a block
  991. (e.g HBase random-IO workloads).
  992. This may improve performance for some workloads by freeing buffer
  993. cache space usage for more cacheable data.
  994. If the Hadoop native libraries are not available, this configuration
  995. has no effect.
  996. </description>
  997. </property>
  998. <property>
  999. <name>dfs.datanode.drop.cache.behind.writes</name>
  1000. <value>false</value>
  1001. <description>
  1002. In some workloads, the data written to HDFS is known to be significantly
  1003. large enough that it is unlikely to be useful to cache it in the
  1004. operating system buffer cache. In this case, the DataNode may be
  1005. configured to automatically purge all data from the buffer cache
  1006. after it is written to disk.
  1007. This may improve performance for some workloads by freeing buffer
  1008. cache space usage for more cacheable data.
  1009. If the Hadoop native libraries are not available, this configuration
  1010. has no effect.
  1011. </description>
  1012. </property>
  1013. <property>
  1014. <name>dfs.datanode.sync.behind.writes</name>
  1015. <value>false</value>
  1016. <description>
  1017. If this configuration is enabled, the datanode will instruct the
  1018. operating system to enqueue all written data to the disk immediately
  1019. after it is written. This differs from the usual OS policy which
  1020. may wait for up to 30 seconds before triggering writeback.
  1021. This may improve performance for some workloads by smoothing the
  1022. IO profile for data written to disk.
  1023. If the Hadoop native libraries are not available, this configuration
  1024. has no effect.
  1025. </description>
  1026. </property>
  1027. <property>
  1028. <name>dfs.client.failover.max.attempts</name>
  1029. <value>15</value>
  1030. <description>
  1031. Expert only. The number of client failover attempts that should be
  1032. made before the failover is considered failed.
  1033. </description>
  1034. </property>
  1035. <property>
  1036. <name>dfs.client.failover.sleep.base.millis</name>
  1037. <value>500</value>
  1038. <description>
  1039. Expert only. The time to wait, in milliseconds, between failover
  1040. attempts increases exponentially as a function of the number of
  1041. attempts made so far, with a random factor of +/- 50%. This option
  1042. specifies the base value used in the failover calculation. The
  1043. first failover will retry immediately. The 2nd failover attempt
  1044. will delay at least dfs.client.failover.sleep.base.millis
  1045. milliseconds. And so on.
  1046. </description>
  1047. </property>
  1048. <property>
  1049. <name>dfs.client.failover.sleep.max.millis</name>
  1050. <value>15000</value>
  1051. <description>
  1052. Expert only. The time to wait, in milliseconds, between failover
  1053. attempts increases exponentially as a function of the number of
  1054. attempts made so far, with a random factor of +/- 50%. This option
  1055. specifies the maximum value to wait between failovers.
  1056. Specifically, the time between two failover attempts will not
  1057. exceed +/- 50% of dfs.client.failover.sleep.max.millis
  1058. milliseconds.
  1059. </description>
  1060. </property>
  1061. <property>
  1062. <name>dfs.client.failover.connection.retries</name>
  1063. <value>0</value>
  1064. <description>
  1065. Expert only. Indicates the number of retries a failover IPC client
  1066. will make to establish a server connection.
  1067. </description>
  1068. </property>
  1069. <property>
  1070. <name>dfs.client.failover.connection.retries.on.timeouts</name>
  1071. <value>0</value>
  1072. <description>
  1073. Expert only. The number of retry attempts a failover IPC client
  1074. will make on socket timeout when establishing a server connection.
  1075. </description>
  1076. </property>
  1077. <property>
  1078. <name>dfs.client.datanode-restart.timeout</name>
  1079. <value>30</value>
  1080. <description>
  1081. Expert only. The time to wait, in seconds, from reception of an
  1082. datanode shutdown notification for quick restart, until declaring
  1083. the datanode dead and invoking the normal recovery mechanisms.
  1084. The notification is sent by a datanode when it is being shutdown
  1085. using the shutdownDatanode admin command with the upgrade option.
  1086. </description>
  1087. </property>
  1088. <property>
  1089. <name>dfs.nameservices</name>
  1090. <value></value>
  1091. <description>
  1092. Comma-separated list of nameservices.
  1093. </description>
  1094. </property>
  1095. <property>
  1096. <name>dfs.nameservice.id</name>
  1097. <value></value>
  1098. <description>
  1099. The ID of this nameservice. If the nameservice ID is not
  1100. configured or more than one nameservice is configured for
  1101. dfs.nameservices it is determined automatically by
  1102. matching the local node's address with the configured address.
  1103. </description>
  1104. </property>
  1105. <property>
  1106. <name>dfs.internal.nameservices</name>
  1107. <value></value>
  1108. <description>
  1109. Comma-separated list of nameservices that belong to this cluster.
  1110. Datanode will report to all the nameservices in this list. By default
  1111. this is set to the value of dfs.nameservices.
  1112. </description>
  1113. </property>
  1114. <property>
  1115. <name>dfs.ha.namenodes.EXAMPLENAMESERVICE</name>
  1116. <value></value>
  1117. <description>
  1118. The prefix for a given nameservice, contains a comma-separated
  1119. list of namenodes for a given nameservice (eg EXAMPLENAMESERVICE).
  1120. </description>
  1121. </property>
  1122. <property>
  1123. <name>dfs.ha.namenode.id</name>
  1124. <value></value>
  1125. <description>
  1126. The ID of this namenode. If the namenode ID is not configured it
  1127. is determined automatically by matching the local node's address
  1128. with the configured address.
  1129. </description>
  1130. </property>
  1131. <property>
  1132. <name>dfs.ha.log-roll.period</name>
  1133. <value>120</value>
  1134. <description>
  1135. How often, in seconds, the StandbyNode should ask the active to
  1136. roll edit logs. Since the StandbyNode only reads from finalized
  1137. log segments, the StandbyNode will only be as up-to-date as how
  1138. often the logs are rolled. Note that failover triggers a log roll
  1139. so the StandbyNode will be up to date before it becomes active.
  1140. </description>
  1141. </property>
  1142. <property>
  1143. <name>dfs.ha.tail-edits.period</name>
  1144. <value>60</value>
  1145. <description>
  1146. How often, in seconds, the StandbyNode should check for new
  1147. finalized log segments in the shared edits log.
  1148. </description>
  1149. </property>
  1150. <property>
  1151. <name>dfs.ha.tail-edits.namenode-retries</name>
  1152. <value>3</value>
  1153. <description>
  1154. Number of retries to use when contacting the namenode when tailing the log.
  1155. </description>
  1156. </property>
  1157. <property>
  1158. <name>dfs.ha.automatic-failover.enabled</name>
  1159. <value>false</value>
  1160. <description>
  1161. Whether automatic failover is enabled. See the HDFS High
  1162. Availability documentation for details on automatic HA
  1163. configuration.
  1164. </description>
  1165. </property>
  1166. <property>
  1167. <name>dfs.client.use.datanode.hostname</name>
  1168. <value>false</value>
  1169. <description>Whether clients should use datanode hostnames when
  1170. connecting to datanodes.
  1171. </description>
  1172. </property>
  1173. <property>
  1174. <name>dfs.datanode.use.datanode.hostname</name>
  1175. <value>false</value>
  1176. <description>Whether datanodes should use datanode hostnames when
  1177. connecting to other datanodes for data transfer.
  1178. </description>
  1179. </property>
  1180. <property>
  1181. <name>dfs.client.local.interfaces</name>
  1182. <value></value>
  1183. <description>A comma separated list of network interface names to use
  1184. for data transfer between the client and datanodes. When creating
  1185. a connection to read from or write to a datanode, the client
  1186. chooses one of the specified interfaces at random and binds its
  1187. socket to the IP of that interface. Individual names may be
  1188. specified as either an interface name (eg "eth0"), a subinterface
  1189. name (eg "eth0:0"), or an IP address (which may be specified using
  1190. CIDR notation to match a range of IPs).
  1191. </description>
  1192. </property>
  1193. <property>
  1194. <name>dfs.datanode.shared.file.descriptor.paths</name>
  1195. <value>/dev/shm,/tmp</value>
  1196. <description>
  1197. A comma-separated list of paths to use when creating file descriptors that
  1198. will be shared between the DataNode and the DFSClient. Typically we use
  1199. /dev/shm, so that the file descriptors will not be written to disk.
  1200. Systems that don't have /dev/shm will fall back to /tmp by default.
  1201. </description>
  1202. </property>
  1203. <property>
  1204. <name>dfs.short.circuit.shared.memory.watcher.interrupt.check.ms</name>
  1205. <value>60000</value>
  1206. <description>
  1207. The length of time in milliseconds that the short-circuit shared memory
  1208. watcher will go between checking for java interruptions sent from other
  1209. threads. This is provided mainly for unit tests.
  1210. </description>
  1211. </property>
  1212. <property>
  1213. <name>dfs.namenode.kerberos.internal.spnego.principal</name>
  1214. <value>${dfs.web.authentication.kerberos.principal}</value>
  1215. </property>
  1216. <property>
  1217. <name>dfs.secondary.namenode.kerberos.internal.spnego.principal</name>
  1218. <value>${dfs.web.authentication.kerberos.principal}</value>
  1219. </property>
  1220. <property>
  1221. <name>dfs.namenode.kerberos.principal.pattern</name>
  1222. <value>*</value>
  1223. <description>
  1224. A client-side RegEx that can be configured to control
  1225. allowed realms to authenticate with (useful in cross-realm env.)
  1226. </description>
  1227. </property>
  1228. <property>
  1229. <name>dfs.namenode.avoid.read.stale.datanode</name>
  1230. <value>false</value>
  1231. <description>
  1232. Indicate whether or not to avoid reading from &quot;stale&quot; datanodes whose
  1233. heartbeat messages have not been received by the namenode
  1234. for more than a specified time interval. Stale datanodes will be
  1235. moved to the end of the node list returned for reading. See
  1236. dfs.namenode.avoid.write.stale.datanode for a similar setting for writes.
  1237. </description>
  1238. </property>
  1239. <property>
  1240. <name>dfs.namenode.avoid.write.stale.datanode</name>
  1241. <value>false</value>
  1242. <description>
  1243. Indicate whether or not to avoid writing to &quot;stale&quot; datanodes whose
  1244. heartbeat messages have not been received by the namenode
  1245. for more than a specified time interval. Writes will avoid using
  1246. stale datanodes unless more than a configured ratio
  1247. (dfs.namenode.write.stale.datanode.ratio) of datanodes are marked as
  1248. stale. See dfs.namenode.avoid.read.stale.datanode for a similar setting
  1249. for reads.
  1250. </description>
  1251. </property>
  1252. <property>
  1253. <name>dfs.namenode.stale.datanode.interval</name>
  1254. <value>30000</value>
  1255. <description>
  1256. Default time interval for marking a datanode as "stale", i.e., if
  1257. the namenode has not received heartbeat msg from a datanode for
  1258. more than this time interval, the datanode will be marked and treated
  1259. as "stale" by default. The stale interval cannot be too small since
  1260. otherwise this may cause too frequent change of stale states.
  1261. We thus set a minimum stale interval value (the default value is 3 times
  1262. of heartbeat interval) and guarantee that the stale interval cannot be less
  1263. than the minimum value. A stale data node is avoided during lease/block
  1264. recovery. It can be conditionally avoided for reads (see
  1265. dfs.namenode.avoid.read.stale.datanode) and for writes (see
  1266. dfs.namenode.avoid.write.stale.datanode).
  1267. </description>
  1268. </property>
  1269. <property>
  1270. <name>dfs.namenode.write.stale.datanode.ratio</name>
  1271. <value>0.5f</value>
  1272. <description>
  1273. When the ratio of number stale datanodes to total datanodes marked
  1274. is greater than this ratio, stop avoiding writing to stale nodes so
  1275. as to prevent causing hotspots.
  1276. </description>
  1277. </property>
  1278. <property>
  1279. <name>dfs.namenode.invalidate.work.pct.per.iteration</name>
  1280. <value>0.32f</value>
  1281. <description>
  1282. *Note*: Advanced property. Change with caution.
  1283. This determines the percentage amount of block
  1284. invalidations (deletes) to do over a single DN heartbeat
  1285. deletion command. The final deletion count is determined by applying this
  1286. percentage to the number of live nodes in the system.
  1287. The resultant number is the number of blocks from the deletion list
  1288. chosen for proper invalidation over a single heartbeat of a single DN.
  1289. Value should be a positive, non-zero percentage in float notation (X.Yf),
  1290. with 1.0f meaning 100%.
  1291. </description>
  1292. </property>
  1293. <property>
  1294. <name>dfs.namenode.replication.work.multiplier.per.iteration</name>
  1295. <value>2</value>
  1296. <description>
  1297. *Note*: Advanced property. Change with caution.
  1298. This determines the total amount of block transfers to begin in
  1299. parallel at a DN, for replication, when such a command list is being
  1300. sent over a DN heartbeat by the NN. The actual number is obtained by
  1301. multiplying this multiplier with the total number of live nodes in the
  1302. cluster. The result number is the number of blocks to begin transfers
  1303. immediately for, per DN heartbeat. This number can be any positive,
  1304. non-zero integer.
  1305. </description>
  1306. </property>
  1307. <property>
  1308. <name>nfs.server.port</name>
  1309. <value>2049</value>
  1310. <description>
  1311. Specify the port number used by Hadoop NFS.
  1312. </description>
  1313. </property>
  1314. <property>
  1315. <name>nfs.mountd.port</name>
  1316. <value>4242</value>
  1317. <description>
  1318. Specify the port number used by Hadoop mount daemon.
  1319. </description>
  1320. </property>
  1321. <property>
  1322. <name>nfs.dump.dir</name>
  1323. <value>/tmp/.hdfs-nfs</value>
  1324. <description>
  1325. This directory is used to temporarily save out-of-order writes before
  1326. writing to HDFS. For each file, the out-of-order writes are dumped after
  1327. they are accumulated to exceed certain threshold (e.g., 1MB) in memory.
  1328. One needs to make sure the directory has enough space.
  1329. </description>
  1330. </property>
  1331. <property>
  1332. <name>nfs.rtmax</name>
  1333. <value>1048576</value>
  1334. <description>This is the maximum size in bytes of a READ request
  1335. supported by the NFS gateway. If you change this, make sure you
  1336. also update the nfs mount's rsize(add rsize= # of bytes to the
  1337. mount directive).
  1338. </description>
  1339. </property>
  1340. <property>
  1341. <name>nfs.wtmax</name>
  1342. <value>1048576</value>
  1343. <description>This is the maximum size in bytes of a WRITE request
  1344. supported by the NFS gateway. If you change this, make sure you
  1345. also update the nfs mount's wsize(add wsize= # of bytes to the
  1346. mount directive).
  1347. </description>
  1348. </property>
  1349. <property>
  1350. <name>nfs.keytab.file</name>
  1351. <value></value>
  1352. <description>
  1353. *Note*: Advanced property. Change with caution.
  1354. This is the path to the keytab file for the hdfs-nfs gateway.
  1355. This is required when the cluster is kerberized.
  1356. </description>
  1357. </property>
  1358. <property>
  1359. <name>nfs.kerberos.principal</name>
  1360. <value></value>
  1361. <description>
  1362. *Note*: Advanced property. Change with caution.
  1363. This is the name of the kerberos principal. This is required when
  1364. the cluster is kerberized.It must be of this format:
  1365. nfs-gateway-user/nfs-gateway-host@kerberos-realm
  1366. </description>
  1367. </property>
  1368. <property>
  1369. <name>nfs.allow.insecure.ports</name>
  1370. <value>true</value>
  1371. <description>
  1372. When set to false, client connections originating from unprivileged ports
  1373. (those above 1023) will be rejected. This is to ensure that clients
  1374. connecting to this NFS Gateway must have had root privilege on the machine
  1375. where they're connecting from.
  1376. </description>
  1377. </property>
  1378. <property>
  1379. <name>hadoop.fuse.connection.timeout</name>
  1380. <value>300</value>
  1381. <description>
  1382. The minimum number of seconds that we'll cache libhdfs connection objects
  1383. in fuse_dfs. Lower values will result in lower memory consumption; higher
  1384. values may speed up access by avoiding the overhead of creating new
  1385. connection objects.
  1386. </description>
  1387. </property>
  1388. <property>
  1389. <name>hadoop.fuse.timer.period</name>
  1390. <value>5</value>
  1391. <description>
  1392. The number of seconds between cache expiry checks in fuse_dfs. Lower values
  1393. will result in fuse_dfs noticing changes to Kerberos ticket caches more
  1394. quickly.
  1395. </description>
  1396. </property>
  1397. <property>
  1398. <name>dfs.namenode.metrics.logger.period.seconds</name>
  1399. <value>600</value>
  1400. <description>
  1401. This setting controls how frequently the NameNode logs its metrics. The
  1402. logging configuration must also define one or more appenders for
  1403. NameNodeMetricsLog for the metrics to be logged.
  1404. NameNode metrics logging is disabled if this value is set to zero or
  1405. less than zero.
  1406. </description>
  1407. </property>
  1408. <property>
  1409. <name>dfs.metrics.percentiles.intervals</name>
  1410. <value></value>
  1411. <description>
  1412. Comma-delimited set of integers denoting the desired rollover intervals
  1413. (in seconds) for percentile latency metrics on the Namenode and Datanode.
  1414. By default, percentile latency metrics are disabled.
  1415. </description>
  1416. </property>
  1417. <property>
  1418. <name>hadoop.user.group.metrics.percentiles.intervals</name>
  1419. <value></value>
  1420. <description>
  1421. A comma-separated list of the granularity in seconds for the metrics
  1422. which describe the 50/75/90/95/99th percentile latency for group resolution
  1423. in milliseconds.
  1424. By default, percentile latency metrics are disabled.
  1425. </description>
  1426. </property>
  1427. <property>
  1428. <name>dfs.encrypt.data.transfer</name>
  1429. <value>false</value>
  1430. <description>
  1431. Whether or not actual block data that is read/written from/to HDFS should
  1432. be encrypted on the wire. This only needs to be set on the NN and DNs,
  1433. clients will deduce this automatically. It is possible to override this setting
  1434. per connection by specifying custom logic via dfs.trustedchannel.resolver.class.
  1435. </description>
  1436. </property>
  1437. <property>
  1438. <name>dfs.encrypt.data.transfer.algorithm</name>
  1439. <value></value>
  1440. <description>
  1441. This value may be set to either "3des" or "rc4". If nothing is set, then
  1442. the configured JCE default on the system is used (usually 3DES.) It is
  1443. widely believed that 3DES is more cryptographically secure, but RC4 is
  1444. substantially faster.
  1445. Note that if AES is supported by both the client and server then this
  1446. encryption algorithm will only be used to initially transfer keys for AES.
  1447. (See dfs.encrypt.data.transfer.cipher.suites.)
  1448. </description>
  1449. </property>
  1450. <property>
  1451. <name>dfs.encrypt.data.transfer.cipher.suites</name>
  1452. <value></value>
  1453. <description>
  1454. This value may be either undefined or AES/CTR/NoPadding. If defined, then
  1455. dfs.encrypt.data.transfer uses the specified cipher suite for data
  1456. encryption. If not defined, then only the algorithm specified in
  1457. dfs.encrypt.data.transfer.algorithm is used. By default, the property is
  1458. not defined.
  1459. </description>
  1460. </property>
  1461. <property>
  1462. <name>dfs.encrypt.data.transfer.cipher.key.bitlength</name>
  1463. <value>128</value>
  1464. <description>
  1465. The key bitlength negotiated by dfsclient and datanode for encryption.
  1466. This value may be set to either 128, 192 or 256.
  1467. </description>
  1468. </property>
  1469. <property>
  1470. <name>dfs.trustedchannel.resolver.class</name>
  1471. <value></value>
  1472. <description>
  1473. TrustedChannelResolver is used to determine whether a channel
  1474. is trusted for plain data transfer. The TrustedChannelResolver is
  1475. invoked on both client and server side. If the resolver indicates
  1476. that the channel is trusted, then the data transfer will not be
  1477. encrypted even if dfs.encrypt.data.transfer is set to true. The
  1478. default implementation returns false indicating that the channel
  1479. is not trusted.
  1480. </description>
  1481. </property>
  1482. <property>
  1483. <name>dfs.data.transfer.protection</name>
  1484. <value></value>
  1485. <description>
  1486. A comma-separated list of SASL protection values used for secured
  1487. connections to the DataNode when reading or writing block data. Possible
  1488. values are authentication, integrity and privacy. authentication means
  1489. authentication only and no integrity or privacy; integrity implies
  1490. authentication and integrity are enabled; and privacy implies all of
  1491. authentication, integrity and privacy are enabled. If
  1492. dfs.encrypt.data.transfer is set to true, then it supersedes the setting for
  1493. dfs.data.transfer.protection and enforces that all connections must use a
  1494. specialized encrypted SASL handshake. This property is ignored for
  1495. connections to a DataNode listening on a privileged port. In this case, it
  1496. is assumed that the use of a privileged port establishes sufficient trust.
  1497. </description>
  1498. </property>
  1499. <property>
  1500. <name>dfs.data.transfer.saslproperties.resolver.class</name>
  1501. <value></value>
  1502. <description>
  1503. SaslPropertiesResolver used to resolve the QOP used for a connection to the
  1504. DataNode when reading or writing block data. If not specified, the value of
  1505. hadoop.security.saslproperties.resolver.class is used as the default value.
  1506. </description>
  1507. </property>
  1508. <property>
  1509. <name>dfs.datanode.hdfs-blocks-metadata.enabled</name>
  1510. <value>false</value>
  1511. <description>
  1512. Boolean which enables backend datanode-side support for the experimental DistributedFileSystem#getFileVBlockStorageLocations API.
  1513. </description>
  1514. </property>
  1515. <property>
  1516. <name>dfs.client.file-block-storage-locations.num-threads</name>
  1517. <value>10</value>
  1518. <description>
  1519. Number of threads used for making parallel RPCs in DistributedFileSystem#getFileBlockStorageLocations().
  1520. </description>
  1521. </property>
  1522. <property>
  1523. <name>dfs.client.file-block-storage-locations.timeout.millis</name>
  1524. <value>1000</value>
  1525. <description>
  1526. Timeout (in milliseconds) for the parallel RPCs made in DistributedFileSystem#getFileBlockStorageLocations().
  1527. </description>
  1528. </property>
  1529. <property>
  1530. <name>dfs.journalnode.rpc-address</name>
  1531. <value>0.0.0.0:8485</value>
  1532. <description>
  1533. The JournalNode RPC server address and port.
  1534. </description>
  1535. </property>
  1536. <property>
  1537. <name>dfs.journalnode.http-address</name>
  1538. <value>0.0.0.0:8480</value>
  1539. <description>
  1540. The address and port the JournalNode HTTP server listens on.
  1541. If the port is 0 then the server will start on a free port.
  1542. </description>
  1543. </property>
  1544. <property>
  1545. <name>dfs.journalnode.https-address</name>
  1546. <value>0.0.0.0:8481</value>
  1547. <description>
  1548. The address and port the JournalNode HTTPS server listens on.
  1549. If the port is 0 then the server will start on a free port.
  1550. </description>
  1551. </property>
  1552. <property>
  1553. <name>dfs.namenode.audit.loggers</name>
  1554. <value>default</value>
  1555. <description>
  1556. List of classes implementing audit loggers that will receive audit events.
  1557. These should be implementations of org.apache.hadoop.hdfs.server.namenode.AuditLogger.
  1558. The special value "default" can be used to reference the default audit
  1559. logger, which uses the configured log system. Installing custom audit loggers
  1560. may affect the performance and stability of the NameNode. Refer to the custom
  1561. logger's documentation for more details.
  1562. </description>
  1563. </property>
  1564. <property>
  1565. <name>dfs.datanode.available-space-volume-choosing-policy.balanced-space-threshold</name>
  1566. <value>10737418240</value> <!-- 10 GB -->
  1567. <description>
  1568. Only used when the dfs.datanode.fsdataset.volume.choosing.policy is set to
  1569. org.apache.hadoop.hdfs.server.datanode.fsdataset.AvailableSpaceVolumeChoosingPolicy.
  1570. This setting controls how much DN volumes are allowed to differ in terms of
  1571. bytes of free disk space before they are considered imbalanced. If the free
  1572. space of all the volumes are within this range of each other, the volumes
  1573. will be considered balanced and block assignments will be done on a pure
  1574. round robin basis.
  1575. </description>
  1576. </property>
  1577. <property>
  1578. <name>dfs.datanode.available-space-volume-choosing-policy.balanced-space-preference-fraction</name>
  1579. <value>0.75f</value>
  1580. <description>
  1581. Only used when the dfs.datanode.fsdataset.volume.choosing.policy is set to
  1582. org.apache.hadoop.hdfs.server.datanode.fsdataset.AvailableSpaceVolumeChoosingPolicy.
  1583. This setting controls what percentage of new block allocations will be sent
  1584. to volumes with more available disk space than others. This setting should
  1585. be in the range 0.0 - 1.0, though in practice 0.5 - 1.0, since there should
  1586. be no reason to prefer that volumes with less available disk space receive
  1587. more block allocations.
  1588. </description>
  1589. </property>
  1590. <property>
  1591. <name>dfs.namenode.edits.noeditlogchannelflush</name>
  1592. <value>false</value>
  1593. <description>
  1594. Specifies whether to flush edit log file channel. When set, expensive
  1595. FileChannel#force calls are skipped and synchronous disk writes are
  1596. enabled instead by opening the edit log file with RandomAccessFile("rws")
  1597. flags. This can significantly improve the performance of edit log writes
  1598. on the Windows platform.
  1599. Note that the behavior of the "rws" flags is platform and hardware specific
  1600. and might not provide the same level of guarantees as FileChannel#force.
  1601. For example, the write will skip the disk-cache on SAS and SCSI devices
  1602. while it might not on SATA devices. This is an expert level setting,
  1603. change with caution.
  1604. </description>
  1605. </property>
  1606. <property>
  1607. <name>dfs.client.cache.drop.behind.writes</name>
  1608. <value></value>
  1609. <description>
  1610. Just like dfs.datanode.drop.cache.behind.writes, this setting causes the
  1611. page cache to be dropped behind HDFS writes, potentially freeing up more
  1612. memory for other uses. Unlike dfs.datanode.drop.cache.behind.writes, this
  1613. is a client-side setting rather than a setting for the entire datanode.
  1614. If present, this setting will override the DataNode default.
  1615. If the native libraries are not available to the DataNode, this
  1616. configuration has no effect.
  1617. </description>
  1618. </property>
  1619. <property>
  1620. <name>dfs.client.cache.drop.behind.reads</name>
  1621. <value></value>
  1622. <description>
  1623. Just like dfs.datanode.drop.cache.behind.reads, this setting causes the
  1624. page cache to be dropped behind HDFS reads, potentially freeing up more
  1625. memory for other uses. Unlike dfs.datanode.drop.cache.behind.reads, this
  1626. is a client-side setting rather than a setting for the entire datanode. If
  1627. present, this setting will override the DataNode default.
  1628. If the native libraries are not available to the DataNode, this
  1629. configuration has no effect.
  1630. </description>
  1631. </property>
  1632. <property>
  1633. <name>dfs.client.cache.readahead</name>
  1634. <value></value>
  1635. <description>
  1636. When using remote reads, this setting causes the datanode to
  1637. read ahead in the block file using posix_fadvise, potentially decreasing
  1638. I/O wait times. Unlike dfs.datanode.readahead.bytes, this is a client-side
  1639. setting rather than a setting for the entire datanode. If present, this
  1640. setting will override the DataNode default.
  1641. When using local reads, this setting determines how much readahead we do in
  1642. BlockReaderLocal.
  1643. If the native libraries are not available to the DataNode, this
  1644. configuration has no effect.
  1645. </description>
  1646. </property>
  1647. <property>
  1648. <name>dfs.namenode.enable.retrycache</name>
  1649. <value>true</value>
  1650. <description>
  1651. This enables the retry cache on the namenode. Namenode tracks for
  1652. non-idempotent requests the corresponding response. If a client retries the
  1653. request, the response from the retry cache is sent. Such operations
  1654. are tagged with annotation @AtMostOnce in namenode protocols. It is
  1655. recommended that this flag be set to true. Setting it to false, will result
  1656. in clients getting failure responses to retried request. This flag must
  1657. be enabled in HA setup for transparent fail-overs.
  1658. The entries in the cache have expiration time configurable
  1659. using dfs.namenode.retrycache.expirytime.millis.
  1660. </description>
  1661. </property>
  1662. <property>
  1663. <name>dfs.namenode.retrycache.expirytime.millis</name>
  1664. <value>600000</value>
  1665. <description>
  1666. The time for which retry cache entries are retained.
  1667. </description>
  1668. </property>
  1669. <property>
  1670. <name>dfs.namenode.retrycache.heap.percent</name>
  1671. <value>0.03f</value>
  1672. <description>
  1673. This parameter configures the heap size allocated for retry cache
  1674. (excluding the response cached). This corresponds to approximately
  1675. 4096 entries for every 64MB of namenode process java heap size.
  1676. Assuming retry cache entry expiration time (configured using
  1677. dfs.namenode.retrycache.expirytime.millis) of 10 minutes, this
  1678. enables retry cache to support 7 operations per second sustained
  1679. for 10 minutes. As the heap size is increased, the operation rate
  1680. linearly increases.
  1681. </description>
  1682. </property>
  1683. <property>
  1684. <name>dfs.client.mmap.enabled</name>
  1685. <value>true</value>
  1686. <description>
  1687. If this is set to false, the client won't attempt to perform memory-mapped reads.
  1688. </description>
  1689. </property>
  1690. <property>
  1691. <name>dfs.client.mmap.cache.size</name>
  1692. <value>256</value>
  1693. <description>
  1694. When zero-copy reads are used, the DFSClient keeps a cache of recently used
  1695. memory mapped regions. This parameter controls the maximum number of
  1696. entries that we will keep in that cache.
  1697. The larger this number is, the more file descriptors we will potentially
  1698. use for memory-mapped files. mmaped files also use virtual address space.
  1699. You may need to increase your ulimit virtual address space limits before
  1700. increasing the client mmap cache size.
  1701. Note that you can still do zero-copy reads when this size is set to 0.
  1702. </description>
  1703. </property>
  1704. <property>
  1705. <name>dfs.client.mmap.cache.timeout.ms</name>
  1706. <value>3600000</value>
  1707. <description>
  1708. The minimum length of time that we will keep an mmap entry in the cache
  1709. between uses. If an entry is in the cache longer than this, and nobody
  1710. uses it, it will be removed by a background thread.
  1711. </description>
  1712. </property>
  1713. <property>
  1714. <name>dfs.client.mmap.retry.timeout.ms</name>
  1715. <value>300000</value>
  1716. <description>
  1717. The minimum amount of time that we will wait before retrying a failed mmap
  1718. operation.
  1719. </description>
  1720. </property>
  1721. <property>
  1722. <name>dfs.client.short.circuit.replica.stale.threshold.ms</name>
  1723. <value>1800000</value>
  1724. <description>
  1725. The maximum amount of time that we will consider a short-circuit replica to
  1726. be valid, if there is no communication from the DataNode. After this time
  1727. has elapsed, we will re-fetch the short-circuit replica even if it is in
  1728. the cache.
  1729. </description>
  1730. </property>
  1731. <property>
  1732. <name>dfs.namenode.path.based.cache.block.map.allocation.percent</name>
  1733. <value>0.25</value>
  1734. <description>
  1735. The percentage of the Java heap which we will allocate to the cached blocks
  1736. map. The cached blocks map is a hash map which uses chained hashing.
  1737. Smaller maps may be accessed more slowly if the number of cached blocks is
  1738. large; larger maps will consume more memory.
  1739. </description>
  1740. </property>
  1741. <property>
  1742. <name>dfs.datanode.max.locked.memory</name>
  1743. <value>0</value>
  1744. <description>
  1745. The amount of memory in bytes to use for caching of block replicas in
  1746. memory on the datanode. The datanode's maximum locked memory soft ulimit
  1747. (RLIMIT_MEMLOCK) must be set to at least this value, else the datanode
  1748. will abort on startup.
  1749. By default, this parameter is set to 0, which disables in-memory caching.
  1750. If the native libraries are not available to the DataNode, this
  1751. configuration has no effect.
  1752. </description>
  1753. </property>
  1754. <property>
  1755. <name>dfs.namenode.list.cache.directives.num.responses</name>
  1756. <value>100</value>
  1757. <description>
  1758. This value controls the number of cache directives that the NameNode will
  1759. send over the wire in response to a listDirectives RPC.
  1760. </description>
  1761. </property>
  1762. <property>
  1763. <name>dfs.namenode.list.cache.pools.num.responses</name>
  1764. <value>100</value>
  1765. <description>
  1766. This value controls the number of cache pools that the NameNode will
  1767. send over the wire in response to a listPools RPC.
  1768. </description>
  1769. </property>
  1770. <property>
  1771. <name>dfs.namenode.path.based.cache.refresh.interval.ms</name>
  1772. <value>30000</value>
  1773. <description>
  1774. The amount of milliseconds between subsequent path cache rescans. Path
  1775. cache rescans are when we calculate which blocks should be cached, and on
  1776. what datanodes.
  1777. By default, this parameter is set to 30 seconds.
  1778. </description>
  1779. </property>
  1780. <property>
  1781. <name>dfs.namenode.path.based.cache.retry.interval.ms</name>
  1782. <value>30000</value>
  1783. <description>
  1784. When the NameNode needs to uncache something that is cached, or cache
  1785. something that is not cached, it must direct the DataNodes to do so by
  1786. sending a DNA_CACHE or DNA_UNCACHE command in response to a DataNode
  1787. heartbeat. This parameter controls how frequently the NameNode will
  1788. resend these commands.
  1789. </description>
  1790. </property>
  1791. <property>
  1792. <name>dfs.datanode.fsdatasetcache.max.threads.per.volume</name>
  1793. <value>4</value>
  1794. <description>
  1795. The maximum number of threads per volume to use for caching new data
  1796. on the datanode. These threads consume both I/O and CPU. This can affect
  1797. normal datanode operations.
  1798. </description>
  1799. </property>
  1800. <property>
  1801. <name>dfs.cachereport.intervalMsec</name>
  1802. <value>10000</value>
  1803. <description>
  1804. Determines cache reporting interval in milliseconds. After this amount of
  1805. time, the DataNode sends a full report of its cache state to the NameNode.
  1806. The NameNode uses the cache report to update its map of cached blocks to
  1807. DataNode locations.
  1808. This configuration has no effect if in-memory caching has been disabled by
  1809. setting dfs.datanode.max.locked.memory to 0 (which is the default).
  1810. If the native libraries are not available to the DataNode, this
  1811. configuration has no effect.
  1812. </description>
  1813. </property>
  1814. <property>
  1815. <name>dfs.namenode.edit.log.autoroll.multiplier.threshold</name>
  1816. <value>2.0</value>
  1817. <description>
  1818. Determines when an active namenode will roll its own edit log.
  1819. The actual threshold (in number of edits) is determined by multiplying
  1820. this value by dfs.namenode.checkpoint.txns.
  1821. This prevents extremely large edit files from accumulating on the active
  1822. namenode, which can cause timeouts during namenode startup and pose an
  1823. administrative hassle. This behavior is intended as a failsafe for when
  1824. the standby or secondary namenode fail to roll the edit log by the normal
  1825. checkpoint threshold.
  1826. </description>
  1827. </property>
  1828. <property>
  1829. <name>dfs.namenode.edit.log.autoroll.check.interval.ms</name>
  1830. <value>300000</value>
  1831. <description>
  1832. How often an active namenode will check if it needs to roll its edit log,
  1833. in milliseconds.
  1834. </description>
  1835. </property>
  1836. <property>
  1837. <name>dfs.webhdfs.user.provider.user.pattern</name>
  1838. <value>^[A-Za-z_][A-Za-z0-9._-]*[$]?$</value>
  1839. <description>
  1840. Valid pattern for user and group names for webhdfs, it must be a valid java regex.
  1841. </description>
  1842. </property>
  1843. <property>
  1844. <name>dfs.client.context</name>
  1845. <value>default</value>
  1846. <description>
  1847. The name of the DFSClient context that we should use. Clients that share
  1848. a context share a socket cache and short-circuit cache, among other things.
  1849. You should only change this if you don't want to share with another set of
  1850. threads.
  1851. </description>
  1852. </property>
  1853. <property>
  1854. <name>dfs.client.read.shortcircuit</name>
  1855. <value>false</value>
  1856. <description>
  1857. This configuration parameter turns on short-circuit local reads.
  1858. </description>
  1859. </property>
  1860. <property>
  1861. <name>dfs.domain.socket.path</name>
  1862. <value></value>
  1863. <description>
  1864. Optional. This is a path to a UNIX domain socket that will be used for
  1865. communication between the DataNode and local HDFS clients.
  1866. If the string "_PORT" is present in this path, it will be replaced by the
  1867. TCP port of the DataNode.
  1868. </description>
  1869. </property>
  1870. <property>
  1871. <name>dfs.client.read.shortcircuit.skip.checksum</name>
  1872. <value>false</value>
  1873. <description>
  1874. If this configuration parameter is set,
  1875. short-circuit local reads will skip checksums.
  1876. This is normally not recommended,
  1877. but it may be useful for special setups.
  1878. You might consider using this
  1879. if you are doing your own checksumming outside of HDFS.
  1880. </description>
  1881. </property>
  1882. <property>
  1883. <name>dfs.client.read.shortcircuit.streams.cache.size</name>
  1884. <value>256</value>
  1885. <description>
  1886. The DFSClient maintains a cache of recently opened file descriptors.
  1887. This parameter controls the maximum number of file descriptors in the cache.
  1888. Setting this higher will use more file descriptors,
  1889. but potentially provide better performance on workloads
  1890. involving lots of seeks.
  1891. </description>
  1892. </property>
  1893. <property>
  1894. <name>dfs.client.read.shortcircuit.streams.cache.expiry.ms</name>
  1895. <value>300000</value>
  1896. <description>
  1897. This controls the minimum amount of time
  1898. file descriptors need to sit in the client cache context
  1899. before they can be closed for being inactive for too long.
  1900. </description>
  1901. </property>
  1902. <property>
  1903. <name>dfs.datanode.shared.file.descriptor.paths</name>
  1904. <value>/dev/shm,/tmp</value>
  1905. <description>
  1906. Comma separated paths to the directory on which
  1907. shared memory segments are created.
  1908. The client and the DataNode exchange information via
  1909. this shared memory segment.
  1910. It tries paths in order until creation of shared memory segment succeeds.
  1911. </description>
  1912. </property>
  1913. <property>
  1914. <name>dfs.namenode.audit.log.debug.cmdlist</name>
  1915. <value></value>
  1916. <description>
  1917. A comma separated list of NameNode commands that are written to the HDFS
  1918. namenode audit log only if the audit log level is debug.
  1919. </description>
  1920. </property>
  1921. <property>
  1922. <name>dfs.client.use.legacy.blockreader.local</name>
  1923. <value>false</value>
  1924. <description>
  1925. Legacy short-circuit reader implementation based on HDFS-2246 is used
  1926. if this configuration parameter is true.
  1927. This is for the platforms other than Linux
  1928. where the new implementation based on HDFS-347 is not available.
  1929. </description>
  1930. </property>
  1931. <property>
  1932. <name>dfs.block.local-path-access.user</name>
  1933. <value></value>
  1934. <description>
  1935. Comma separated list of the users allowd to open block files
  1936. on legacy short-circuit local read.
  1937. </description>
  1938. </property>
  1939. <property>
  1940. <name>dfs.client.domain.socket.data.traffic</name>
  1941. <value>false</value>
  1942. <description>
  1943. This control whether we will try to pass normal data traffic
  1944. over UNIX domain socket rather than over TCP socket
  1945. on node-local data transfer.
  1946. This is currently experimental and turned off by default.
  1947. </description>
  1948. </property>
  1949. <property>
  1950. <name>dfs.namenode.reject-unresolved-dn-topology-mapping</name>
  1951. <value>false</value>
  1952. <description>
  1953. If the value is set to true, then namenode will reject datanode
  1954. registration if the topology mapping for a datanode is not resolved and
  1955. NULL is returned (script defined by net.topology.script.file.name fails
  1956. to execute). Otherwise, datanode will be registered and the default rack
  1957. will be assigned as the topology path. Topology paths are important for
  1958. data resiliency, since they define fault domains. Thus it may be unwanted
  1959. behavior to allow datanode registration with the default rack if the
  1960. resolving topology failed.
  1961. </description>
  1962. </property>
  1963. <property>
  1964. <name>dfs.namenode.xattrs.enabled</name>
  1965. <value>true</value>
  1966. <description>
  1967. Whether support for extended attributes is enabled on the NameNode.
  1968. </description>
  1969. </property>
  1970. <property>
  1971. <name>dfs.namenode.fs-limits.max-xattrs-per-inode</name>
  1972. <value>32</value>
  1973. <description>
  1974. Maximum number of extended attributes per inode.
  1975. </description>
  1976. </property>
  1977. <property>
  1978. <name>dfs.namenode.fs-limits.max-xattr-size</name>
  1979. <value>16384</value>
  1980. <description>
  1981. The maximum combined size of the name and value of an extended attribute in bytes.
  1982. </description>
  1983. </property>
  1984. <property>
  1985. <name>dfs.client.slow.io.warning.threshold.ms</name>
  1986. <value>30000</value>
  1987. <description>The threshold in milliseconds at which we will log a slow
  1988. io warning in a dfsclient. By default, this parameter is set to 30000
  1989. milliseconds (30 seconds).
  1990. </description>
  1991. </property>
  1992. <property>
  1993. <name>dfs.datanode.slow.io.warning.threshold.ms</name>
  1994. <value>300</value>
  1995. <description>The threshold in milliseconds at which we will log a slow
  1996. io warning in a datanode. By default, this parameter is set to 300
  1997. milliseconds.
  1998. </description>
  1999. </property>
  2000. <property>
  2001. <name>dfs.namenode.startup.delay.block.deletion.sec</name>
  2002. <value>0</value>
  2003. <description>The delay in seconds at which we will pause the blocks deletion
  2004. after Namenode startup. By default it's disabled.
  2005. In the case a directory has large number of directories and files are
  2006. deleted, suggested delay is one hour to give the administrator enough time
  2007. to notice large number of pending deletion blocks and take corrective
  2008. action.
  2009. </description>
  2010. </property>
  2011. <property>
  2012. <name>dfs.datanode.block.id.layout.upgrade.threads</name>
  2013. <value>12</value>
  2014. <description>The number of threads to use when creating hard links from
  2015. current to previous blocks during upgrade of a DataNode to block ID-based
  2016. block layout (see HDFS-6482 for details on the layout).</description>
  2017. </property>
  2018. <property>
  2019. <name>dfs.namenode.list.encryption.zones.num.responses</name>
  2020. <value>100</value>
  2021. <description>When listing encryption zones, the maximum number of zones
  2022. that will be returned in a batch. Fetching the list incrementally in
  2023. batches improves namenode performance.
  2024. </description>
  2025. </property>
  2026. <property>
  2027. <name>dfs.namenode.inotify.max.events.per.rpc</name>
  2028. <value>1000</value>
  2029. <description>Maximum number of events that will be sent to an inotify client
  2030. in a single RPC response. The default value attempts to amortize away
  2031. the overhead for this RPC while avoiding huge memory requirements for the
  2032. client and NameNode (1000 events should consume no more than 1 MB.)
  2033. </description>
  2034. </property>
  2035. <property>
  2036. <name>dfs.user.home.dir.prefix</name>
  2037. <value>/user</value>
  2038. <description>The directory to prepend to user name to get the user's
  2039. home direcotry.
  2040. </description>
  2041. </property>
  2042. <property>
  2043. <name>dfs.datanode.cache.revocation.timeout.ms</name>
  2044. <value>900000</value>
  2045. <description>When the DFSClient reads from a block file which the DataNode is
  2046. caching, the DFSClient can skip verifying checksums. The DataNode will
  2047. keep the block file in cache until the client is done. If the client takes
  2048. an unusually long time, though, the DataNode may need to evict the block
  2049. file from the cache anyway. This value controls how long the DataNode will
  2050. wait for the client to release a replica that it is reading without
  2051. checksums.
  2052. </description>
  2053. </property>
  2054. <property>
  2055. <name>dfs.datanode.cache.revocation.polling.ms</name>
  2056. <value>500</value>
  2057. <description>How often the DataNode should poll to see if the clients have
  2058. stopped using a replica that the DataNode wants to uncache.
  2059. </description>
  2060. </property>
  2061. <property>
  2062. <name>dfs.encryption.key.provider.uri</name>
  2063. <description>
  2064. The KeyProvider to use when interacting with encryption keys used
  2065. when reading and writing to an encryption zone.
  2066. </description>
  2067. </property>
  2068. <property>
  2069. <name>dfs.storage.policy.enabled</name>
  2070. <value>true</value>
  2071. <description>
  2072. Allow users to change the storage policy on files and directories.
  2073. </description>
  2074. </property>
  2075. <property>
  2076. <name>dfs.namenode.legacy-oiv-image.dir</name>
  2077. <value></value>
  2078. <description>Determines where to save the namespace in the old fsimage format
  2079. during checkpointing by standby NameNode or SecondaryNameNode. Users can
  2080. dump the contents of the old format fsimage by oiv_legacy command. If
  2081. the value is not specified, old format fsimage will not be saved in
  2082. checkpoint.
  2083. </description>
  2084. </property>
  2085. <property>
  2086. <name>dfs.namenode.top.enabled</name>
  2087. <value>true</value>
  2088. <description>Enable nntop: reporting top users on namenode
  2089. </description>
  2090. </property>
  2091. <property>
  2092. <name>dfs.namenode.top.window.num.buckets</name>
  2093. <value>10</value>
  2094. <description>Number of buckets in the rolling window implementation of nntop
  2095. </description>
  2096. </property>
  2097. <property>
  2098. <name>dfs.namenode.top.num.users</name>
  2099. <value>10</value>
  2100. <description>Number of top users returned by the top tool
  2101. </description>
  2102. </property>
  2103. <property>
  2104. <name>dfs.namenode.top.windows.minutes</name>
  2105. <value>1,5,25</value>
  2106. <description>comma separated list of nntop reporting periods in minutes
  2107. </description>
  2108. </property>
  2109. <property>
  2110. <name>dfs.namenode.blocks.per.postponedblocks.rescan</name>
  2111. <value>10000</value>
  2112. <description>Number of blocks to rescan for each iteration of
  2113. postponedMisreplicatedBlocks.
  2114. </description>
  2115. </property>
  2116. <property>
  2117. <name>dfs.datanode.block-pinning.enabled</name>
  2118. <value>false</value>
  2119. <description>Whether pin blocks on favored DataNode.</description>
  2120. </property>
  2121. <property>
  2122. <name>dfs.client.block.write.locateFollowingBlock.initial.delay.ms</name>
  2123. <value>400</value>
  2124. <description>The initial delay (unit is ms) for locateFollowingBlock,
  2125. the delay time will increase exponentially(double) for each retry.
  2126. </description>
  2127. </property>
  2128. <property>
  2129. <name>dfs.htrace.spanreceiver.classes</name>
  2130. <value></value>
  2131. <description>
  2132. The class name of the HTrace SpanReceiver for the NameNode and DataNode.
  2133. </description>
  2134. </property>
  2135. <property>
  2136. <name>dfs.client.htrace.spanreceiver.classes</name>
  2137. <value></value>
  2138. <description>
  2139. The class name of the HTrace SpanReceiver for the HDFS client. You do not
  2140. need to enable this if your client program has been modified to use HTrace.
  2141. </description>
  2142. </property>
  2143. <property>
  2144. <name>dfs.ha.zkfc.nn.http.timeout.ms</name>
  2145. <value>20000</value>
  2146. <description>
  2147. The HTTP connection and read timeout value (unit is ms ) when DFS ZKFC
  2148. tries to get local NN thread dump after local NN becomes
  2149. SERVICE_NOT_RESPONDING or SERVICE_UNHEALTHY.
  2150. If it is set to zero, DFS ZKFC won't get local NN thread dump.
  2151. </description>
  2152. </property>
  2153. </configuration>