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