hdfs-default.xml 70 KB

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