hdfs-default.xml 188 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526
  1. <?xml version="1.0"?>
  2. <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
  3. <!--
  4. Licensed to the Apache Software Foundation (ASF) under one or more
  5. contributor license agreements. See the NOTICE file distributed with
  6. this work for additional information regarding copyright ownership.
  7. The ASF licenses this file to You under the Apache License, Version 2.0
  8. (the "License"); you may not use this file except in compliance with
  9. the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <!-- Do not modify this file directly. Instead, copy entries that you -->
  18. <!-- wish to modify from this file into hdfs-site.xml and change them -->
  19. <!-- there. If hdfs-site.xml does not already exist, create it. -->
  20. <configuration>
  21. <property>
  22. <name>hadoop.hdfs.configuration.version</name>
  23. <value>1</value>
  24. <description>version of this configuration file</description>
  25. </property>
  26. <property>
  27. <name>dfs.namenode.rpc-address</name>
  28. <value></value>
  29. <description>
  30. RPC address that handles all clients requests. In the case of HA/Federation where multiple namenodes exist,
  31. the name service id is added to the name e.g. dfs.namenode.rpc-address.ns1
  32. dfs.namenode.rpc-address.EXAMPLENAMESERVICE
  33. The value of this property will take the form of nn-host1:rpc-port. The NameNode's default RPC port is 8020.
  34. </description>
  35. </property>
  36. <property>
  37. <name>dfs.namenode.rpc-bind-host</name>
  38. <value></value>
  39. <description>
  40. The actual address the RPC server will bind to. If this optional address is
  41. set, it overrides only the hostname portion of dfs.namenode.rpc-address.
  42. It can also be specified per name node or name service for HA/Federation.
  43. This is useful for making the name node listen on all interfaces by
  44. setting it to 0.0.0.0.
  45. </description>
  46. </property>
  47. <property>
  48. <name>dfs.namenode.servicerpc-address</name>
  49. <value></value>
  50. <description>
  51. RPC address for HDFS Services communication. BackupNode, Datanodes and all other services should be
  52. connecting to this address if it is configured. In the case of HA/Federation where multiple namenodes exist,
  53. the name service id is added to the name e.g. dfs.namenode.servicerpc-address.ns1
  54. dfs.namenode.rpc-address.EXAMPLENAMESERVICE
  55. The value of this property will take the form of nn-host1:rpc-port.
  56. If the value of this property is unset the value of dfs.namenode.rpc-address will be used as the default.
  57. </description>
  58. </property>
  59. <property>
  60. <name>dfs.namenode.servicerpc-bind-host</name>
  61. <value></value>
  62. <description>
  63. The actual address the service RPC server will bind to. If this optional address is
  64. set, it overrides only the hostname portion of dfs.namenode.servicerpc-address.
  65. It can also be specified per name node or name service for HA/Federation.
  66. This is useful for making the name node listen on all interfaces by
  67. setting it to 0.0.0.0.
  68. </description>
  69. </property>
  70. <property>
  71. <name>dfs.namenode.lifeline.rpc-address</name>
  72. <value></value>
  73. <description>
  74. NameNode RPC lifeline address. This is an optional separate RPC address
  75. that can be used to isolate health checks and liveness to protect against
  76. resource exhaustion in the main RPC handler pool. In the case of
  77. HA/Federation where multiple NameNodes exist, the name service ID is added
  78. to the name e.g. dfs.namenode.lifeline.rpc-address.ns1. The value of this
  79. property will take the form of nn-host1:rpc-port. If this property is not
  80. defined, then the NameNode will not start a lifeline RPC server. By
  81. default, the property is not defined.
  82. </description>
  83. </property>
  84. <property>
  85. <name>dfs.namenode.lifeline.rpc-bind-host</name>
  86. <value></value>
  87. <description>
  88. The actual address the lifeline RPC server will bind to. If this optional
  89. address is set, it overrides only the hostname portion of
  90. dfs.namenode.lifeline.rpc-address. It can also be specified per name node
  91. or name service for HA/Federation. This is useful for making the name node
  92. listen on all interfaces by setting it to 0.0.0.0.
  93. </description>
  94. </property>
  95. <property>
  96. <name>dfs.namenode.secondary.http-address</name>
  97. <value>0.0.0.0:9868</value>
  98. <description>
  99. The secondary namenode http server address and port.
  100. </description>
  101. </property>
  102. <property>
  103. <name>dfs.namenode.secondary.https-address</name>
  104. <value>0.0.0.0:9869</value>
  105. <description>
  106. The secondary namenode HTTPS server address and port.
  107. </description>
  108. </property>
  109. <property>
  110. <name>dfs.datanode.address</name>
  111. <value>0.0.0.0:9866</value>
  112. <description>
  113. The datanode server address and port for data transfer.
  114. </description>
  115. </property>
  116. <property>
  117. <name>dfs.datanode.http.address</name>
  118. <value>0.0.0.0:9864</value>
  119. <description>
  120. The datanode http server address and port.
  121. </description>
  122. </property>
  123. <property>
  124. <name>dfs.datanode.ipc.address</name>
  125. <value>0.0.0.0:9867</value>
  126. <description>
  127. The datanode ipc server address and port.
  128. </description>
  129. </property>
  130. <property>
  131. <name>dfs.datanode.http.internal-proxy.port</name>
  132. <value>0</value>
  133. <description>
  134. The datanode's internal web proxy port.
  135. By default it selects a random port available in runtime.
  136. </description>
  137. </property>
  138. <property>
  139. <name>dfs.datanode.handler.count</name>
  140. <value>10</value>
  141. <description>The number of server threads for the datanode.</description>
  142. </property>
  143. <property>
  144. <name>dfs.namenode.http-address</name>
  145. <value>0.0.0.0:9870</value>
  146. <description>
  147. The address and the base port where the dfs namenode web ui will listen on.
  148. </description>
  149. </property>
  150. <property>
  151. <name>dfs.namenode.http-bind-host</name>
  152. <value></value>
  153. <description>
  154. The actual address the HTTP server will bind to. If this optional address
  155. is set, it overrides only the hostname portion of dfs.namenode.http-address.
  156. It can also be specified per name node or name service for HA/Federation.
  157. This is useful for making the name node HTTP server listen on all
  158. interfaces by setting it to 0.0.0.0.
  159. </description>
  160. </property>
  161. <property>
  162. <name>dfs.namenode.heartbeat.recheck-interval</name>
  163. <value>300000</value>
  164. <description>
  165. This time decides the interval to check for expired datanodes.
  166. With this value and dfs.heartbeat.interval, the interval of
  167. deciding the datanode is stale or not is also calculated.
  168. The unit of this configuration is millisecond.
  169. </description>
  170. </property>
  171. <property>
  172. <name>dfs.http.policy</name>
  173. <value>HTTP_ONLY</value>
  174. <description>Decide if HTTPS(SSL) is supported on HDFS
  175. This configures the HTTP endpoint for HDFS daemons:
  176. The following values are supported:
  177. - HTTP_ONLY : Service is provided only on http
  178. - HTTPS_ONLY : Service is provided only on https
  179. - HTTP_AND_HTTPS : Service is provided both on http and https
  180. </description>
  181. </property>
  182. <property>
  183. <name>dfs.client.https.need-auth</name>
  184. <value>false</value>
  185. <description>Whether SSL client certificate authentication is required
  186. </description>
  187. </property>
  188. <property>
  189. <name>dfs.client.cached.conn.retry</name>
  190. <value>3</value>
  191. <description>The number of times the HDFS client will pull a socket from the
  192. cache. Once this number is exceeded, the client will try to create a new
  193. socket.
  194. </description>
  195. </property>
  196. <property>
  197. <name>dfs.https.server.keystore.resource</name>
  198. <value>ssl-server.xml</value>
  199. <description>Resource file from which ssl server keystore
  200. information will be extracted
  201. </description>
  202. </property>
  203. <property>
  204. <name>dfs.client.https.keystore.resource</name>
  205. <value>ssl-client.xml</value>
  206. <description>Resource file from which ssl client keystore
  207. information will be extracted
  208. </description>
  209. </property>
  210. <property>
  211. <name>dfs.datanode.https.address</name>
  212. <value>0.0.0.0:9865</value>
  213. <description>The datanode secure http server address and port.</description>
  214. </property>
  215. <property>
  216. <name>dfs.namenode.https-address</name>
  217. <value>0.0.0.0:9871</value>
  218. <description>The namenode secure http server address and port.</description>
  219. </property>
  220. <property>
  221. <name>dfs.namenode.https-bind-host</name>
  222. <value></value>
  223. <description>
  224. The actual address the HTTPS server will bind to. If this optional address
  225. is set, it overrides only the hostname portion of dfs.namenode.https-address.
  226. It can also be specified per name node or name service for HA/Federation.
  227. This is useful for making the name node HTTPS server listen on all
  228. interfaces by setting it to 0.0.0.0.
  229. </description>
  230. </property>
  231. <property>
  232. <name>dfs.datanode.dns.interface</name>
  233. <value>default</value>
  234. <description>
  235. The name of the Network Interface from which a data node should
  236. report its IP address. e.g. eth2. This setting may be required for some
  237. multi-homed nodes where the DataNodes are assigned multiple hostnames
  238. and it is desirable for the DataNodes to use a non-default hostname.
  239. Prefer using hadoop.security.dns.interface over
  240. dfs.datanode.dns.interface.
  241. </description>
  242. </property>
  243. <property>
  244. <name>dfs.datanode.dns.nameserver</name>
  245. <value>default</value>
  246. <description>
  247. The host name or IP address of the name server (DNS) which a DataNode
  248. should use to determine its own host name.
  249. Prefer using hadoop.security.dns.nameserver over
  250. dfs.datanode.dns.nameserver.
  251. </description>
  252. </property>
  253. <property>
  254. <name>dfs.namenode.backup.address</name>
  255. <value>0.0.0.0:50100</value>
  256. <description>
  257. The backup node server address and port.
  258. If the port is 0 then the server will start on a free port.
  259. </description>
  260. </property>
  261. <property>
  262. <name>dfs.namenode.backup.http-address</name>
  263. <value>0.0.0.0:50105</value>
  264. <description>
  265. The backup node http server address and port.
  266. If the port is 0 then the server will start on a free port.
  267. </description>
  268. </property>
  269. <property>
  270. <name>dfs.namenode.redundancy.considerLoad</name>
  271. <value>true</value>
  272. <description>Decide if chooseTarget considers the target's load or not
  273. </description>
  274. </property>
  275. <property>
  276. <name>dfs.namenode.redundancy.considerLoad.factor</name>
  277. <value>2.0</value>
  278. <description>The factor by which a node's load can exceed the average
  279. before being rejected for writes, only if considerLoad is true.
  280. </description>
  281. </property>
  282. <property>
  283. <name>dfs.datanode.httpserver.filter.handlers</name>
  284. <value>org.apache.hadoop.hdfs.server.datanode.web.RestCsrfPreventionFilterHandler</value>
  285. <description>Comma separated list of Netty servlet-style filter handlers to inject into the Datanode WebHDFS I/O path
  286. </description>
  287. </property>
  288. <property>
  289. <name>dfs.default.chunk.view.size</name>
  290. <value>32768</value>
  291. <description>The number of bytes to view for a file on the browser.
  292. </description>
  293. </property>
  294. <property>
  295. <name>dfs.datanode.du.reserved.calculator</name>
  296. <value>org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.ReservedSpaceCalculator$ReservedSpaceCalculatorAbsolute</value>
  297. <description>Determines the class of ReservedSpaceCalculator to be used for
  298. calculating disk space reservedfor non-HDFS data. The default calculator is
  299. ReservedSpaceCalculatorAbsolute which will use dfs.datanode.du.reserved
  300. for a static reserved number of bytes. ReservedSpaceCalculatorPercentage
  301. will use dfs.datanode.du.reserved.pct to calculate the reserved number
  302. of bytes based on the size of the storage. ReservedSpaceCalculatorConservative and
  303. ReservedSpaceCalculatorAggressive will use their combination, Conservative will use
  304. maximum, Aggressive minimum. For more details see ReservedSpaceCalculator.
  305. </description>
  306. </property>
  307. <property>
  308. <name>dfs.datanode.du.reserved</name>
  309. <value>0</value>
  310. <description>Reserved space in bytes per volume. Always leave this much space free for non dfs use.
  311. Specific storage type based reservation is also supported. The property can be followed with
  312. corresponding storage types ([ssd]/[disk]/[archive]/[ram_disk]) for cluster with heterogeneous storage.
  313. For example, reserved space for RAM_DISK storage can be configured using property
  314. 'dfs.datanode.du.reserved.ram_disk'. If specific storage type reservation is not configured
  315. then dfs.datanode.du.reserved will be used. Support multiple size unit suffix(case insensitive),
  316. as described in dfs.blocksize.
  317. Note: In case of using tune2fs to set reserved-blocks-percentage, or other filesystem tools,
  318. then you can possibly run into out of disk errors because hadoop will not check those
  319. external tool configurations.
  320. </description>
  321. </property>
  322. <property>
  323. <name>dfs.datanode.du.reserved.pct</name>
  324. <value>0</value>
  325. <description>Reserved space in percentage. Read dfs.datanode.du.reserved.calculator to see
  326. when this takes effect. The actual number of bytes reserved will be calculated by using the
  327. total capacity of the data directory in question. Specific storage type based reservation
  328. is also supported. The property can be followed with corresponding storage types
  329. ([ssd]/[disk]/[archive]/[ram_disk]) for cluster with heterogeneous storage.
  330. For example, reserved percentage space for RAM_DISK storage can be configured using property
  331. 'dfs.datanode.du.reserved.pct.ram_disk'. If specific storage type reservation is not configured
  332. then dfs.datanode.du.reserved.pct will be used.
  333. </description>
  334. </property>
  335. <property>
  336. <name>dfs.namenode.name.dir</name>
  337. <value>file://${hadoop.tmp.dir}/dfs/name</value>
  338. <description>Determines where on the local filesystem the DFS name node
  339. should store the name table(fsimage). If this is a comma-delimited list
  340. of directories then the name table is replicated in all of the
  341. directories, for redundancy. </description>
  342. </property>
  343. <property>
  344. <name>dfs.namenode.name.dir.restore</name>
  345. <value>false</value>
  346. <description>Set to true to enable NameNode to attempt recovering a
  347. previously failed dfs.namenode.name.dir. When enabled, a recovery of any
  348. failed directory is attempted during checkpoint.</description>
  349. </property>
  350. <property>
  351. <name>dfs.namenode.fs-limits.max-component-length</name>
  352. <value>255</value>
  353. <description>Defines the maximum number of bytes in UTF-8 encoding in each
  354. component of a path. A value of 0 will disable the check. Support
  355. multiple size unit suffix(case insensitive), as described in dfs.blocksize.
  356. </description>
  357. </property>
  358. <property>
  359. <name>dfs.namenode.fs-limits.max-directory-items</name>
  360. <value>1048576</value>
  361. <description>Defines the maximum number of items that a directory may
  362. contain. Cannot set the property to a value less than 1 or more than
  363. 6400000.</description>
  364. </property>
  365. <property>
  366. <name>dfs.namenode.fs-limits.min-block-size</name>
  367. <value>1048576</value>
  368. <description>Minimum block size in bytes, enforced by the Namenode at create
  369. time. This prevents the accidental creation of files with tiny block
  370. sizes (and thus many blocks), which can degrade performance. Support multiple
  371. size unit suffix(case insensitive), as described in dfs.blocksize.
  372. </description>
  373. </property>
  374. <property>
  375. <name>dfs.namenode.fs-limits.max-blocks-per-file</name>
  376. <value>10000</value>
  377. <description>Maximum number of blocks per file, enforced by the Namenode on
  378. write. This prevents the creation of extremely large files which can
  379. degrade performance.</description>
  380. </property>
  381. <property>
  382. <name>dfs.namenode.edits.dir</name>
  383. <value>${dfs.namenode.name.dir}</value>
  384. <description>Determines where on the local filesystem the DFS name node
  385. should store the transaction (edits) file. If this is a comma-delimited list
  386. of directories then the transaction file is replicated in all of the
  387. directories, for redundancy. Default value is same as dfs.namenode.name.dir
  388. </description>
  389. </property>
  390. <property>
  391. <name>dfs.namenode.edits.dir.required</name>
  392. <value></value>
  393. <description>This should be a subset of dfs.namenode.edits.dir,
  394. to ensure that the transaction (edits) file
  395. in these places is always up-to-date.
  396. </description>
  397. </property>
  398. <property>
  399. <name>dfs.namenode.shared.edits.dir</name>
  400. <value></value>
  401. <description>A directory on shared storage between the multiple namenodes
  402. in an HA cluster. This directory will be written by the active and read
  403. by the standby in order to keep the namespaces synchronized. This directory
  404. does not need to be listed in dfs.namenode.edits.dir above. It should be
  405. left empty in a non-HA cluster.
  406. </description>
  407. </property>
  408. <property>
  409. <name>dfs.namenode.edits.journal-plugin.qjournal</name>
  410. <value>org.apache.hadoop.hdfs.qjournal.client.QuorumJournalManager</value>
  411. </property>
  412. <property>
  413. <name>dfs.permissions.enabled</name>
  414. <value>true</value>
  415. <description>
  416. If "true", enable permission checking in HDFS.
  417. If "false", permission checking is turned off,
  418. but all other behavior is unchanged.
  419. Switching from one parameter value to the other does not change the mode,
  420. owner or group of files or directories.
  421. </description>
  422. </property>
  423. <property>
  424. <name>dfs.permissions.ContentSummary.subAccess</name>
  425. <value>false</value>
  426. <description>
  427. If "true", the ContentSummary permission checking will use subAccess.
  428. If "false", the ContentSummary permission checking will NOT use subAccess.
  429. subAccess means using recursion to check the access of all descendants.
  430. </description>
  431. </property>
  432. <property>
  433. <name>dfs.permissions.superusergroup</name>
  434. <value>supergroup</value>
  435. <description>The name of the group of super-users.
  436. The value should be a single group name.
  437. </description>
  438. </property>
  439. <property>
  440. <name>dfs.cluster.administrators</name>
  441. <value></value>
  442. <description>ACL for the admins, this configuration is used to control
  443. who can access the default servlets in the namenode, etc. The value
  444. should be a comma separated list of users and groups. The user list
  445. comes first and is separated by a space followed by the group list,
  446. e.g. "user1,user2 group1,group2". Both users and groups are optional,
  447. so "user1", " group1", "", "user1 group1", "user1,user2 group1,group2"
  448. are all valid (note the leading space in " group1"). '*' grants access
  449. to all users and groups, e.g. '*', '* ' and ' *' are all valid.
  450. </description>
  451. </property>
  452. <property>
  453. <name>dfs.namenode.acls.enabled</name>
  454. <value>true</value>
  455. <description>
  456. Set to true to enable support for HDFS ACLs (Access Control Lists). By
  457. default, ACLs are enabled. When ACLs are disabled, the NameNode rejects
  458. all RPCs related to setting or getting ACLs.
  459. </description>
  460. </property>
  461. <property>
  462. <name>dfs.namenode.posix.acl.inheritance.enabled</name>
  463. <value>true</value>
  464. <description>
  465. Set to true to enable POSIX style ACL inheritance. When it is enabled
  466. and the create request comes from a compatible client, the NameNode
  467. will apply default ACLs from the parent directory to the create mode
  468. and ignore the client umask. If no default ACL found, it will apply the
  469. client umask.
  470. </description>
  471. </property>
  472. <property>
  473. <name>dfs.namenode.lazypersist.file.scrub.interval.sec</name>
  474. <value>300</value>
  475. <description>
  476. The NameNode periodically scans the namespace for LazyPersist files with
  477. missing blocks and unlinks them from the namespace. This configuration key
  478. controls the interval between successive scans. If this value is set to 0,
  479. the file scrubber is disabled.
  480. </description>
  481. </property>
  482. <property>
  483. <name>dfs.block.access.token.enable</name>
  484. <value>false</value>
  485. <description>
  486. If "true", access tokens are used as capabilities for accessing datanodes.
  487. If "false", no access tokens are checked on accessing datanodes.
  488. </description>
  489. </property>
  490. <property>
  491. <name>dfs.block.access.key.update.interval</name>
  492. <value>600</value>
  493. <description>
  494. Interval in minutes at which namenode updates its access keys.
  495. </description>
  496. </property>
  497. <property>
  498. <name>dfs.block.access.token.lifetime</name>
  499. <value>600</value>
  500. <description>The lifetime of access tokens in minutes.</description>
  501. </property>
  502. <property>
  503. <name>dfs.block.access.token.protobuf.enable</name>
  504. <value>false</value>
  505. <description>
  506. If "true", block tokens are written using Protocol Buffers.
  507. If "false", block tokens are written using Legacy format.
  508. </description>
  509. </property>
  510. <property>
  511. <name>dfs.datanode.data.dir</name>
  512. <value>file://${hadoop.tmp.dir}/dfs/data</value>
  513. <description>Determines where on the local filesystem an DFS data node
  514. should store its blocks. If this is a comma-delimited
  515. list of directories, then data will be stored in all named
  516. directories, typically on different devices. The directories should be tagged
  517. with corresponding storage types ([SSD]/[DISK]/[ARCHIVE]/[RAM_DISK]) for HDFS
  518. storage policies. The default storage type will be DISK if the directory does
  519. not have a storage type tagged explicitly. Directories that do not exist will
  520. be created if local filesystem permission allows.
  521. </description>
  522. </property>
  523. <property>
  524. <name>dfs.datanode.data.dir.perm</name>
  525. <value>700</value>
  526. <description>Permissions for the directories on on the local filesystem where
  527. the DFS data node store its blocks. The permissions can either be octal or
  528. symbolic.</description>
  529. </property>
  530. <property>
  531. <name>dfs.replication</name>
  532. <value>3</value>
  533. <description>Default block replication.
  534. The actual number of replications can be specified when the file is created.
  535. The default is used if replication is not specified in create time.
  536. </description>
  537. </property>
  538. <property>
  539. <name>dfs.replication.max</name>
  540. <value>512</value>
  541. <description>Maximal block replication.
  542. </description>
  543. </property>
  544. <property>
  545. <name>dfs.namenode.replication.min</name>
  546. <value>1</value>
  547. <description>Minimal block replication.
  548. </description>
  549. </property>
  550. <property>
  551. <name>dfs.namenode.maintenance.replication.min</name>
  552. <value>1</value>
  553. <description>Minimal live block replication in existence of maintenance mode.
  554. </description>
  555. </property>
  556. <property>
  557. <name>dfs.namenode.safemode.replication.min</name>
  558. <value></value>
  559. <description>
  560. a separate minimum replication factor for calculating safe block count.
  561. This is an expert level setting.
  562. Setting this lower than the dfs.namenode.replication.min
  563. is not recommend and/or dangerous for production setups.
  564. When it's not set it takes value from dfs.namenode.replication.min
  565. </description>
  566. </property>
  567. <property>
  568. <name>dfs.namenode.max-corrupt-file-blocks-returned</name>
  569. <value>100</value>
  570. <description>
  571. The maximum number of corrupt file blocks listed by NameNode Web UI,
  572. JMX and other client request.
  573. </description>
  574. </property>
  575. <property>
  576. <name>dfs.blocksize</name>
  577. <value>134217728</value>
  578. <description>
  579. The default block size for new files, in bytes.
  580. You can use the following suffix (case insensitive):
  581. k(kilo), m(mega), g(giga), t(tera), p(peta), e(exa) to specify the size (such as 128k, 512m, 1g, etc.),
  582. Or provide complete size in bytes (such as 134217728 for 128 MB).
  583. </description>
  584. </property>
  585. <property>
  586. <name>dfs.client.block.write.retries</name>
  587. <value>3</value>
  588. <description>The number of retries for writing blocks to the data nodes,
  589. before we signal failure to the application.
  590. </description>
  591. </property>
  592. <property>
  593. <name>dfs.client.block.write.replace-datanode-on-failure.enable</name>
  594. <value>true</value>
  595. <description>
  596. If there is a datanode/network failure in the write pipeline,
  597. DFSClient will try to remove the failed datanode from the pipeline
  598. and then continue writing with the remaining datanodes. As a result,
  599. the number of datanodes in the pipeline is decreased. The feature is
  600. to add new datanodes to the pipeline.
  601. This is a site-wide property to enable/disable the feature.
  602. When the cluster size is extremely small, e.g. 3 nodes or less, cluster
  603. administrators may want to set the policy to NEVER in the default
  604. configuration file or disable this feature. Otherwise, users may
  605. experience an unusually high rate of pipeline failures since it is
  606. impossible to find new datanodes for replacement.
  607. See also dfs.client.block.write.replace-datanode-on-failure.policy
  608. </description>
  609. </property>
  610. <property>
  611. <name>dfs.client.block.write.replace-datanode-on-failure.policy</name>
  612. <value>DEFAULT</value>
  613. <description>
  614. This property is used only if the value of
  615. dfs.client.block.write.replace-datanode-on-failure.enable is true.
  616. ALWAYS: always add a new datanode when an existing datanode is removed.
  617. NEVER: never add a new datanode.
  618. DEFAULT:
  619. Let r be the replication number.
  620. Let n be the number of existing datanodes.
  621. Add a new datanode only if r is greater than or equal to 3 and either
  622. (1) floor(r/2) is greater than or equal to n; or
  623. (2) r is greater than n and the block is hflushed/appended.
  624. </description>
  625. </property>
  626. <property>
  627. <name>dfs.client.block.write.replace-datanode-on-failure.best-effort</name>
  628. <value>false</value>
  629. <description>
  630. This property is used only if the value of
  631. dfs.client.block.write.replace-datanode-on-failure.enable is true.
  632. Best effort means that the client will try to replace a failed datanode
  633. in write pipeline (provided that the policy is satisfied), however, it
  634. continues the write operation in case that the datanode replacement also
  635. fails.
  636. Suppose the datanode replacement fails.
  637. false: An exception should be thrown so that the write will fail.
  638. true : The write should be resumed with the remaining datandoes.
  639. Note that setting this property to true allows writing to a pipeline
  640. with a smaller number of datanodes. As a result, it increases the
  641. probability of data loss.
  642. </description>
  643. </property>
  644. <property>
  645. <name>dfs.client.block.write.replace-datanode-on-failure.min-replication</name>
  646. <value>0</value>
  647. <description>
  648. The minimum number of replications that are needed to not to fail
  649. the write pipeline if new datanodes can not be found to replace
  650. failed datanodes (could be due to network failure) in the write pipeline.
  651. If the number of the remaining datanodes in the write pipeline is greater
  652. than or equal to this property value, continue writing to the remaining nodes.
  653. Otherwise throw exception.
  654. If this is set to 0, an exception will be thrown, when a replacement
  655. can not be found.
  656. See also dfs.client.block.write.replace-datanode-on-failure.policy
  657. </description>
  658. </property>
  659. <property>
  660. <name>dfs.blockreport.intervalMsec</name>
  661. <value>21600000</value>
  662. <description>Determines block reporting interval in milliseconds.</description>
  663. </property>
  664. <property>
  665. <name>dfs.blockreport.initialDelay</name>
  666. <value>0s</value>
  667. <description>
  668. Delay for first block report in seconds. Support multiple time unit
  669. suffix(case insensitive), as described in dfs.heartbeat.interval.If
  670. no time unit is specified then seconds is assumed
  671. </description>
  672. </property>
  673. <property>
  674. <name>dfs.blockreport.split.threshold</name>
  675. <value>1000000</value>
  676. <description>If the number of blocks on the DataNode is below this
  677. threshold then it will send block reports for all Storage Directories
  678. in a single message.
  679. If the number of blocks exceeds this threshold then the DataNode will
  680. send block reports for each Storage Directory in separate messages.
  681. Set to zero to always split.
  682. </description>
  683. </property>
  684. <property>
  685. <name>dfs.namenode.max.full.block.report.leases</name>
  686. <value>6</value>
  687. <description>The maximum number of leases for full block reports that the
  688. NameNode will issue at any given time. This prevents the NameNode from
  689. being flooded with full block reports that use up all the RPC handler
  690. threads. This number should never be more than the number of RPC handler
  691. threads or less than 1.
  692. </description>
  693. </property>
  694. <property>
  695. <name>dfs.namenode.full.block.report.lease.length.ms</name>
  696. <value>300000</value>
  697. <description>
  698. The number of milliseconds that the NameNode will wait before invalidating
  699. a full block report lease. This prevents a crashed DataNode from
  700. permanently using up a full block report lease.
  701. </description>
  702. </property>
  703. <property>
  704. <name>dfs.datanode.directoryscan.interval</name>
  705. <value>21600s</value>
  706. <description>Interval in seconds for Datanode to scan data directories and
  707. reconcile the difference between blocks in memory and on the disk.
  708. Support multiple time unit suffix(case insensitive), as described
  709. in dfs.heartbeat.interval.If no time unit is specified then seconds
  710. is assumed.
  711. </description>
  712. </property>
  713. <property>
  714. <name>dfs.datanode.directoryscan.threads</name>
  715. <value>1</value>
  716. <description>How many threads should the threadpool used to compile reports
  717. for volumes in parallel have.
  718. </description>
  719. </property>
  720. <property>
  721. <name>dfs.datanode.directoryscan.throttle.limit.ms.per.sec</name>
  722. <value>1000</value>
  723. <description>The report compilation threads are limited to only running for
  724. a given number of milliseconds per second, as configured by the
  725. property. The limit is taken per thread, not in aggregate, e.g. setting
  726. a limit of 100ms for 4 compiler threads will result in each thread being
  727. limited to 100ms, not 25ms.
  728. Note that the throttle does not interrupt the report compiler threads, so the
  729. actual running time of the threads per second will typically be somewhat
  730. higher than the throttle limit, usually by no more than 20%.
  731. Setting this limit to 1000 disables compiler thread throttling. Only
  732. values between 1 and 1000 are valid. Setting an invalid value will result
  733. in the throttle being disabled and an error message being logged. 1000 is
  734. the default setting.
  735. </description>
  736. </property>
  737. <property>
  738. <name>dfs.heartbeat.interval</name>
  739. <value>3s</value>
  740. <description>
  741. Determines datanode heartbeat interval in seconds.
  742. Can use the following suffix (case insensitive):
  743. ms(millis), s(sec), m(min), h(hour), d(day)
  744. to specify the time (such as 2s, 2m, 1h, etc.).
  745. Or provide complete number in seconds (such as 30 for 30 seconds).
  746. If no time unit is specified then seconds is assumed.
  747. </description>
  748. </property>
  749. <property>
  750. <name>dfs.datanode.lifeline.interval.seconds</name>
  751. <value></value>
  752. <description>
  753. Sets the interval in seconds between sending DataNode Lifeline Protocol
  754. messages from the DataNode to the NameNode. The value must be greater than
  755. the value of dfs.heartbeat.interval. If this property is not defined, then
  756. the default behavior is to calculate the interval as 3x the value of
  757. dfs.heartbeat.interval. Note that normal heartbeat processing may cause the
  758. DataNode to postpone sending lifeline messages if they are not required.
  759. Under normal operations with speedy heartbeat processing, it is possible
  760. that no lifeline messages will need to be sent at all. This property has no
  761. effect if dfs.namenode.lifeline.rpc-address is not defined.
  762. </description>
  763. </property>
  764. <property>
  765. <name>dfs.namenode.handler.count</name>
  766. <value>10</value>
  767. <description>The number of Namenode RPC server threads that listen to
  768. requests from clients.
  769. If dfs.namenode.servicerpc-address is not configured then
  770. Namenode RPC server threads listen to requests from all nodes.
  771. </description>
  772. </property>
  773. <property>
  774. <name>dfs.namenode.service.handler.count</name>
  775. <value>10</value>
  776. <description>The number of Namenode RPC server threads that listen to
  777. requests from DataNodes and from all other non-client nodes.
  778. dfs.namenode.service.handler.count will be valid only if
  779. dfs.namenode.servicerpc-address is configured.
  780. </description>
  781. </property>
  782. <property>
  783. <name>dfs.namenode.lifeline.handler.ratio</name>
  784. <value>0.10</value>
  785. <description>
  786. A ratio applied to the value of dfs.namenode.handler.count, which then
  787. provides the number of RPC server threads the NameNode runs for handling the
  788. lifeline RPC server. For example, if dfs.namenode.handler.count is 100, and
  789. dfs.namenode.lifeline.handler.factor is 0.10, then the NameNode starts
  790. 100 * 0.10 = 10 threads for handling the lifeline RPC server. It is common
  791. to tune the value of dfs.namenode.handler.count as a function of the number
  792. of DataNodes in a cluster. Using this property allows for the lifeline RPC
  793. server handler threads to be tuned automatically without needing to touch a
  794. separate property. Lifeline message processing is lightweight, so it is
  795. expected to require many fewer threads than the main NameNode RPC server.
  796. This property is not used if dfs.namenode.lifeline.handler.count is defined,
  797. which sets an absolute thread count. This property has no effect if
  798. dfs.namenode.lifeline.rpc-address is not defined.
  799. </description>
  800. </property>
  801. <property>
  802. <name>dfs.namenode.lifeline.handler.count</name>
  803. <value></value>
  804. <description>
  805. Sets an absolute number of RPC server threads the NameNode runs for handling
  806. the DataNode Lifeline Protocol and HA health check requests from ZKFC. If
  807. this property is defined, then it overrides the behavior of
  808. dfs.namenode.lifeline.handler.ratio. By default, it is not defined. This
  809. property has no effect if dfs.namenode.lifeline.rpc-address is not defined.
  810. </description>
  811. </property>
  812. <property>
  813. <name>dfs.namenode.safemode.threshold-pct</name>
  814. <value>0.999f</value>
  815. <description>
  816. Specifies the percentage of blocks that should satisfy
  817. the minimal replication requirement defined by dfs.namenode.replication.min.
  818. Values less than or equal to 0 mean not to wait for any particular
  819. percentage of blocks before exiting safemode.
  820. Values greater than 1 will make safe mode permanent.
  821. </description>
  822. </property>
  823. <property>
  824. <name>dfs.namenode.safemode.min.datanodes</name>
  825. <value>0</value>
  826. <description>
  827. Specifies the number of datanodes that must be considered alive
  828. before the name node exits safemode.
  829. Values less than or equal to 0 mean not to take the number of live
  830. datanodes into account when deciding whether to remain in safe mode
  831. during startup.
  832. Values greater than the number of datanodes in the cluster
  833. will make safe mode permanent.
  834. </description>
  835. </property>
  836. <property>
  837. <name>dfs.namenode.safemode.extension</name>
  838. <value>30000</value>
  839. <description>
  840. Determines extension of safe mode in milliseconds after the threshold level
  841. is reached. Support multiple time unit suffix (case insensitive), as
  842. described in dfs.heartbeat.interval.
  843. </description>
  844. </property>
  845. <property>
  846. <name>dfs.namenode.resource.check.interval</name>
  847. <value>5000</value>
  848. <description>
  849. The interval in milliseconds at which the NameNode resource checker runs.
  850. The checker calculates the number of the NameNode storage volumes whose
  851. available spaces are more than dfs.namenode.resource.du.reserved, and
  852. enters safemode if the number becomes lower than the minimum value
  853. specified by dfs.namenode.resource.checked.volumes.minimum.
  854. </description>
  855. </property>
  856. <property>
  857. <name>dfs.namenode.resource.du.reserved</name>
  858. <value>104857600</value>
  859. <description>
  860. The amount of space to reserve/require for a NameNode storage directory
  861. in bytes. The default is 100MB. Support multiple size unit
  862. suffix(case insensitive), as described in dfs.blocksize.
  863. </description>
  864. </property>
  865. <property>
  866. <name>dfs.namenode.resource.checked.volumes</name>
  867. <value></value>
  868. <description>
  869. A list of local directories for the NameNode resource checker to check in
  870. addition to the local edits directories.
  871. </description>
  872. </property>
  873. <property>
  874. <name>dfs.namenode.resource.checked.volumes.minimum</name>
  875. <value>1</value>
  876. <description>
  877. The minimum number of redundant NameNode storage volumes required.
  878. </description>
  879. </property>
  880. <property>
  881. <name>dfs.datanode.balance.bandwidthPerSec</name>
  882. <value>100m</value>
  883. <description>
  884. Specifies the maximum amount of bandwidth that each datanode
  885. can utilize for the balancing purpose in term of
  886. the number of bytes per second. You can use the following
  887. suffix (case insensitive):
  888. k(kilo), m(mega), g(giga), t(tera), p(peta), e(exa)to specify the size
  889. (such as 128k, 512m, 1g, etc.).
  890. Or provide complete size in bytes (such as 134217728 for 128 MB).
  891. </description>
  892. </property>
  893. <property>
  894. <name>dfs.hosts</name>
  895. <value></value>
  896. <description>Names a file that contains a list of hosts that are
  897. permitted to connect to the namenode. The full pathname of the file
  898. must be specified. If the value is empty, all hosts are
  899. permitted.</description>
  900. </property>
  901. <property>
  902. <name>dfs.hosts.exclude</name>
  903. <value></value>
  904. <description>Names a file that contains a list of hosts that are
  905. not permitted to connect to the namenode. The full pathname of the
  906. file must be specified. If the value is empty, no hosts are
  907. excluded.</description>
  908. </property>
  909. <property>
  910. <name>dfs.namenode.max.objects</name>
  911. <value>0</value>
  912. <description>The maximum number of files, directories and blocks
  913. dfs supports. A value of zero indicates no limit to the number
  914. of objects that dfs supports.
  915. </description>
  916. </property>
  917. <property>
  918. <name>dfs.namenode.datanode.registration.ip-hostname-check</name>
  919. <value>true</value>
  920. <description>
  921. If true (the default), then the namenode requires that a connecting
  922. datanode's address must be resolved to a hostname. If necessary, a reverse
  923. DNS lookup is performed. All attempts to register a datanode from an
  924. unresolvable address are rejected.
  925. It is recommended that this setting be left on to prevent accidental
  926. registration of datanodes listed by hostname in the excludes file during a
  927. DNS outage. Only set this to false in environments where there is no
  928. infrastructure to support reverse DNS lookup.
  929. </description>
  930. </property>
  931. <property>
  932. <name>dfs.namenode.decommission.interval</name>
  933. <value>30s</value>
  934. <description>Namenode periodicity in seconds to check if
  935. decommission or maintenance is complete. Support multiple time unit
  936. suffix(case insensitive), as described in dfs.heartbeat.interval.
  937. If no time unit is specified then seconds is assumed.
  938. </description>
  939. </property>
  940. <property>
  941. <name>dfs.namenode.decommission.blocks.per.interval</name>
  942. <value>500000</value>
  943. <description>The approximate number of blocks to process per decommission
  944. or maintenance interval, as defined in dfs.namenode.decommission.interval.
  945. </description>
  946. </property>
  947. <property>
  948. <name>dfs.namenode.decommission.max.concurrent.tracked.nodes</name>
  949. <value>100</value>
  950. <description>
  951. The maximum number of decommission-in-progress or
  952. entering-maintenance datanodes nodes that will be tracked at one time by
  953. the namenode. Tracking these datanode consumes additional NN memory
  954. proportional to the number of blocks on the datnode. Having a conservative
  955. limit reduces the potential impact of decommissioning or maintenance of
  956. a large number of nodes at once.
  957. A value of 0 means no limit will be enforced.
  958. </description>
  959. </property>
  960. <property>
  961. <name>dfs.namenode.redundancy.interval.seconds</name>
  962. <value>3s</value>
  963. <description>The periodicity in seconds with which the namenode computes
  964. low redundancy work for datanodes. Support multiple time unit suffix(case insensitive),
  965. as described in dfs.heartbeat.interval.
  966. </description>
  967. </property>
  968. <property>
  969. <name>dfs.namenode.accesstime.precision</name>
  970. <value>3600000</value>
  971. <description>The access time for HDFS file is precise upto this value.
  972. The default value is 1 hour. Setting a value of 0 disables
  973. access times for HDFS.
  974. </description>
  975. </property>
  976. <property>
  977. <name>dfs.datanode.plugins</name>
  978. <value></value>
  979. <description>Comma-separated list of datanode plug-ins to be activated.
  980. </description>
  981. </property>
  982. <property>
  983. <name>dfs.namenode.plugins</name>
  984. <value></value>
  985. <description>Comma-separated list of namenode plug-ins to be activated.
  986. </description>
  987. </property>
  988. <property>
  989. <name>dfs.namenode.block-placement-policy.default.prefer-local-node</name>
  990. <value>true</value>
  991. <description>Controls how the default block placement policy places
  992. the first replica of a block. When true, it will prefer the node where
  993. the client is running. When false, it will prefer a node in the same rack
  994. as the client. Setting to false avoids situations where entire copies of
  995. large files end up on a single node, thus creating hotspots.
  996. </description>
  997. </property>
  998. <property>
  999. <name>dfs.stream-buffer-size</name>
  1000. <value>4096</value>
  1001. <description>The size of buffer to stream files.
  1002. The size of this buffer should probably be a multiple of hardware
  1003. page size (4096 on Intel x86), and it determines how much data is
  1004. buffered during read and write operations.</description>
  1005. </property>
  1006. <property>
  1007. <name>dfs.bytes-per-checksum</name>
  1008. <value>512</value>
  1009. <description>The number of bytes per checksum. Must not be larger than
  1010. dfs.stream-buffer-size</description>
  1011. </property>
  1012. <property>
  1013. <name>dfs.client-write-packet-size</name>
  1014. <value>65536</value>
  1015. <description>Packet size for clients to write</description>
  1016. </property>
  1017. <property>
  1018. <name>dfs.client.write.exclude.nodes.cache.expiry.interval.millis</name>
  1019. <value>600000</value>
  1020. <description>The maximum period to keep a DN in the excluded nodes list
  1021. at a client. After this period, in milliseconds, the previously excluded node(s) will
  1022. be removed automatically from the cache and will be considered good for block allocations
  1023. again. Useful to lower or raise in situations where you keep a file open for very long
  1024. periods (such as a Write-Ahead-Log (WAL) file) to make the writer tolerant to cluster maintenance
  1025. restarts. Defaults to 10 minutes.</description>
  1026. </property>
  1027. <property>
  1028. <name>dfs.namenode.checkpoint.dir</name>
  1029. <value>file://${hadoop.tmp.dir}/dfs/namesecondary</value>
  1030. <description>Determines where on the local filesystem the DFS secondary
  1031. name node should store the temporary images to merge.
  1032. If this is a comma-delimited list of directories then the image is
  1033. replicated in all of the directories for redundancy.
  1034. </description>
  1035. </property>
  1036. <property>
  1037. <name>dfs.namenode.checkpoint.edits.dir</name>
  1038. <value>${dfs.namenode.checkpoint.dir}</value>
  1039. <description>Determines where on the local filesystem the DFS secondary
  1040. name node should store the temporary edits to merge.
  1041. If this is a comma-delimited list of directories then the edits is
  1042. replicated in all of the directories for redundancy.
  1043. Default value is same as dfs.namenode.checkpoint.dir
  1044. </description>
  1045. </property>
  1046. <property>
  1047. <name>dfs.namenode.checkpoint.period</name>
  1048. <value>3600s</value>
  1049. <description>
  1050. The number of seconds between two periodic checkpoints.
  1051. Support multiple time unit suffix(case insensitive), as described
  1052. in dfs.heartbeat.interval.If no time unit is specified then seconds
  1053. is assumed.
  1054. </description>
  1055. </property>
  1056. <property>
  1057. <name>dfs.namenode.checkpoint.txns</name>
  1058. <value>1000000</value>
  1059. <description>The Secondary NameNode or CheckpointNode will create a checkpoint
  1060. of the namespace every 'dfs.namenode.checkpoint.txns' transactions, regardless
  1061. of whether 'dfs.namenode.checkpoint.period' has expired.
  1062. </description>
  1063. </property>
  1064. <property>
  1065. <name>dfs.namenode.checkpoint.check.period</name>
  1066. <value>60s</value>
  1067. <description>The SecondaryNameNode and CheckpointNode will poll the NameNode
  1068. every 'dfs.namenode.checkpoint.check.period' seconds to query the number
  1069. of uncheckpointed transactions. Support multiple time unit suffix(case insensitive),
  1070. as described in dfs.heartbeat.interval.If no time unit is specified then
  1071. seconds is assumed.
  1072. </description>
  1073. </property>
  1074. <property>
  1075. <name>dfs.namenode.checkpoint.max-retries</name>
  1076. <value>3</value>
  1077. <description>The SecondaryNameNode retries failed checkpointing. If the
  1078. failure occurs while loading fsimage or replaying edits, the number of
  1079. retries is limited by this variable.
  1080. </description>
  1081. </property>
  1082. <property>
  1083. <name>dfs.namenode.checkpoint.check.quiet-multiplier</name>
  1084. <value>1.5</value>
  1085. <description>
  1086. Used to calculate the amount of time between retries when in the 'quiet' period
  1087. for creating checkpoints (active namenode already has an up-to-date image from another
  1088. checkpointer), so we wait a multiplier of the dfs.namenode.checkpoint.check.period before
  1089. retrying the checkpoint because another node likely is already managing the checkpoints,
  1090. allowing us to save bandwidth to transfer checkpoints that don't need to be used.
  1091. </description>
  1092. </property>
  1093. <property>
  1094. <name>dfs.namenode.num.checkpoints.retained</name>
  1095. <value>2</value>
  1096. <description>The number of image checkpoint files (fsimage_*) that will be retained by
  1097. the NameNode and Secondary NameNode in their storage directories. All edit
  1098. logs (stored on edits_* files) necessary to recover an up-to-date namespace from the oldest retained
  1099. checkpoint will also be retained.
  1100. </description>
  1101. </property>
  1102. <property>
  1103. <name>dfs.namenode.num.extra.edits.retained</name>
  1104. <value>1000000</value>
  1105. <description>The number of extra transactions which should be retained
  1106. beyond what is minimally necessary for a NN restart.
  1107. It does not translate directly to file's age, or the number of files kept,
  1108. but to the number of transactions (here "edits" means transactions).
  1109. One edit file may contain several transactions (edits).
  1110. During checkpoint, NameNode will identify the total number of edits to retain as extra by
  1111. checking the latest checkpoint transaction value, subtracted by the value of this property.
  1112. Then, it scans edits files to identify the older ones that don't include the computed range of
  1113. retained transactions that are to be kept around, and purges them subsequently.
  1114. The retainment can be useful for audit purposes or for an HA setup where a remote Standby Node may have
  1115. been offline for some time and need to have a longer backlog of retained
  1116. edits in order to start again.
  1117. Typically each edit is on the order of a few hundred bytes, so the default
  1118. of 1 million edits should be on the order of hundreds of MBs or low GBs.
  1119. NOTE: Fewer extra edits may be retained than value specified for this setting
  1120. if doing so would mean that more segments would be retained than the number
  1121. configured by dfs.namenode.max.extra.edits.segments.retained.
  1122. </description>
  1123. </property>
  1124. <property>
  1125. <name>dfs.namenode.max.extra.edits.segments.retained</name>
  1126. <value>10000</value>
  1127. <description>The maximum number of extra edit log segments which should be retained
  1128. beyond what is minimally necessary for a NN restart. When used in conjunction with
  1129. dfs.namenode.num.extra.edits.retained, this configuration property serves to cap
  1130. the number of extra edits files to a reasonable value.
  1131. </description>
  1132. </property>
  1133. <property>
  1134. <name>dfs.namenode.delegation.key.update-interval</name>
  1135. <value>86400000</value>
  1136. <description>The update interval for master key for delegation tokens
  1137. in the namenode in milliseconds.
  1138. </description>
  1139. </property>
  1140. <property>
  1141. <name>dfs.namenode.delegation.token.max-lifetime</name>
  1142. <value>604800000</value>
  1143. <description>The maximum lifetime in milliseconds for which a delegation
  1144. token is valid.
  1145. </description>
  1146. </property>
  1147. <property>
  1148. <name>dfs.namenode.delegation.token.renew-interval</name>
  1149. <value>86400000</value>
  1150. <description>The renewal interval for delegation token in milliseconds.
  1151. </description>
  1152. </property>
  1153. <property>
  1154. <name>dfs.datanode.failed.volumes.tolerated</name>
  1155. <value>0</value>
  1156. <description>The number of volumes that are allowed to
  1157. fail before a datanode stops offering service. By default
  1158. any volume failure will cause a datanode to shutdown.
  1159. The value should be greater than or equal to -1 , -1 represents minimum
  1160. 1 valid volume.
  1161. </description>
  1162. </property>
  1163. <property>
  1164. <name>dfs.datanode.volumes.replica-add.threadpool.size</name>
  1165. <value></value>
  1166. <description>Specifies the maximum number of threads to use for
  1167. adding block in volume. Default value for this configuration is
  1168. max of (volume * number of bp_service, number of processor).
  1169. </description>
  1170. </property>
  1171. <property>
  1172. <name>dfs.image.compress</name>
  1173. <value>false</value>
  1174. <description>When this value is true, the dfs image will be compressed.
  1175. Enabling this will be very helpful if dfs image is large since it can
  1176. avoid consuming a lot of network bandwidth when SBN uploads a new dfs
  1177. image to ANN. The compressed codec is specified by the setting
  1178. dfs.image.compression.codec.
  1179. </description>
  1180. </property>
  1181. <property>
  1182. <name>dfs.image.compression.codec</name>
  1183. <value>org.apache.hadoop.io.compress.DefaultCodec</value>
  1184. <description>If the dfs image is compressed, how should they be compressed?
  1185. This has to be a codec defined in io.compression.codecs.
  1186. </description>
  1187. </property>
  1188. <property>
  1189. <name>dfs.image.transfer.timeout</name>
  1190. <value>60000</value>
  1191. <description>
  1192. Socket timeout for the HttpURLConnection instance used in the image
  1193. transfer. This is measured in milliseconds.
  1194. This timeout prevents client hangs if the connection is idle
  1195. for this configured timeout, during image transfer.
  1196. </description>
  1197. </property>
  1198. <property>
  1199. <name>dfs.image.transfer.bandwidthPerSec</name>
  1200. <value>0</value>
  1201. <description>
  1202. Maximum bandwidth used for regular image transfers (instead of
  1203. bootstrapping the standby namenode), in bytes per second.
  1204. This can help keep normal namenode operations responsive during
  1205. checkpointing.
  1206. A default value of 0 indicates that throttling is disabled.
  1207. The maximum bandwidth used for bootstrapping standby namenode is
  1208. configured with dfs.image.transfer-bootstrap-standby.bandwidthPerSec.
  1209. Support multiple size unit suffix(case insensitive), as described
  1210. in dfs.blocksize.
  1211. </description>
  1212. </property>
  1213. <property>
  1214. <name>dfs.image.transfer-bootstrap-standby.bandwidthPerSec</name>
  1215. <value>0</value>
  1216. <description>
  1217. Maximum bandwidth used for transferring image to bootstrap standby
  1218. namenode, in bytes per second.
  1219. A default value of 0 indicates that throttling is disabled. This default
  1220. value should be used in most cases, to ensure timely HA operations.
  1221. The maximum bandwidth used for regular image transfers is configured
  1222. with dfs.image.transfer.bandwidthPerSec.
  1223. Support multiple size unit suffix(case insensitive), as described in
  1224. dfs.blocksize.
  1225. </description>
  1226. </property>
  1227. <property>
  1228. <name>dfs.image.transfer.chunksize</name>
  1229. <value>65536</value>
  1230. <description>
  1231. Chunksize in bytes to upload the checkpoint.
  1232. Chunked streaming is used to avoid internal buffering of contents
  1233. of image file of huge size.
  1234. Support multiple size unit suffix(case insensitive), as described
  1235. in dfs.blocksize.
  1236. </description>
  1237. </property>
  1238. <property>
  1239. <name>dfs.image.parallel.load</name>
  1240. <value>false</value>
  1241. <description>
  1242. If true, write sub-section entries to the fsimage index so it can
  1243. be loaded in parallel. Also controls whether parallel loading
  1244. will be used for an image previously created with sub-sections.
  1245. If the image contains sub-sections and this is set to false,
  1246. parallel loading will not be used.
  1247. Parallel loading is not compatible with image compression,
  1248. so if dfs.image.compress is set to true this setting will be
  1249. ignored and no parallel loading will occur.
  1250. Enabling this feature may impact rolling upgrades and downgrades if
  1251. the previous version does not support this feature. If the feature was
  1252. enabled and a downgrade is required, first set this parameter to
  1253. false and then save the namespace to create a fsimage with no
  1254. sub-sections and then perform the downgrade.
  1255. </description>
  1256. </property>
  1257. <property>
  1258. <name>dfs.image.parallel.target.sections</name>
  1259. <value>12</value>
  1260. <description>
  1261. Controls the number of sub-sections that will be written to
  1262. fsimage for each section. This should be larger than
  1263. dfs.image.parallel.threads, otherwise all threads will not be
  1264. used when loading. Ideally, have at least twice the number
  1265. of target sections as threads, so each thread must load more
  1266. than one section to avoid one long running section affecting
  1267. the load time.
  1268. </description>
  1269. </property>
  1270. <property>
  1271. <name>dfs.image.parallel.inode.threshold</name>
  1272. <value>1000000</value>
  1273. <description>
  1274. If the image contains less inodes than this setting, then
  1275. do not write sub-sections and hence disable parallel loading.
  1276. This is because small images load very quickly in serial and
  1277. parallel loading is not needed.
  1278. </description>
  1279. </property>
  1280. <property>
  1281. <name>dfs.image.parallel.threads</name>
  1282. <value>4</value>
  1283. <description>
  1284. The number of threads to use when dfs.image.parallel.load is
  1285. enabled. This setting should be less than
  1286. dfs.image.parallel.target.sections. The optimal number of
  1287. threads will depend on the hardware and environment.
  1288. </description>
  1289. </property>
  1290. <property>
  1291. <name>dfs.edit.log.transfer.timeout</name>
  1292. <value>30000</value>
  1293. <description>
  1294. Socket timeout for edit log transfer in milliseconds. This timeout
  1295. should be configured such that normal edit log transfer for journal
  1296. node syncing can complete successfully.
  1297. </description>
  1298. </property>
  1299. <property>
  1300. <name>dfs.edit.log.transfer.bandwidthPerSec</name>
  1301. <value>0</value>
  1302. <description>
  1303. Maximum bandwidth used for transferring edit log to between journal nodes
  1304. for syncing, in bytes per second.
  1305. A default value of 0 indicates that throttling is disabled.
  1306. </description>
  1307. </property>
  1308. <property>
  1309. <name>dfs.namenode.support.allow.format</name>
  1310. <value>true</value>
  1311. <description>Does HDFS namenode allow itself to be formatted?
  1312. You may consider setting this to false for any production
  1313. cluster, to avoid any possibility of formatting a running DFS.
  1314. </description>
  1315. </property>
  1316. <property>
  1317. <name>dfs.datanode.max.transfer.threads</name>
  1318. <value>4096</value>
  1319. <description>
  1320. Specifies the maximum number of threads to use for transferring data
  1321. in and out of the DN.
  1322. </description>
  1323. </property>
  1324. <property>
  1325. <name>dfs.datanode.scan.period.hours</name>
  1326. <value>504</value>
  1327. <description>
  1328. If this is positive, the DataNode will not scan any
  1329. individual block more than once in the specified scan period.
  1330. If this is negative, the block scanner is disabled.
  1331. If this is set to zero, then the default value of 504 hours
  1332. or 3 weeks is used. Prior versions of HDFS incorrectly documented
  1333. that setting this key to zero will disable the block scanner.
  1334. </description>
  1335. </property>
  1336. <property>
  1337. <name>dfs.block.scanner.volume.bytes.per.second</name>
  1338. <value>1048576</value>
  1339. <description>
  1340. If this is 0, the DataNode's block scanner will be disabled. If this
  1341. is positive, this is the number of bytes per second that the DataNode's
  1342. block scanner will try to scan from each volume.
  1343. </description>
  1344. </property>
  1345. <property>
  1346. <name>dfs.datanode.readahead.bytes</name>
  1347. <value>4194304</value>
  1348. <description>
  1349. While reading block files, if the Hadoop native libraries are available,
  1350. the datanode can use the posix_fadvise system call to explicitly
  1351. page data into the operating system buffer cache ahead of the current
  1352. reader's position. This can improve performance especially when
  1353. disks are highly contended.
  1354. This configuration specifies the number of bytes ahead of the current
  1355. read position which the datanode will attempt to read ahead. This
  1356. feature may be disabled by configuring this property to 0.
  1357. If the native libraries are not available, this configuration has no
  1358. effect.
  1359. </description>
  1360. </property>
  1361. <property>
  1362. <name>dfs.datanode.drop.cache.behind.reads</name>
  1363. <value>false</value>
  1364. <description>
  1365. In some workloads, the data read from HDFS is known to be significantly
  1366. large enough that it is unlikely to be useful to cache it in the
  1367. operating system buffer cache. In this case, the DataNode may be
  1368. configured to automatically purge all data from the buffer cache
  1369. after it is delivered to the client. This behavior is automatically
  1370. disabled for workloads which read only short sections of a block
  1371. (e.g HBase random-IO workloads).
  1372. This may improve performance for some workloads by freeing buffer
  1373. cache space usage for more cacheable data.
  1374. If the Hadoop native libraries are not available, this configuration
  1375. has no effect.
  1376. </description>
  1377. </property>
  1378. <property>
  1379. <name>dfs.datanode.drop.cache.behind.writes</name>
  1380. <value>false</value>
  1381. <description>
  1382. In some workloads, the data written to HDFS is known to be significantly
  1383. large enough that it is unlikely to be useful to cache it in the
  1384. operating system buffer cache. In this case, the DataNode may be
  1385. configured to automatically purge all data from the buffer cache
  1386. after it is written to disk.
  1387. This may improve performance for some workloads by freeing buffer
  1388. cache space usage for more cacheable data.
  1389. If the Hadoop native libraries are not available, this configuration
  1390. has no effect.
  1391. </description>
  1392. </property>
  1393. <property>
  1394. <name>dfs.datanode.sync.behind.writes</name>
  1395. <value>false</value>
  1396. <description>
  1397. If this configuration is enabled, the datanode will instruct the
  1398. operating system to enqueue all written data to the disk immediately
  1399. after it is written. This differs from the usual OS policy which
  1400. may wait for up to 30 seconds before triggering writeback.
  1401. This may improve performance for some workloads by smoothing the
  1402. IO profile for data written to disk.
  1403. If the Hadoop native libraries are not available, this configuration
  1404. has no effect.
  1405. </description>
  1406. </property>
  1407. <property>
  1408. <name>dfs.client.failover.max.attempts</name>
  1409. <value>15</value>
  1410. <description>
  1411. Expert only. The number of client failover attempts that should be
  1412. made before the failover is considered failed.
  1413. </description>
  1414. </property>
  1415. <property>
  1416. <name>dfs.client.failover.sleep.base.millis</name>
  1417. <value>500</value>
  1418. <description>
  1419. Expert only. The time to wait, in milliseconds, between failover
  1420. attempts increases exponentially as a function of the number of
  1421. attempts made so far, with a random factor of +/- 50%. This option
  1422. specifies the base value used in the failover calculation. The
  1423. first failover will retry immediately. The 2nd failover attempt
  1424. will delay at least dfs.client.failover.sleep.base.millis
  1425. milliseconds. And so on.
  1426. </description>
  1427. </property>
  1428. <property>
  1429. <name>dfs.client.failover.sleep.max.millis</name>
  1430. <value>15000</value>
  1431. <description>
  1432. Expert only. The time to wait, in milliseconds, between failover
  1433. attempts increases exponentially as a function of the number of
  1434. attempts made so far, with a random factor of +/- 50%. This option
  1435. specifies the maximum value to wait between failovers.
  1436. Specifically, the time between two failover attempts will not
  1437. exceed +/- 50% of dfs.client.failover.sleep.max.millis
  1438. milliseconds.
  1439. </description>
  1440. </property>
  1441. <property>
  1442. <name>dfs.client.failover.connection.retries</name>
  1443. <value>0</value>
  1444. <description>
  1445. Expert only. Indicates the number of retries a failover IPC client
  1446. will make to establish a server connection.
  1447. </description>
  1448. </property>
  1449. <property>
  1450. <name>dfs.client.failover.connection.retries.on.timeouts</name>
  1451. <value>0</value>
  1452. <description>
  1453. Expert only. The number of retry attempts a failover IPC client
  1454. will make on socket timeout when establishing a server connection.
  1455. </description>
  1456. </property>
  1457. <property>
  1458. <name>dfs.client.datanode-restart.timeout</name>
  1459. <value>30s</value>
  1460. <description>
  1461. Expert only. The time to wait, in seconds, from reception of an
  1462. datanode shutdown notification for quick restart, until declaring
  1463. the datanode dead and invoking the normal recovery mechanisms.
  1464. The notification is sent by a datanode when it is being shutdown
  1465. using the shutdownDatanode admin command with the upgrade option.
  1466. Support multiple time unit suffix(case insensitive), as described
  1467. in dfs.heartbeat.interval.If no time unit is specified then seconds
  1468. is assumed.
  1469. </description>
  1470. </property>
  1471. <property>
  1472. <name>dfs.nameservices</name>
  1473. <value></value>
  1474. <description>
  1475. Comma-separated list of nameservices.
  1476. </description>
  1477. </property>
  1478. <property>
  1479. <name>dfs.nameservice.id</name>
  1480. <value></value>
  1481. <description>
  1482. The ID of this nameservice. If the nameservice ID is not
  1483. configured or more than one nameservice is configured for
  1484. dfs.nameservices it is determined automatically by
  1485. matching the local node's address with the configured address.
  1486. </description>
  1487. </property>
  1488. <property>
  1489. <name>dfs.internal.nameservices</name>
  1490. <value></value>
  1491. <description>
  1492. Comma-separated list of nameservices that belong to this cluster.
  1493. Datanode will report to all the nameservices in this list. By default
  1494. this is set to the value of dfs.nameservices.
  1495. </description>
  1496. </property>
  1497. <property>
  1498. <name>dfs.ha.namenodes.EXAMPLENAMESERVICE</name>
  1499. <value></value>
  1500. <description>
  1501. The prefix for a given nameservice, contains a comma-separated
  1502. list of namenodes for a given nameservice (eg EXAMPLENAMESERVICE).
  1503. Unique identifiers for each NameNode in the nameservice, delimited by
  1504. commas. This will be used by DataNodes to determine all the NameNodes
  1505. in the cluster. For example, if you used “mycluster” as the nameservice
  1506. ID previously, and you wanted to use “nn1” and “nn2” as the individual
  1507. IDs of the NameNodes, you would configure a property
  1508. dfs.ha.namenodes.mycluster, and its value "nn1,nn2".
  1509. </description>
  1510. </property>
  1511. <property>
  1512. <name>dfs.ha.namenode.id</name>
  1513. <value></value>
  1514. <description>
  1515. The ID of this namenode. If the namenode ID is not configured it
  1516. is determined automatically by matching the local node's address
  1517. with the configured address.
  1518. </description>
  1519. </property>
  1520. <property>
  1521. <name>dfs.ha.log-roll.period</name>
  1522. <value>120s</value>
  1523. <description>
  1524. How often, in seconds, the StandbyNode should ask the active to
  1525. roll edit logs. Since the StandbyNode only reads from finalized
  1526. log segments, the StandbyNode will only be as up-to-date as how
  1527. often the logs are rolled. Note that failover triggers a log roll
  1528. so the StandbyNode will be up to date before it becomes active.
  1529. Support multiple time unit suffix(case insensitive), as described
  1530. in dfs.heartbeat.interval.If no time unit is specified then seconds
  1531. is assumed.
  1532. </description>
  1533. </property>
  1534. <property>
  1535. <name>dfs.ha.tail-edits.period</name>
  1536. <value>60s</value>
  1537. <description>
  1538. How often, the StandbyNode and ObserverNode should check if there are new
  1539. edit log entries ready to be consumed. This is the minimum period between
  1540. checking; exponential backoff will be applied if no edits are found and
  1541. dfs.ha.tail-edits.period.backoff-max is configured. By default, no
  1542. backoff is applied.
  1543. Supports multiple time unit suffix (case insensitive), as described
  1544. in dfs.heartbeat.interval.
  1545. </description>
  1546. </property>
  1547. <property>
  1548. <name>dfs.ha.tail-edits.period.backoff-max</name>
  1549. <value>0</value>
  1550. <description>
  1551. The maximum time the tailer should wait between checking for new edit log
  1552. entries. Exponential backoff will be applied when an edit log tail is
  1553. performed but no edits are available to be read. Values less than or
  1554. equal to zero disable backoff entirely; this is the default behavior.
  1555. Supports multiple time unit suffix (case insensitive), as described
  1556. in dfs.heartbeat.interval.
  1557. </description>
  1558. </property>
  1559. <property>
  1560. <name>dfs.ha.tail-edits.namenode-retries</name>
  1561. <value>3</value>
  1562. <description>
  1563. Number of retries to use when contacting the namenode when tailing the log.
  1564. </description>
  1565. </property>
  1566. <property>
  1567. <name>dfs.ha.tail-edits.rolledits.timeout</name>
  1568. <value>60</value>
  1569. <description>The timeout in seconds of calling rollEdits RPC on Active NN.
  1570. </description>
  1571. </property>
  1572. <property>
  1573. <name>dfs.ha.automatic-failover.enabled</name>
  1574. <value>false</value>
  1575. <description>
  1576. Whether automatic failover is enabled. See the HDFS High
  1577. Availability documentation for details on automatic HA
  1578. configuration.
  1579. </description>
  1580. </property>
  1581. <property>
  1582. <name>dfs.client.use.datanode.hostname</name>
  1583. <value>false</value>
  1584. <description>Whether clients should use datanode hostnames when
  1585. connecting to datanodes.
  1586. </description>
  1587. </property>
  1588. <property>
  1589. <name>dfs.datanode.use.datanode.hostname</name>
  1590. <value>false</value>
  1591. <description>Whether datanodes should use datanode hostnames when
  1592. connecting to other datanodes for data transfer.
  1593. </description>
  1594. </property>
  1595. <property>
  1596. <name>dfs.client.local.interfaces</name>
  1597. <value></value>
  1598. <description>A comma separated list of network interface names to use
  1599. for data transfer between the client and datanodes. When creating
  1600. a connection to read from or write to a datanode, the client
  1601. chooses one of the specified interfaces at random and binds its
  1602. socket to the IP of that interface. Individual names may be
  1603. specified as either an interface name (eg "eth0"), a subinterface
  1604. name (eg "eth0:0"), or an IP address (which may be specified using
  1605. CIDR notation to match a range of IPs).
  1606. </description>
  1607. </property>
  1608. <property>
  1609. <name>dfs.datanode.shared.file.descriptor.paths</name>
  1610. <value>/dev/shm,/tmp</value>
  1611. <description>
  1612. A comma-separated list of paths to use when creating file descriptors that
  1613. will be shared between the DataNode and the DFSClient. Typically we use
  1614. /dev/shm, so that the file descriptors will not be written to disk.
  1615. It tries paths in order until creation of shared memory segment succeeds.
  1616. </description>
  1617. </property>
  1618. <property>
  1619. <name>dfs.short.circuit.shared.memory.watcher.interrupt.check.ms</name>
  1620. <value>60000</value>
  1621. <description>
  1622. The length of time in milliseconds that the short-circuit shared memory
  1623. watcher will go between checking for java interruptions sent from other
  1624. threads. This is provided mainly for unit tests.
  1625. </description>
  1626. </property>
  1627. <property>
  1628. <name>dfs.namenode.kerberos.principal</name>
  1629. <value></value>
  1630. <description>
  1631. The NameNode service principal. This is typically set to
  1632. nn/_HOST@REALM.TLD. Each NameNode will substitute _HOST with its
  1633. own fully qualified hostname at startup. The _HOST placeholder
  1634. allows using the same configuration setting on both NameNodes
  1635. in an HA setup.
  1636. </description>
  1637. </property>
  1638. <property>
  1639. <name>dfs.namenode.keytab.file</name>
  1640. <value></value>
  1641. <description>
  1642. The keytab file used by each NameNode daemon to login as its
  1643. service principal. The principal name is configured with
  1644. dfs.namenode.kerberos.principal.
  1645. </description>
  1646. </property>
  1647. <property>
  1648. <name>dfs.datanode.kerberos.principal</name>
  1649. <value></value>
  1650. <description>
  1651. The DataNode service principal. This is typically set to
  1652. dn/_HOST@REALM.TLD. Each DataNode will substitute _HOST with its
  1653. own fully qualified hostname at startup. The _HOST placeholder
  1654. allows using the same configuration setting on all DataNodes.
  1655. </description>
  1656. </property>
  1657. <property>
  1658. <name>dfs.datanode.keytab.file</name>
  1659. <value></value>
  1660. <description>
  1661. The keytab file used by each DataNode daemon to login as its
  1662. service principal. The principal name is configured with
  1663. dfs.datanode.kerberos.principal.
  1664. </description>
  1665. </property>
  1666. <property>
  1667. <name>dfs.journalnode.kerberos.principal</name>
  1668. <value></value>
  1669. <description>
  1670. The JournalNode service principal. This is typically set to
  1671. jn/_HOST@REALM.TLD. Each JournalNode will substitute _HOST with its
  1672. own fully qualified hostname at startup. The _HOST placeholder
  1673. allows using the same configuration setting on all JournalNodes.
  1674. </description>
  1675. </property>
  1676. <property>
  1677. <name>dfs.journalnode.keytab.file</name>
  1678. <value></value>
  1679. <description>
  1680. The keytab file used by each JournalNode daemon to login as its
  1681. service principal. The principal name is configured with
  1682. dfs.journalnode.kerberos.principal.
  1683. </description>
  1684. </property>
  1685. <property>
  1686. <name>dfs.namenode.kerberos.internal.spnego.principal</name>
  1687. <value>${dfs.web.authentication.kerberos.principal}</value>
  1688. <description>
  1689. The server principal used by the NameNode for web UI SPNEGO
  1690. authentication when Kerberos security is enabled. This is
  1691. typically set to HTTP/_HOST@REALM.TLD The SPNEGO server principal
  1692. begins with the prefix HTTP/ by convention.
  1693. If the value is '*', the web server will attempt to login with
  1694. every principal specified in the keytab file
  1695. dfs.web.authentication.kerberos.keytab.
  1696. </description>
  1697. </property>
  1698. <property>
  1699. <name>dfs.journalnode.kerberos.internal.spnego.principal</name>
  1700. <value></value>
  1701. <description>
  1702. The server principal used by the JournalNode HTTP Server for
  1703. SPNEGO authentication when Kerberos security is enabled. This is
  1704. typically set to HTTP/_HOST@REALM.TLD. The SPNEGO server principal
  1705. begins with the prefix HTTP/ by convention.
  1706. If the value is '*', the web server will attempt to login with
  1707. every principal specified in the keytab file
  1708. dfs.web.authentication.kerberos.keytab.
  1709. For most deployments this can be set to ${dfs.web.authentication.kerberos.principal}
  1710. i.e use the value of dfs.web.authentication.kerberos.principal.
  1711. </description>
  1712. </property>
  1713. <property>
  1714. <name>dfs.secondary.namenode.kerberos.internal.spnego.principal</name>
  1715. <value>${dfs.web.authentication.kerberos.principal}</value>
  1716. <description>
  1717. The server principal used by the Secondary NameNode for web UI SPNEGO
  1718. authentication when Kerberos security is enabled. Like all other
  1719. Secondary NameNode settings, it is ignored in an HA setup.
  1720. If the value is '*', the web server will attempt to login with
  1721. every principal specified in the keytab file
  1722. dfs.web.authentication.kerberos.keytab.
  1723. </description>
  1724. </property>
  1725. <property>
  1726. <name>dfs.web.authentication.kerberos.principal</name>
  1727. <value></value>
  1728. <description>
  1729. The server principal used by the NameNode for WebHDFS SPNEGO
  1730. authentication.
  1731. Required when WebHDFS and security are enabled. In most secure clusters this
  1732. setting is also used to specify the values for
  1733. dfs.namenode.kerberos.internal.spnego.principal and
  1734. dfs.journalnode.kerberos.internal.spnego.principal.
  1735. </description>
  1736. </property>
  1737. <property>
  1738. <name>dfs.web.authentication.kerberos.keytab</name>
  1739. <value></value>
  1740. <description>
  1741. The keytab file for the principal corresponding to
  1742. dfs.web.authentication.kerberos.principal.
  1743. </description>
  1744. </property>
  1745. <property>
  1746. <name>dfs.namenode.kerberos.principal.pattern</name>
  1747. <value>*</value>
  1748. <description>
  1749. A client-side RegEx that can be configured to control
  1750. allowed realms to authenticate with (useful in cross-realm env.)
  1751. </description>
  1752. </property>
  1753. <property>
  1754. <name>dfs.namenode.avoid.read.stale.datanode</name>
  1755. <value>false</value>
  1756. <description>
  1757. Indicate whether or not to avoid reading from &quot;stale&quot; datanodes whose
  1758. heartbeat messages have not been received by the namenode
  1759. for more than a specified time interval. Stale datanodes will be
  1760. moved to the end of the node list returned for reading. See
  1761. dfs.namenode.avoid.write.stale.datanode for a similar setting for writes.
  1762. </description>
  1763. </property>
  1764. <property>
  1765. <name>dfs.namenode.avoid.write.stale.datanode</name>
  1766. <value>false</value>
  1767. <description>
  1768. Indicate whether or not to avoid writing to &quot;stale&quot; datanodes whose
  1769. heartbeat messages have not been received by the namenode
  1770. for more than a specified time interval. Writes will avoid using
  1771. stale datanodes unless more than a configured ratio
  1772. (dfs.namenode.write.stale.datanode.ratio) of datanodes are marked as
  1773. stale. See dfs.namenode.avoid.read.stale.datanode for a similar setting
  1774. for reads.
  1775. </description>
  1776. </property>
  1777. <property>
  1778. <name>dfs.namenode.stale.datanode.interval</name>
  1779. <value>30000</value>
  1780. <description>
  1781. Default time interval in milliseconds for marking a datanode as "stale",
  1782. i.e., if the namenode has not received heartbeat msg from a datanode for
  1783. more than this time interval, the datanode will be marked and treated
  1784. as "stale" by default. The stale interval cannot be too small since
  1785. otherwise this may cause too frequent change of stale states.
  1786. We thus set a minimum stale interval value (the default value is 3 times
  1787. of heartbeat interval) and guarantee that the stale interval cannot be less
  1788. than the minimum value. A stale data node is avoided during lease/block
  1789. recovery. It can be conditionally avoided for reads (see
  1790. dfs.namenode.avoid.read.stale.datanode) and for writes (see
  1791. dfs.namenode.avoid.write.stale.datanode).
  1792. </description>
  1793. </property>
  1794. <property>
  1795. <name>dfs.namenode.write.stale.datanode.ratio</name>
  1796. <value>0.5f</value>
  1797. <description>
  1798. When the ratio of number stale datanodes to total datanodes marked
  1799. is greater than this ratio, stop avoiding writing to stale nodes so
  1800. as to prevent causing hotspots.
  1801. </description>
  1802. </property>
  1803. <property>
  1804. <name>dfs.namenode.invalidate.work.pct.per.iteration</name>
  1805. <value>0.32f</value>
  1806. <description>
  1807. *Note*: Advanced property. Change with caution.
  1808. This determines the percentage amount of block
  1809. invalidations (deletes) to do over a single DN heartbeat
  1810. deletion command. The final deletion count is determined by applying this
  1811. percentage to the number of live nodes in the system.
  1812. The resultant number is the number of blocks from the deletion list
  1813. chosen for proper invalidation over a single heartbeat of a single DN.
  1814. Value should be a positive, non-zero percentage in float notation (X.Yf),
  1815. with 1.0f meaning 100%.
  1816. </description>
  1817. </property>
  1818. <property>
  1819. <name>dfs.namenode.replication.work.multiplier.per.iteration</name>
  1820. <value>2</value>
  1821. <description>
  1822. *Note*: Advanced property. Change with caution.
  1823. This determines the total amount of block transfers to begin in
  1824. parallel at a DN, for replication, when such a command list is being
  1825. sent over a DN heartbeat by the NN. The actual number is obtained by
  1826. multiplying this multiplier with the total number of live nodes in the
  1827. cluster. The result number is the number of blocks to begin transfers
  1828. immediately for, per DN heartbeat. This number can be any positive,
  1829. non-zero integer.
  1830. </description>
  1831. </property>
  1832. <property>
  1833. <name>nfs.server.port</name>
  1834. <value>2049</value>
  1835. <description>
  1836. Specify the port number used by Hadoop NFS.
  1837. </description>
  1838. </property>
  1839. <property>
  1840. <name>nfs.mountd.port</name>
  1841. <value>4242</value>
  1842. <description>
  1843. Specify the port number used by Hadoop mount daemon.
  1844. </description>
  1845. </property>
  1846. <property>
  1847. <name>nfs.dump.dir</name>
  1848. <value>/tmp/.hdfs-nfs</value>
  1849. <description>
  1850. This directory is used to temporarily save out-of-order writes before
  1851. writing to HDFS. For each file, the out-of-order writes are dumped after
  1852. they are accumulated to exceed certain threshold (e.g., 1MB) in memory.
  1853. One needs to make sure the directory has enough space.
  1854. </description>
  1855. </property>
  1856. <property>
  1857. <name>nfs.rtmax</name>
  1858. <value>1048576</value>
  1859. <description>This is the maximum size in bytes of a READ request
  1860. supported by the NFS gateway. If you change this, make sure you
  1861. also update the nfs mount's rsize(add rsize= # of bytes to the
  1862. mount directive).
  1863. </description>
  1864. </property>
  1865. <property>
  1866. <name>nfs.wtmax</name>
  1867. <value>1048576</value>
  1868. <description>This is the maximum size in bytes of a WRITE request
  1869. supported by the NFS gateway. If you change this, make sure you
  1870. also update the nfs mount's wsize(add wsize= # of bytes to the
  1871. mount directive).
  1872. </description>
  1873. </property>
  1874. <property>
  1875. <name>nfs.keytab.file</name>
  1876. <value></value>
  1877. <description>
  1878. *Note*: Advanced property. Change with caution.
  1879. This is the path to the keytab file for the hdfs-nfs gateway.
  1880. This is required when the cluster is kerberized.
  1881. </description>
  1882. </property>
  1883. <property>
  1884. <name>nfs.kerberos.principal</name>
  1885. <value></value>
  1886. <description>
  1887. *Note*: Advanced property. Change with caution.
  1888. This is the name of the kerberos principal. This is required when
  1889. the cluster is kerberized.It must be of this format:
  1890. nfs-gateway-user/nfs-gateway-host@kerberos-realm
  1891. </description>
  1892. </property>
  1893. <property>
  1894. <name>nfs.allow.insecure.ports</name>
  1895. <value>true</value>
  1896. <description>
  1897. When set to false, client connections originating from unprivileged ports
  1898. (those above 1023) will be rejected. This is to ensure that clients
  1899. connecting to this NFS Gateway must have had root privilege on the machine
  1900. where they're connecting from.
  1901. </description>
  1902. </property>
  1903. <property>
  1904. <name>hadoop.fuse.connection.timeout</name>
  1905. <value>300</value>
  1906. <description>
  1907. The minimum number of seconds that we'll cache libhdfs connection objects
  1908. in fuse_dfs. Lower values will result in lower memory consumption; higher
  1909. values may speed up access by avoiding the overhead of creating new
  1910. connection objects.
  1911. </description>
  1912. </property>
  1913. <property>
  1914. <name>hadoop.fuse.timer.period</name>
  1915. <value>5</value>
  1916. <description>
  1917. The number of seconds between cache expiry checks in fuse_dfs. Lower values
  1918. will result in fuse_dfs noticing changes to Kerberos ticket caches more
  1919. quickly.
  1920. </description>
  1921. </property>
  1922. <property>
  1923. <name>dfs.namenode.metrics.logger.period.seconds</name>
  1924. <value>600</value>
  1925. <description>
  1926. This setting controls how frequently the NameNode logs its metrics. The
  1927. logging configuration must also define one or more appenders for
  1928. NameNodeMetricsLog for the metrics to be logged.
  1929. NameNode metrics logging is disabled if this value is set to zero or
  1930. less than zero.
  1931. </description>
  1932. </property>
  1933. <property>
  1934. <name>dfs.datanode.metrics.logger.period.seconds</name>
  1935. <value>600</value>
  1936. <description>
  1937. This setting controls how frequently the DataNode logs its metrics. The
  1938. logging configuration must also define one or more appenders for
  1939. DataNodeMetricsLog for the metrics to be logged.
  1940. DataNode metrics logging is disabled if this value is set to zero or
  1941. less than zero.
  1942. </description>
  1943. </property>
  1944. <property>
  1945. <name>dfs.metrics.percentiles.intervals</name>
  1946. <value></value>
  1947. <description>
  1948. Comma-delimited set of integers denoting the desired rollover intervals
  1949. (in seconds) for percentile latency metrics on the Namenode and Datanode.
  1950. By default, percentile latency metrics are disabled.
  1951. </description>
  1952. </property>
  1953. <property>
  1954. <name>dfs.datanode.peer.stats.enabled</name>
  1955. <value>false</value>
  1956. <description>
  1957. A switch to turn on/off tracking DataNode peer statistics.
  1958. </description>
  1959. </property>
  1960. <property>
  1961. <name>dfs.datanode.peer.metrics.min.outlier.detection.samples</name>
  1962. <value>1000</value>
  1963. <description>
  1964. Minimum number of packet send samples which are required to qualify for outlier detection.
  1965. If the number of samples is below this then outlier detection is skipped.
  1966. </description>
  1967. </property>
  1968. <property>
  1969. <name>dfs.datanode.outliers.report.interval</name>
  1970. <value>30m</value>
  1971. <description>
  1972. This setting controls how frequently DataNodes will report their peer
  1973. latencies to the NameNode via heartbeats. This setting supports
  1974. multiple time unit suffixes as described in dfs.heartbeat.interval.
  1975. If no suffix is specified then milliseconds is assumed.
  1976. It is ignored if dfs.datanode.peer.stats.enabled is false.
  1977. </description>
  1978. </property>
  1979. <property>
  1980. <name>dfs.datanode.fileio.profiling.sampling.percentage</name>
  1981. <value>0</value>
  1982. <description>
  1983. This setting controls the percentage of file I/O events which will be
  1984. profiled for DataNode disk statistics. The default value of 0 disables
  1985. disk statistics. Set to an integer value between 1 and 100 to enable disk
  1986. statistics.
  1987. </description>
  1988. </property>
  1989. <property>
  1990. <name>hadoop.user.group.metrics.percentiles.intervals</name>
  1991. <value></value>
  1992. <description>
  1993. A comma-separated list of the granularity in seconds for the metrics
  1994. which describe the 50/75/90/95/99th percentile latency for group resolution
  1995. in milliseconds.
  1996. By default, percentile latency metrics are disabled.
  1997. </description>
  1998. </property>
  1999. <property>
  2000. <name>dfs.encrypt.data.transfer</name>
  2001. <value>false</value>
  2002. <description>
  2003. Whether or not actual block data that is read/written from/to HDFS should
  2004. be encrypted on the wire. This only needs to be set on the NN and DNs,
  2005. clients will deduce this automatically. It is possible to override this setting
  2006. per connection by specifying custom logic via dfs.trustedchannel.resolver.class.
  2007. </description>
  2008. </property>
  2009. <property>
  2010. <name>dfs.encrypt.data.transfer.algorithm</name>
  2011. <value></value>
  2012. <description>
  2013. This value may be set to either "3des" or "rc4". If nothing is set, then
  2014. the configured JCE default on the system is used (usually 3DES.) It is
  2015. widely believed that 3DES is more cryptographically secure, but RC4 is
  2016. substantially faster.
  2017. Note that if AES is supported by both the client and server then this
  2018. encryption algorithm will only be used to initially transfer keys for AES.
  2019. (See dfs.encrypt.data.transfer.cipher.suites.)
  2020. </description>
  2021. </property>
  2022. <property>
  2023. <name>dfs.encrypt.data.transfer.cipher.suites</name>
  2024. <value></value>
  2025. <description>
  2026. This value may be either undefined or AES/CTR/NoPadding. If defined, then
  2027. dfs.encrypt.data.transfer uses the specified cipher suite for data
  2028. encryption. If not defined, then only the algorithm specified in
  2029. dfs.encrypt.data.transfer.algorithm is used. By default, the property is
  2030. not defined.
  2031. </description>
  2032. </property>
  2033. <property>
  2034. <name>dfs.encrypt.data.transfer.cipher.key.bitlength</name>
  2035. <value>128</value>
  2036. <description>
  2037. The key bitlength negotiated by dfsclient and datanode for encryption.
  2038. This value may be set to either 128, 192 or 256.
  2039. </description>
  2040. </property>
  2041. <property>
  2042. <name>dfs.trustedchannel.resolver.class</name>
  2043. <value></value>
  2044. <description>
  2045. TrustedChannelResolver is used to determine whether a channel
  2046. is trusted for plain data transfer. The TrustedChannelResolver is
  2047. invoked on both client and server side. If the resolver indicates
  2048. that the channel is trusted, then the data transfer will not be
  2049. encrypted even if dfs.encrypt.data.transfer is set to true. The
  2050. default implementation returns false indicating that the channel
  2051. is not trusted.
  2052. </description>
  2053. </property>
  2054. <property>
  2055. <name>dfs.data.transfer.protection</name>
  2056. <value></value>
  2057. <description>
  2058. A comma-separated list of SASL protection values used for secured
  2059. connections to the DataNode when reading or writing block data. Possible
  2060. values are authentication, integrity and privacy. authentication means
  2061. authentication only and no integrity or privacy; integrity implies
  2062. authentication and integrity are enabled; and privacy implies all of
  2063. authentication, integrity and privacy are enabled. If
  2064. dfs.encrypt.data.transfer is set to true, then it supersedes the setting for
  2065. dfs.data.transfer.protection and enforces that all connections must use a
  2066. specialized encrypted SASL handshake. This property is ignored for
  2067. connections to a DataNode listening on a privileged port. In this case, it
  2068. is assumed that the use of a privileged port establishes sufficient trust.
  2069. </description>
  2070. </property>
  2071. <property>
  2072. <name>dfs.data.transfer.saslproperties.resolver.class</name>
  2073. <value></value>
  2074. <description>
  2075. SaslPropertiesResolver used to resolve the QOP used for a connection to the
  2076. DataNode when reading or writing block data. If not specified, the value of
  2077. hadoop.security.saslproperties.resolver.class is used as the default value.
  2078. </description>
  2079. </property>
  2080. <property>
  2081. <name>dfs.journalnode.rpc-address</name>
  2082. <value>0.0.0.0:8485</value>
  2083. <description>
  2084. The JournalNode RPC server address and port.
  2085. </description>
  2086. </property>
  2087. <property>
  2088. <name>dfs.journalnode.rpc-bind-host</name>
  2089. <value></value>
  2090. <description>
  2091. The actual address the RPC server will bind to. If this optional address is
  2092. set, it overrides only the hostname portion of dfs.journalnode.rpc-address.
  2093. This is useful for making the JournalNode listen on all interfaces by
  2094. setting it to 0.0.0.0.
  2095. </description>
  2096. </property>
  2097. <property>
  2098. <name>dfs.journalnode.http-address</name>
  2099. <value>0.0.0.0:8480</value>
  2100. <description>
  2101. The address and port the JournalNode HTTP server listens on.
  2102. If the port is 0 then the server will start on a free port.
  2103. </description>
  2104. </property>
  2105. <property>
  2106. <name>dfs.journalnode.http-bind-host</name>
  2107. <value></value>
  2108. <description>
  2109. The actual address the HTTP server will bind to. If this optional address
  2110. is set, it overrides only the hostname portion of
  2111. dfs.journalnode.http-address. This is useful for making the JournalNode
  2112. HTTP server listen on allinterfaces by setting it to 0.0.0.0.
  2113. </description>
  2114. </property>
  2115. <property>
  2116. <name>dfs.journalnode.https-address</name>
  2117. <value>0.0.0.0:8481</value>
  2118. <description>
  2119. The address and port the JournalNode HTTPS server listens on.
  2120. If the port is 0 then the server will start on a free port.
  2121. </description>
  2122. </property>
  2123. <property>
  2124. <name>dfs.journalnode.https-bind-host</name>
  2125. <value></value>
  2126. <description>
  2127. The actual address the HTTP server will bind to. If this optional address
  2128. is set, it overrides only the hostname portion of
  2129. dfs.journalnode.https-address. This is useful for making the JournalNode
  2130. HTTP server listen on all interfaces by setting it to 0.0.0.0.
  2131. </description>
  2132. </property>
  2133. <property>
  2134. <name>dfs.namenode.audit.loggers</name>
  2135. <value>default</value>
  2136. <description>
  2137. List of classes implementing audit loggers that will receive audit events.
  2138. These should be implementations of org.apache.hadoop.hdfs.server.namenode.AuditLogger.
  2139. The special value "default" can be used to reference the default audit
  2140. logger, which uses the configured log system. Installing custom audit loggers
  2141. may affect the performance and stability of the NameNode. Refer to the custom
  2142. logger's documentation for more details.
  2143. </description>
  2144. </property>
  2145. <property>
  2146. <name>dfs.datanode.available-space-volume-choosing-policy.balanced-space-threshold</name>
  2147. <value>10737418240</value> <!-- 10 GB -->
  2148. <description>
  2149. Only used when the dfs.datanode.fsdataset.volume.choosing.policy is set to
  2150. org.apache.hadoop.hdfs.server.datanode.fsdataset.AvailableSpaceVolumeChoosingPolicy.
  2151. This setting controls how much DN volumes are allowed to differ in terms of
  2152. bytes of free disk space before they are considered imbalanced. If the free
  2153. space of all the volumes are within this range of each other, the volumes
  2154. will be considered balanced and block assignments will be done on a pure
  2155. round robin basis. Support multiple size unit suffix(case insensitive), as
  2156. described in dfs.blocksize.
  2157. </description>
  2158. </property>
  2159. <property>
  2160. <name>dfs.datanode.available-space-volume-choosing-policy.balanced-space-preference-fraction</name>
  2161. <value>0.75f</value>
  2162. <description>
  2163. Only used when the dfs.datanode.fsdataset.volume.choosing.policy is set to
  2164. org.apache.hadoop.hdfs.server.datanode.fsdataset.AvailableSpaceVolumeChoosingPolicy.
  2165. This setting controls what percentage of new block allocations will be sent
  2166. to volumes with more available disk space than others. This setting should
  2167. be in the range 0.0 - 1.0, though in practice 0.5 - 1.0, since there should
  2168. be no reason to prefer that volumes with less available disk space receive
  2169. more block allocations.
  2170. </description>
  2171. </property>
  2172. <property>
  2173. <name>dfs.namenode.edits.noeditlogchannelflush</name>
  2174. <value>false</value>
  2175. <description>
  2176. Specifies whether to flush edit log file channel. When set, expensive
  2177. FileChannel#force calls are skipped and synchronous disk writes are
  2178. enabled instead by opening the edit log file with RandomAccessFile("rws")
  2179. flags. This can significantly improve the performance of edit log writes
  2180. on the Windows platform.
  2181. Note that the behavior of the "rws" flags is platform and hardware specific
  2182. and might not provide the same level of guarantees as FileChannel#force.
  2183. For example, the write will skip the disk-cache on SAS and SCSI devices
  2184. while it might not on SATA devices. This is an expert level setting,
  2185. change with caution.
  2186. </description>
  2187. </property>
  2188. <property>
  2189. <name>dfs.client.cache.drop.behind.writes</name>
  2190. <value></value>
  2191. <description>
  2192. Just like dfs.datanode.drop.cache.behind.writes, this setting causes the
  2193. page cache to be dropped behind HDFS writes, potentially freeing up more
  2194. memory for other uses. Unlike dfs.datanode.drop.cache.behind.writes, this
  2195. is a client-side setting rather than a setting for the entire datanode.
  2196. If present, this setting will override the DataNode default.
  2197. If the native libraries are not available to the DataNode, this
  2198. configuration has no effect.
  2199. </description>
  2200. </property>
  2201. <property>
  2202. <name>dfs.client.cache.drop.behind.reads</name>
  2203. <value></value>
  2204. <description>
  2205. Just like dfs.datanode.drop.cache.behind.reads, this setting causes the
  2206. page cache to be dropped behind HDFS reads, potentially freeing up more
  2207. memory for other uses. Unlike dfs.datanode.drop.cache.behind.reads, this
  2208. is a client-side setting rather than a setting for the entire datanode. If
  2209. present, this setting will override the DataNode default.
  2210. If the native libraries are not available to the DataNode, this
  2211. configuration has no effect.
  2212. </description>
  2213. </property>
  2214. <property>
  2215. <name>dfs.client.cache.readahead</name>
  2216. <value></value>
  2217. <description>
  2218. When using remote reads, this setting causes the datanode to
  2219. read ahead in the block file using posix_fadvise, potentially decreasing
  2220. I/O wait times. Unlike dfs.datanode.readahead.bytes, this is a client-side
  2221. setting rather than a setting for the entire datanode. If present, this
  2222. setting will override the DataNode default. Support multiple size unit
  2223. suffix(case insensitive), as described in dfs.blocksize.
  2224. When using local reads, this setting determines how much readahead we do in
  2225. BlockReaderLocal.
  2226. If the native libraries are not available to the DataNode, this
  2227. configuration has no effect.
  2228. </description>
  2229. </property>
  2230. <property>
  2231. <name>dfs.client.server-defaults.validity.period.ms</name>
  2232. <value>3600000</value>
  2233. <description>
  2234. The amount of milliseconds after which cached server defaults are updated.
  2235. By default this parameter is set to 1 hour.
  2236. </description>
  2237. </property>
  2238. <property>
  2239. <name>dfs.namenode.enable.retrycache</name>
  2240. <value>true</value>
  2241. <description>
  2242. This enables the retry cache on the namenode. Namenode tracks for
  2243. non-idempotent requests the corresponding response. If a client retries the
  2244. request, the response from the retry cache is sent. Such operations
  2245. are tagged with annotation @AtMostOnce in namenode protocols. It is
  2246. recommended that this flag be set to true. Setting it to false, will result
  2247. in clients getting failure responses to retried request. This flag must
  2248. be enabled in HA setup for transparent fail-overs.
  2249. The entries in the cache have expiration time configurable
  2250. using dfs.namenode.retrycache.expirytime.millis.
  2251. </description>
  2252. </property>
  2253. <property>
  2254. <name>dfs.namenode.retrycache.expirytime.millis</name>
  2255. <value>600000</value>
  2256. <description>
  2257. The time for which retry cache entries are retained.
  2258. </description>
  2259. </property>
  2260. <property>
  2261. <name>dfs.namenode.retrycache.heap.percent</name>
  2262. <value>0.03f</value>
  2263. <description>
  2264. This parameter configures the heap size allocated for retry cache
  2265. (excluding the response cached). This corresponds to approximately
  2266. 4096 entries for every 64MB of namenode process java heap size.
  2267. Assuming retry cache entry expiration time (configured using
  2268. dfs.namenode.retrycache.expirytime.millis) of 10 minutes, this
  2269. enables retry cache to support 7 operations per second sustained
  2270. for 10 minutes. As the heap size is increased, the operation rate
  2271. linearly increases.
  2272. </description>
  2273. </property>
  2274. <property>
  2275. <name>dfs.client.mmap.enabled</name>
  2276. <value>true</value>
  2277. <description>
  2278. If this is set to false, the client won't attempt to perform memory-mapped reads.
  2279. </description>
  2280. </property>
  2281. <property>
  2282. <name>dfs.client.mmap.cache.size</name>
  2283. <value>256</value>
  2284. <description>
  2285. When zero-copy reads are used, the DFSClient keeps a cache of recently used
  2286. memory mapped regions. This parameter controls the maximum number of
  2287. entries that we will keep in that cache.
  2288. The larger this number is, the more file descriptors we will potentially
  2289. use for memory-mapped files. mmaped files also use virtual address space.
  2290. You may need to increase your ulimit virtual address space limits before
  2291. increasing the client mmap cache size.
  2292. Note that you can still do zero-copy reads when this size is set to 0.
  2293. </description>
  2294. </property>
  2295. <property>
  2296. <name>dfs.client.mmap.cache.timeout.ms</name>
  2297. <value>3600000</value>
  2298. <description>
  2299. The minimum length of time that we will keep an mmap entry in the cache
  2300. between uses. If an entry is in the cache longer than this, and nobody
  2301. uses it, it will be removed by a background thread.
  2302. </description>
  2303. </property>
  2304. <property>
  2305. <name>dfs.client.mmap.retry.timeout.ms</name>
  2306. <value>300000</value>
  2307. <description>
  2308. The minimum amount of time that we will wait before retrying a failed mmap
  2309. operation.
  2310. </description>
  2311. </property>
  2312. <property>
  2313. <name>dfs.client.short.circuit.replica.stale.threshold.ms</name>
  2314. <value>1800000</value>
  2315. <description>
  2316. The maximum amount of time that we will consider a short-circuit replica to
  2317. be valid, if there is no communication from the DataNode. After this time
  2318. has elapsed, we will re-fetch the short-circuit replica even if it is in
  2319. the cache.
  2320. </description>
  2321. </property>
  2322. <property>
  2323. <name>dfs.namenode.caching.enabled</name>
  2324. <value>true</value>
  2325. <description>
  2326. Set to true to enable block caching. This flag enables the NameNode to
  2327. maintain a mapping of cached blocks to DataNodes via processing DataNode
  2328. cache reports. Based on these reports and addition and removal of caching
  2329. directives, the NameNode will schedule caching and uncaching work.
  2330. </description>
  2331. </property>
  2332. <property>
  2333. <name>dfs.namenode.path.based.cache.block.map.allocation.percent</name>
  2334. <value>0.25</value>
  2335. <description>
  2336. The percentage of the Java heap which we will allocate to the cached blocks
  2337. map. The cached blocks map is a hash map which uses chained hashing.
  2338. Smaller maps may be accessed more slowly if the number of cached blocks is
  2339. large; larger maps will consume more memory.
  2340. </description>
  2341. </property>
  2342. <property>
  2343. <name>dfs.datanode.max.locked.memory</name>
  2344. <value>0</value>
  2345. <description>
  2346. The amount of memory in bytes to use for caching of block replicas in
  2347. memory on the datanode. The datanode's maximum locked memory soft ulimit
  2348. (RLIMIT_MEMLOCK) must be set to at least this value, else the datanode
  2349. will abort on startup. Support multiple size unit suffix(case insensitive),
  2350. as described in dfs.blocksize.
  2351. By default, this parameter is set to 0, which disables in-memory caching.
  2352. If the native libraries are not available to the DataNode, this
  2353. configuration has no effect.
  2354. </description>
  2355. </property>
  2356. <property>
  2357. <name>dfs.datanode.cache.pmem.dirs</name>
  2358. <value></value>
  2359. <description>
  2360. This value specifies the persistent memory directory used for caching block
  2361. replica. It matters only if the value of dfs.datanode.cache.loader.class is
  2362. PmemMappableBlockLoader. Multiple directories separated by "," are acceptable.
  2363. </description>
  2364. </property>
  2365. <property>
  2366. <name>dfs.namenode.list.cache.directives.num.responses</name>
  2367. <value>100</value>
  2368. <description>
  2369. This value controls the number of cache directives that the NameNode will
  2370. send over the wire in response to a listDirectives RPC.
  2371. </description>
  2372. </property>
  2373. <property>
  2374. <name>dfs.namenode.list.cache.pools.num.responses</name>
  2375. <value>100</value>
  2376. <description>
  2377. This value controls the number of cache pools that the NameNode will
  2378. send over the wire in response to a listPools RPC.
  2379. </description>
  2380. </property>
  2381. <property>
  2382. <name>dfs.namenode.path.based.cache.refresh.interval.ms</name>
  2383. <value>30000</value>
  2384. <description>
  2385. The amount of milliseconds between subsequent path cache rescans. Path
  2386. cache rescans are when we calculate which blocks should be cached, and on
  2387. what datanodes.
  2388. By default, this parameter is set to 30 seconds.
  2389. </description>
  2390. </property>
  2391. <property>
  2392. <name>dfs.namenode.path.based.cache.retry.interval.ms</name>
  2393. <value>30000</value>
  2394. <description>
  2395. When the NameNode needs to uncache something that is cached, or cache
  2396. something that is not cached, it must direct the DataNodes to do so by
  2397. sending a DNA_CACHE or DNA_UNCACHE command in response to a DataNode
  2398. heartbeat. This parameter controls how frequently the NameNode will
  2399. resend these commands.
  2400. </description>
  2401. </property>
  2402. <property>
  2403. <name>dfs.datanode.fsdatasetcache.max.threads.per.volume</name>
  2404. <value>4</value>
  2405. <description>
  2406. The maximum number of threads per volume to use for caching new data
  2407. on the datanode. These threads consume both I/O and CPU. This can affect
  2408. normal datanode operations.
  2409. </description>
  2410. </property>
  2411. <property>
  2412. <name>dfs.cachereport.intervalMsec</name>
  2413. <value>10000</value>
  2414. <description>
  2415. Determines cache reporting interval in milliseconds. After this amount of
  2416. time, the DataNode sends a full report of its cache state to the NameNode.
  2417. The NameNode uses the cache report to update its map of cached blocks to
  2418. DataNode locations.
  2419. This configuration has no effect if in-memory caching has been disabled by
  2420. setting dfs.datanode.max.locked.memory to 0 (which is the default).
  2421. If the native libraries are not available to the DataNode, this
  2422. configuration has no effect.
  2423. </description>
  2424. </property>
  2425. <property>
  2426. <name>dfs.namenode.edit.log.autoroll.multiplier.threshold</name>
  2427. <value>0.5</value>
  2428. <description>
  2429. Determines when an active namenode will roll its own edit log.
  2430. The actual threshold (in number of edits) is determined by multiplying
  2431. this value by dfs.namenode.checkpoint.txns.
  2432. This prevents extremely large edit files from accumulating on the active
  2433. namenode, which can cause timeouts during namenode startup and pose an
  2434. administrative hassle. This behavior is intended as a failsafe for when
  2435. the standby or secondary namenode fail to roll the edit log by the normal
  2436. checkpoint threshold.
  2437. </description>
  2438. </property>
  2439. <property>
  2440. <name>dfs.namenode.edit.log.autoroll.check.interval.ms</name>
  2441. <value>300000</value>
  2442. <description>
  2443. How often an active namenode will check if it needs to roll its edit log,
  2444. in milliseconds.
  2445. </description>
  2446. </property>
  2447. <property>
  2448. <name>dfs.webhdfs.user.provider.user.pattern</name>
  2449. <value>^[A-Za-z_][A-Za-z0-9._-]*[$]?$</value>
  2450. <description>
  2451. Valid pattern for user and group names for webhdfs, it must be a valid java regex.
  2452. </description>
  2453. </property>
  2454. <property>
  2455. <name>dfs.webhdfs.acl.provider.permission.pattern</name>
  2456. <value>^(default:)?(user|group|mask|other):[[A-Za-z_][A-Za-z0-9._-]]*:([rwx-]{3})?(,(default:)?(user|group|mask|other):[[A-Za-z_][A-Za-z0-9._-]]*:([rwx-]{3})?)*$</value>
  2457. <description>
  2458. Valid pattern for user and group names in webhdfs acl operations, it must be a valid java regex.
  2459. </description>
  2460. </property>
  2461. <property>
  2462. <name>dfs.webhdfs.socket.connect-timeout</name>
  2463. <value>60s</value>
  2464. <description>
  2465. Socket timeout for connecting to WebHDFS servers. This prevents a
  2466. WebHDFS client from hanging if the server hostname is
  2467. misconfigured, or the server does not response before the timeout
  2468. expires. Value is followed by a unit specifier: ns, us, ms, s, m,
  2469. h, d for nanoseconds, microseconds, milliseconds, seconds,
  2470. minutes, hours, days respectively. Values should provide units,
  2471. but milliseconds are assumed.
  2472. </description>
  2473. </property>
  2474. <property>
  2475. <name>dfs.webhdfs.socket.read-timeout</name>
  2476. <value>60s</value>
  2477. <description>
  2478. Socket timeout for reading data from WebHDFS servers. This
  2479. prevents a WebHDFS client from hanging if the server stops sending
  2480. data. Value is followed by a unit specifier: ns, us, ms, s, m, h,
  2481. d for nanoseconds, microseconds, milliseconds, seconds, minutes,
  2482. hours, days respectively. Values should provide units,
  2483. but milliseconds are assumed.
  2484. </description>
  2485. </property>
  2486. <property>
  2487. <name>dfs.client.context</name>
  2488. <value>default</value>
  2489. <description>
  2490. The name of the DFSClient context that we should use. Clients that share
  2491. a context share a socket cache and short-circuit cache, among other things.
  2492. You should only change this if you don't want to share with another set of
  2493. threads.
  2494. </description>
  2495. </property>
  2496. <property>
  2497. <name>dfs.client.read.shortcircuit</name>
  2498. <value>false</value>
  2499. <description>
  2500. This configuration parameter turns on short-circuit local reads.
  2501. </description>
  2502. </property>
  2503. <property>
  2504. <name>dfs.client.socket.send.buffer.size</name>
  2505. <value>0</value>
  2506. <description>
  2507. Socket send buffer size for a write pipeline in DFSClient side.
  2508. This may affect TCP connection throughput.
  2509. If it is set to zero or negative value,
  2510. no buffer size will be set explicitly,
  2511. thus enable tcp auto-tuning on some system.
  2512. The default value is 0.
  2513. </description>
  2514. </property>
  2515. <property>
  2516. <name>dfs.domain.socket.path</name>
  2517. <value></value>
  2518. <description>
  2519. Optional. This is a path to a UNIX domain socket that will be used for
  2520. communication between the DataNode and local HDFS clients.
  2521. If the string "_PORT" is present in this path, it will be replaced by the
  2522. TCP port of the DataNode.
  2523. </description>
  2524. </property>
  2525. <property>
  2526. <name>dfs.domain.socket.disable.interval.seconds</name>
  2527. <value>600</value>
  2528. <description>
  2529. The interval that a DataNode is disabled for future Short-Circuit Reads,
  2530. after an error happens during a Short-Circuit Read. Setting this to 0 will
  2531. not disable Short-Circuit Reads at all after errors happen. Negative values
  2532. are invalid.
  2533. </description>
  2534. </property>
  2535. <property>
  2536. <name>dfs.client.read.shortcircuit.skip.checksum</name>
  2537. <value>false</value>
  2538. <description>
  2539. If this configuration parameter is set,
  2540. short-circuit local reads will skip checksums.
  2541. This is normally not recommended,
  2542. but it may be useful for special setups.
  2543. You might consider using this
  2544. if you are doing your own checksumming outside of HDFS.
  2545. </description>
  2546. </property>
  2547. <property>
  2548. <name>dfs.client.read.shortcircuit.streams.cache.size</name>
  2549. <value>256</value>
  2550. <description>
  2551. The DFSClient maintains a cache of recently opened file descriptors.
  2552. This parameter controls the maximum number of file descriptors in the cache.
  2553. Setting this higher will use more file descriptors,
  2554. but potentially provide better performance on workloads
  2555. involving lots of seeks.
  2556. </description>
  2557. </property>
  2558. <property>
  2559. <name>dfs.client.read.shortcircuit.streams.cache.expiry.ms</name>
  2560. <value>300000</value>
  2561. <description>
  2562. This controls the minimum amount of time
  2563. file descriptors need to sit in the client cache context
  2564. before they can be closed for being inactive for too long.
  2565. </description>
  2566. </property>
  2567. <property>
  2568. <name>dfs.namenode.audit.log.debug.cmdlist</name>
  2569. <value></value>
  2570. <description>
  2571. A comma separated list of NameNode commands that are written to the HDFS
  2572. namenode audit log only if the audit log level is debug.
  2573. </description>
  2574. </property>
  2575. <property>
  2576. <name>dfs.client.use.legacy.blockreader.local</name>
  2577. <value>false</value>
  2578. <description>
  2579. Legacy short-circuit reader implementation based on HDFS-2246 is used
  2580. if this configuration parameter is true.
  2581. This is for the platforms other than Linux
  2582. where the new implementation based on HDFS-347 is not available.
  2583. </description>
  2584. </property>
  2585. <property>
  2586. <name>dfs.block.local-path-access.user</name>
  2587. <value></value>
  2588. <description>
  2589. Comma separated list of the users allowed to open block files
  2590. on legacy short-circuit local read.
  2591. </description>
  2592. </property>
  2593. <property>
  2594. <name>dfs.client.domain.socket.data.traffic</name>
  2595. <value>false</value>
  2596. <description>
  2597. This control whether we will try to pass normal data traffic
  2598. over UNIX domain socket rather than over TCP socket
  2599. on node-local data transfer.
  2600. This is currently experimental and turned off by default.
  2601. </description>
  2602. </property>
  2603. <property>
  2604. <name>dfs.namenode.reject-unresolved-dn-topology-mapping</name>
  2605. <value>false</value>
  2606. <description>
  2607. If the value is set to true, then namenode will reject datanode
  2608. registration if the topology mapping for a datanode is not resolved and
  2609. NULL is returned (script defined by net.topology.script.file.name fails
  2610. to execute). Otherwise, datanode will be registered and the default rack
  2611. will be assigned as the topology path. Topology paths are important for
  2612. data resiliency, since they define fault domains. Thus it may be unwanted
  2613. behavior to allow datanode registration with the default rack if the
  2614. resolving topology failed.
  2615. </description>
  2616. </property>
  2617. <property>
  2618. <name>dfs.namenode.xattrs.enabled</name>
  2619. <value>true</value>
  2620. <description>
  2621. Whether support for extended attributes is enabled on the NameNode.
  2622. </description>
  2623. </property>
  2624. <property>
  2625. <name>dfs.namenode.fs-limits.max-xattrs-per-inode</name>
  2626. <value>32</value>
  2627. <description>
  2628. Maximum number of extended attributes per inode.
  2629. </description>
  2630. </property>
  2631. <property>
  2632. <name>dfs.namenode.fs-limits.max-xattr-size</name>
  2633. <value>16384</value>
  2634. <description>
  2635. The maximum combined size of the name and value of an extended attribute
  2636. in bytes. It should be larger than 0, and less than or equal to maximum
  2637. size hard limit which is 32768.
  2638. Support multiple size unit suffix(case insensitive), as described in
  2639. dfs.blocksize.
  2640. </description>
  2641. </property>
  2642. <property>
  2643. <name>dfs.client.slow.io.warning.threshold.ms</name>
  2644. <value>30000</value>
  2645. <description>The threshold in milliseconds at which we will log a slow
  2646. io warning in a dfsclient. By default, this parameter is set to 30000
  2647. milliseconds (30 seconds).
  2648. </description>
  2649. </property>
  2650. <property>
  2651. <name>dfs.datanode.slow.io.warning.threshold.ms</name>
  2652. <value>300</value>
  2653. <description>The threshold in milliseconds at which we will log a slow
  2654. io warning in a datanode. By default, this parameter is set to 300
  2655. milliseconds.
  2656. </description>
  2657. </property>
  2658. <property>
  2659. <name>dfs.namenode.lease-recheck-interval-ms</name>
  2660. <value>2000</value>
  2661. <description>During the release of lease a lock is hold that make any
  2662. operations on the namenode stuck. In order to not block them during
  2663. a too long duration we stop releasing lease after this max lock limit.
  2664. </description>
  2665. </property>
  2666. <property>
  2667. <name>dfs.namenode.max-lock-hold-to-release-lease-ms</name>
  2668. <value>25</value>
  2669. <description>During the release of lease a lock is hold that make any
  2670. operations on the namenode stuck. In order to not block them during
  2671. a too long duration we stop releasing lease after this max lock limit.
  2672. </description>
  2673. </property>
  2674. <property>
  2675. <name>dfs.namenode.write-lock-reporting-threshold-ms</name>
  2676. <value>5000</value>
  2677. <description>When a write lock is held on the namenode for a long time,
  2678. this will be logged as the lock is released. This sets how long the
  2679. lock must be held for logging to occur.
  2680. </description>
  2681. </property>
  2682. <property>
  2683. <name>dfs.namenode.read-lock-reporting-threshold-ms</name>
  2684. <value>5000</value>
  2685. <description>When a read lock is held on the namenode for a long time,
  2686. this will be logged as the lock is released. This sets how long the
  2687. lock must be held for logging to occur.
  2688. </description>
  2689. </property>
  2690. <property>
  2691. <name>dfs.namenode.lock.detailed-metrics.enabled</name>
  2692. <value>false</value>
  2693. <description>If true, the namenode will keep track of how long various
  2694. operations hold the Namesystem lock for and emit this as metrics. These
  2695. metrics have names of the form FSN(Read|Write)LockNanosOperationName,
  2696. where OperationName denotes the name of the operation that initiated the
  2697. lock hold (this will be OTHER for certain uncategorized operations) and
  2698. they export the hold time values in nanoseconds.
  2699. </description>
  2700. </property>
  2701. <property>
  2702. <name>dfs.namenode.fslock.fair</name>
  2703. <value>true</value>
  2704. <description>If this is true, the FS Namesystem lock will be used in Fair mode,
  2705. which will help to prevent writer threads from being starved, but can provide
  2706. lower lock throughput. See java.util.concurrent.locks.ReentrantReadWriteLock
  2707. for more information on fair/non-fair locks.
  2708. </description>
  2709. </property>
  2710. <property>
  2711. <name>dfs.namenode.startup.delay.block.deletion.sec</name>
  2712. <value>0</value>
  2713. <description>The delay in seconds at which we will pause the blocks deletion
  2714. after Namenode startup. By default it's disabled.
  2715. In the case a directory has large number of directories and files are
  2716. deleted, suggested delay is one hour to give the administrator enough time
  2717. to notice large number of pending deletion blocks and take corrective
  2718. action.
  2719. </description>
  2720. </property>
  2721. <property>
  2722. <name>dfs.datanode.block.id.layout.upgrade.threads</name>
  2723. <value>12</value>
  2724. <description>The number of threads to use when creating hard links from
  2725. current to previous blocks during upgrade of a DataNode to block ID-based
  2726. block layout (see HDFS-6482 for details on the layout).</description>
  2727. </property>
  2728. <property>
  2729. <name>dfs.namenode.list.encryption.zones.num.responses</name>
  2730. <value>100</value>
  2731. <description>When listing encryption zones, the maximum number of zones
  2732. that will be returned in a batch. Fetching the list incrementally in
  2733. batches improves namenode performance.
  2734. </description>
  2735. </property>
  2736. <property>
  2737. <name>dfs.namenode.list.reencryption.status.num.responses</name>
  2738. <value>100</value>
  2739. <description>When listing re-encryption status, the maximum number of zones
  2740. that will be returned in a batch. Fetching the list incrementally in
  2741. batches improves namenode performance.
  2742. </description>
  2743. </property>
  2744. <property>
  2745. <name>dfs.namenode.list.openfiles.num.responses</name>
  2746. <value>1000</value>
  2747. <description>
  2748. When listing open files, the maximum number of open files that will be
  2749. returned in a single batch. Fetching the list incrementally in batches
  2750. improves namenode performance.
  2751. </description>
  2752. </property>
  2753. <property>
  2754. <name>dfs.namenode.edekcacheloader.interval.ms</name>
  2755. <value>1000</value>
  2756. <description>When KeyProvider is configured, the interval time of warming
  2757. up edek cache on NN starts up / becomes active. All edeks will be loaded
  2758. from KMS into provider cache. The edek cache loader will try to warm up the
  2759. cache until succeed or NN leaves active state.
  2760. </description>
  2761. </property>
  2762. <property>
  2763. <name>dfs.namenode.edekcacheloader.initial.delay.ms</name>
  2764. <value>3000</value>
  2765. <description>When KeyProvider is configured, the time delayed until the first
  2766. attempt to warm up edek cache on NN start up / become active.
  2767. </description>
  2768. </property>
  2769. <property>
  2770. <name>dfs.namenode.reencrypt.sleep.interval</name>
  2771. <value>1m</value>
  2772. <description>Interval the re-encrypt EDEK thread sleeps in the main loop. The
  2773. interval accepts units. If none given, millisecond is assumed.
  2774. </description>
  2775. </property>
  2776. <property>
  2777. <name>dfs.namenode.reencrypt.batch.size</name>
  2778. <value>1000</value>
  2779. <description>How many EDEKs should the re-encrypt thread process in one batch.
  2780. </description>
  2781. </property>
  2782. <property>
  2783. <name>dfs.namenode.reencrypt.throttle.limit.handler.ratio</name>
  2784. <value>1.0</value>
  2785. <description>Throttling ratio for the re-encryption, indicating what fraction
  2786. of time should the re-encrypt handler thread work under NN read lock.
  2787. Larger than 1.0 values are interpreted as 1.0. Negative value or 0 are
  2788. invalid values and will fail NN startup.
  2789. </description>
  2790. </property>
  2791. <property>
  2792. <name>dfs.namenode.reencrypt.throttle.limit.updater.ratio</name>
  2793. <value>1.0</value>
  2794. <description>Throttling ratio for the re-encryption, indicating what fraction
  2795. of time should the re-encrypt updater thread work under NN write lock.
  2796. Larger than 1.0 values are interpreted as 1.0. Negative value or 0 are
  2797. invalid values and will fail NN startup.
  2798. </description>
  2799. </property>
  2800. <property>
  2801. <name>dfs.namenode.reencrypt.edek.threads</name>
  2802. <value>10</value>
  2803. <description>Maximum number of re-encrypt threads to contact the KMS
  2804. and re-encrypt the edeks.
  2805. </description>
  2806. </property>
  2807. <property>
  2808. <name>dfs.namenode.inotify.max.events.per.rpc</name>
  2809. <value>1000</value>
  2810. <description>Maximum number of events that will be sent to an inotify client
  2811. in a single RPC response. The default value attempts to amortize away
  2812. the overhead for this RPC while avoiding huge memory requirements for the
  2813. client and NameNode (1000 events should consume no more than 1 MB.)
  2814. </description>
  2815. </property>
  2816. <property>
  2817. <name>dfs.user.home.dir.prefix</name>
  2818. <value>/user</value>
  2819. <description>The directory to prepend to user name to get the user's
  2820. home direcotry.
  2821. </description>
  2822. </property>
  2823. <property>
  2824. <name>dfs.datanode.cache.revocation.timeout.ms</name>
  2825. <value>900000</value>
  2826. <description>When the DFSClient reads from a block file which the DataNode is
  2827. caching, the DFSClient can skip verifying checksums. The DataNode will
  2828. keep the block file in cache until the client is done. If the client takes
  2829. an unusually long time, though, the DataNode may need to evict the block
  2830. file from the cache anyway. This value controls how long the DataNode will
  2831. wait for the client to release a replica that it is reading without
  2832. checksums.
  2833. </description>
  2834. </property>
  2835. <property>
  2836. <name>dfs.datanode.cache.revocation.polling.ms</name>
  2837. <value>500</value>
  2838. <description>How often the DataNode should poll to see if the clients have
  2839. stopped using a replica that the DataNode wants to uncache.
  2840. </description>
  2841. </property>
  2842. <property>
  2843. <name>dfs.storage.policy.enabled</name>
  2844. <value>true</value>
  2845. <description>
  2846. Allow users to change the storage policy on files and directories.
  2847. </description>
  2848. </property>
  2849. <property>
  2850. <name>dfs.namenode.legacy-oiv-image.dir</name>
  2851. <value></value>
  2852. <description>Determines where to save the namespace in the old fsimage format
  2853. during checkpointing by standby NameNode or SecondaryNameNode. Users can
  2854. dump the contents of the old format fsimage by oiv_legacy command. If
  2855. the value is not specified, old format fsimage will not be saved in
  2856. checkpoint.
  2857. </description>
  2858. </property>
  2859. <property>
  2860. <name>dfs.namenode.top.enabled</name>
  2861. <value>true</value>
  2862. <description>Enable nntop: reporting top users on namenode
  2863. </description>
  2864. </property>
  2865. <property>
  2866. <name>dfs.namenode.top.window.num.buckets</name>
  2867. <value>10</value>
  2868. <description>Number of buckets in the rolling window implementation of nntop
  2869. </description>
  2870. </property>
  2871. <property>
  2872. <name>dfs.namenode.top.num.users</name>
  2873. <value>10</value>
  2874. <description>Number of top users returned by the top tool
  2875. </description>
  2876. </property>
  2877. <property>
  2878. <name>dfs.namenode.top.windows.minutes</name>
  2879. <value>1,5,25</value>
  2880. <description>comma separated list of nntop reporting periods in minutes
  2881. </description>
  2882. </property>
  2883. <property>
  2884. <name>dfs.webhdfs.ugi.expire.after.access</name>
  2885. <value>600000</value>
  2886. <description>How long in milliseconds after the last access
  2887. the cached UGI will expire. With 0, never expire.
  2888. </description>
  2889. </property>
  2890. <property>
  2891. <name>dfs.namenode.blocks.per.postponedblocks.rescan</name>
  2892. <value>10000</value>
  2893. <description>Number of blocks to rescan for each iteration of
  2894. postponedMisreplicatedBlocks.
  2895. </description>
  2896. </property>
  2897. <property>
  2898. <name>dfs.datanode.block-pinning.enabled</name>
  2899. <value>false</value>
  2900. <description>Whether pin blocks on favored DataNode.</description>
  2901. </property>
  2902. <property>
  2903. <name>dfs.client.block.write.locateFollowingBlock.initial.delay.ms</name>
  2904. <value>400</value>
  2905. <description>The initial delay (unit is ms) for locateFollowingBlock,
  2906. the delay time will increase exponentially(double) for each retry
  2907. until dfs.client.block.write.locateFollowingBlock.max.delay.ms is reached,
  2908. after that the delay for each retry will be
  2909. dfs.client.block.write.locateFollowingBlock.max.delay.ms.
  2910. </description>
  2911. </property>
  2912. <property>
  2913. <name>dfs.client.block.write.locateFollowingBlock.max.delay.ms</name>
  2914. <value>60000</value>
  2915. <description>
  2916. The maximum delay (unit is ms) before retrying locateFollowingBlock.
  2917. </description>
  2918. </property>
  2919. <property>
  2920. <name>dfs.ha.zkfc.nn.http.timeout.ms</name>
  2921. <value>20000</value>
  2922. <description>
  2923. The HTTP connection and read timeout value (unit is ms ) when DFS ZKFC
  2924. tries to get local NN thread dump after local NN becomes
  2925. SERVICE_NOT_RESPONDING or SERVICE_UNHEALTHY.
  2926. If it is set to zero, DFS ZKFC won't get local NN thread dump.
  2927. </description>
  2928. </property>
  2929. <property>
  2930. <name>dfs.ha.nn.not-become-active-in-safemode</name>
  2931. <value>false</value>
  2932. <description>
  2933. This will prevent safe mode namenodes to become active while other standby
  2934. namenodes might be ready to serve requests when it is set to true.
  2935. </description>
  2936. </property>
  2937. <property>
  2938. <name>dfs.ha.tail-edits.in-progress</name>
  2939. <value>false</value>
  2940. <description>
  2941. Whether enable standby namenode to tail in-progress edit logs.
  2942. Clients might want to turn it on when they want Standby NN to have
  2943. more up-to-date data. When using the QuorumJournalManager, this enables
  2944. tailing of edit logs via the RPC-based mechanism, rather than streaming,
  2945. which allows for much fresher data.
  2946. </description>
  2947. </property>
  2948. <property>
  2949. <name>dfs.namenode.ec.system.default.policy</name>
  2950. <value>RS-6-3-1024k</value>
  2951. <description>The default erasure coding policy name will be used
  2952. on the path if no policy name is passed.
  2953. </description>
  2954. </property>
  2955. <property>
  2956. <name>dfs.namenode.ec.policies.max.cellsize</name>
  2957. <value>4194304</value>
  2958. <description>The maximum cell size of erasure coding policy. Default is 4MB.
  2959. </description>
  2960. </property>
  2961. <property>
  2962. <name>dfs.namenode.ec.userdefined.policy.allowed</name>
  2963. <value>true</value>
  2964. <description>If set to false, doesn't allow addition of user defined
  2965. erasure coding policies.
  2966. </description>
  2967. </property>
  2968. <property>
  2969. <name>dfs.datanode.ec.reconstruction.stripedread.timeout.millis</name>
  2970. <value>5000</value>
  2971. <description>Datanode striped read timeout in milliseconds.
  2972. </description>
  2973. </property>
  2974. <property>
  2975. <name>dfs.datanode.ec.reconstruction.stripedread.buffer.size</name>
  2976. <value>65536</value>
  2977. <description>Datanode striped read buffer size.
  2978. </description>
  2979. </property>
  2980. <property>
  2981. <name>dfs.datanode.ec.reconstruction.threads</name>
  2982. <value>8</value>
  2983. <description>
  2984. Number of threads used by the Datanode for background
  2985. reconstruction work.
  2986. </description>
  2987. </property>
  2988. <property>
  2989. <name>dfs.datanode.ec.reconstruction.xmits.weight</name>
  2990. <value>0.5</value>
  2991. <description>
  2992. Datanode uses xmits weight to calculate the relative cost of EC recovery
  2993. tasks comparing to replicated block recovery, of which xmits is always 1.
  2994. Namenode then uses xmits reported from datanode to throttle recovery tasks
  2995. for EC and replicated blocks.
  2996. The xmits of an erasure coding recovery task is calculated as the maximum
  2997. value between the number of read streams and the number of write streams.
  2998. </description>
  2999. </property>
  3000. <property>
  3001. <name>dfs.namenode.quota.init-threads</name>
  3002. <value>4</value>
  3003. <description>
  3004. The number of concurrent threads to be used in quota initialization. The
  3005. speed of quota initialization also affects the namenode fail-over latency.
  3006. If the size of name space is big, try increasing this.
  3007. </description>
  3008. </property>
  3009. <property>
  3010. <name>dfs.datanode.transfer.socket.send.buffer.size</name>
  3011. <value>0</value>
  3012. <description>
  3013. Socket send buffer size for DataXceiver (mirroring packets to downstream
  3014. in pipeline). This may affect TCP connection throughput.
  3015. If it is set to zero or negative value, no buffer size will be set
  3016. explicitly, thus enable tcp auto-tuning on some system.
  3017. The default value is 0.
  3018. </description>
  3019. </property>
  3020. <property>
  3021. <name>dfs.datanode.transfer.socket.recv.buffer.size</name>
  3022. <value>0</value>
  3023. <description>
  3024. Socket receive buffer size for DataXceiver (receiving packets from client
  3025. during block writing). This may affect TCP connection throughput.
  3026. If it is set to zero or negative value, no buffer size will be set
  3027. explicitly, thus enable tcp auto-tuning on some system.
  3028. The default value is 0.
  3029. </description>
  3030. </property>
  3031. <property>
  3032. <name>dfs.namenode.upgrade.domain.factor</name>
  3033. <value>${dfs.replication}</value>
  3034. <description>
  3035. This is valid only when block placement policy is set to
  3036. BlockPlacementPolicyWithUpgradeDomain. It defines the number of
  3037. unique upgrade domains any block's replicas should have.
  3038. When the number of replicas is less or equal to this value, the policy
  3039. ensures each replica has an unique upgrade domain. When the number of
  3040. replicas is greater than this value, the policy ensures the number of
  3041. unique domains is at least this value.
  3042. </description>
  3043. </property>
  3044. <property>
  3045. <name>dfs.datanode.bp-ready.timeout</name>
  3046. <value>20s</value>
  3047. <description>
  3048. The maximum wait time for datanode to be ready before failing the
  3049. received request. Setting this to 0 fails requests right away if the
  3050. datanode is not yet registered with the namenode. This wait time
  3051. reduces initial request failures after datanode restart.
  3052. Support multiple time unit suffix(case insensitive), as described
  3053. in dfs.heartbeat.interval.If no time unit is specified then seconds
  3054. is assumed.
  3055. </description>
  3056. </property>
  3057. <property>
  3058. <name>dfs.datanode.cached-dfsused.check.interval.ms</name>
  3059. <value>600000</value>
  3060. <description>
  3061. The interval check time of loading DU_CACHE_FILE in each volume.
  3062. When the cluster doing the rolling upgrade operations, it will
  3063. usually lead dfsUsed cache file of each volume expired and redo the
  3064. du operations in datanode and that makes datanode start slowly. Adjust
  3065. this property can make cache file be available for the time as you want.
  3066. </description>
  3067. </property>
  3068. <property>
  3069. <name>dfs.webhdfs.rest-csrf.enabled</name>
  3070. <value>false</value>
  3071. <description>
  3072. If true, then enables WebHDFS protection against cross-site request forgery
  3073. (CSRF). The WebHDFS client also uses this property to determine whether or
  3074. not it needs to send the custom CSRF prevention header in its HTTP requests.
  3075. </description>
  3076. </property>
  3077. <property>
  3078. <name>dfs.webhdfs.rest-csrf.custom-header</name>
  3079. <value>X-XSRF-HEADER</value>
  3080. <description>
  3081. The name of a custom header that HTTP requests must send when protection
  3082. against cross-site request forgery (CSRF) is enabled for WebHDFS by setting
  3083. dfs.webhdfs.rest-csrf.enabled to true. The WebHDFS client also uses this
  3084. property to determine whether or not it needs to send the custom CSRF
  3085. prevention header in its HTTP requests.
  3086. </description>
  3087. </property>
  3088. <property>
  3089. <name>dfs.webhdfs.rest-csrf.methods-to-ignore</name>
  3090. <value>GET,OPTIONS,HEAD,TRACE</value>
  3091. <description>
  3092. A comma-separated list of HTTP methods that do not require HTTP requests to
  3093. include a custom header when protection against cross-site request forgery
  3094. (CSRF) is enabled for WebHDFS by setting dfs.webhdfs.rest-csrf.enabled to
  3095. true. The WebHDFS client also uses this property to determine whether or
  3096. not it needs to send the custom CSRF prevention header in its HTTP requests.
  3097. </description>
  3098. </property>
  3099. <property>
  3100. <name>dfs.webhdfs.rest-csrf.browser-useragents-regex</name>
  3101. <value>^Mozilla.*,^Opera.*</value>
  3102. <description>
  3103. A comma-separated list of regular expressions used to match against an HTTP
  3104. request's User-Agent header when protection against cross-site request
  3105. forgery (CSRF) is enabled for WebHDFS by setting
  3106. dfs.webhdfs.reset-csrf.enabled to true. If the incoming User-Agent matches
  3107. any of these regular expressions, then the request is considered to be sent
  3108. by a browser, and therefore CSRF prevention is enforced. If the request's
  3109. User-Agent does not match any of these regular expressions, then the request
  3110. is considered to be sent by something other than a browser, such as scripted
  3111. automation. In this case, CSRF is not a potential attack vector, so
  3112. the prevention is not enforced. This helps achieve backwards-compatibility
  3113. with existing automation that has not been updated to send the CSRF
  3114. prevention header.
  3115. </description>
  3116. </property>
  3117. <property>
  3118. <name>dfs.xframe.enabled</name>
  3119. <value>true</value>
  3120. <description>
  3121. If true, then enables protection against clickjacking by returning
  3122. X_FRAME_OPTIONS header value set to SAMEORIGIN.
  3123. Clickjacking protection prevents an attacker from using transparent or
  3124. opaque layers to trick a user into clicking on a button
  3125. or link on another page.
  3126. </description>
  3127. </property>
  3128. <property>
  3129. <name>dfs.xframe.value</name>
  3130. <value>SAMEORIGIN</value>
  3131. <description>
  3132. This configration value allows user to specify the value for the
  3133. X-FRAME-OPTIONS. The possible values for this field are
  3134. DENY, SAMEORIGIN and ALLOW-FROM. Any other value will throw an
  3135. exception when namenode and datanodes are starting up.
  3136. </description>
  3137. </property>
  3138. <property>
  3139. <name>dfs.balancer.keytab.enabled</name>
  3140. <value>false</value>
  3141. <description>
  3142. Set to true to enable login using a keytab for Kerberized Hadoop.
  3143. </description>
  3144. </property>
  3145. <property>
  3146. <name>dfs.balancer.address</name>
  3147. <value>0.0.0.0:0</value>
  3148. <description>
  3149. The hostname used for a keytab based Kerberos login. Keytab based login
  3150. can be enabled with dfs.balancer.keytab.enabled.
  3151. </description>
  3152. </property>
  3153. <property>
  3154. <name>dfs.balancer.keytab.file</name>
  3155. <value></value>
  3156. <description>
  3157. The keytab file used by the Balancer to login as its
  3158. service principal. The principal name is configured with
  3159. dfs.balancer.kerberos.principal. Keytab based login can be
  3160. enabled with dfs.balancer.keytab.enabled.
  3161. </description>
  3162. </property>
  3163. <property>
  3164. <name>dfs.balancer.kerberos.principal</name>
  3165. <value></value>
  3166. <description>
  3167. The Balancer principal. This is typically set to
  3168. balancer/_HOST@REALM.TLD. The Balancer will substitute _HOST with its
  3169. own fully qualified hostname at startup. The _HOST placeholder
  3170. allows using the same configuration setting on different servers.
  3171. Keytab based login can be enabled with dfs.balancer.keytab.enabled.
  3172. </description>
  3173. </property>
  3174. <property>
  3175. <name>dfs.http.client.retry.policy.enabled</name>
  3176. <value>false</value>
  3177. <description>
  3178. If "true", enable the retry policy of WebHDFS client.
  3179. If "false", retry policy is turned off.
  3180. Enabling the retry policy can be quite useful while using WebHDFS to
  3181. copy large files between clusters that could timeout, or
  3182. copy files between HA clusters that could failover during the copy.
  3183. </description>
  3184. </property>
  3185. <property>
  3186. <name>dfs.http.client.retry.policy.spec</name>
  3187. <value>10000,6,60000,10</value>
  3188. <description>
  3189. Specify a policy of multiple linear random retry for WebHDFS client,
  3190. e.g. given pairs of number of retries and sleep time (n0, t0), (n1, t1),
  3191. ..., the first n0 retries sleep t0 milliseconds on average,
  3192. the following n1 retries sleep t1 milliseconds on average, and so on.
  3193. </description>
  3194. </property>
  3195. <property>
  3196. <name>dfs.http.client.failover.max.attempts</name>
  3197. <value>15</value>
  3198. <description>
  3199. Specify the max number of failover attempts for WebHDFS client
  3200. in case of network exception.
  3201. </description>
  3202. </property>
  3203. <property>
  3204. <name>dfs.http.client.retry.max.attempts</name>
  3205. <value>10</value>
  3206. <description>
  3207. Specify the max number of retry attempts for WebHDFS client,
  3208. if the difference between retried attempts and failovered attempts is
  3209. larger than the max number of retry attempts, there will be no more
  3210. retries.
  3211. </description>
  3212. </property>
  3213. <property>
  3214. <name>dfs.http.client.failover.sleep.base.millis</name>
  3215. <value>500</value>
  3216. <description>
  3217. Specify the base amount of time in milliseconds upon which the
  3218. exponentially increased sleep time between retries or failovers
  3219. is calculated for WebHDFS client.
  3220. </description>
  3221. </property>
  3222. <property>
  3223. <name>dfs.http.client.failover.sleep.max.millis</name>
  3224. <value>15000</value>
  3225. <description>
  3226. Specify the upper bound of sleep time in milliseconds between
  3227. retries or failovers for WebHDFS client.
  3228. </description>
  3229. </property>
  3230. <property>
  3231. <name>dfs.namenode.hosts.provider.classname</name>
  3232. <value>org.apache.hadoop.hdfs.server.blockmanagement.HostFileManager</value>
  3233. <description>
  3234. The class that provides access for host files.
  3235. org.apache.hadoop.hdfs.server.blockmanagement.HostFileManager is used
  3236. by default which loads files specified by dfs.hosts and dfs.hosts.exclude.
  3237. If org.apache.hadoop.hdfs.server.blockmanagement.CombinedHostFileManager is
  3238. used, it will load the JSON file defined in dfs.hosts.
  3239. To change class name, nn restart is required. "dfsadmin -refreshNodes" only
  3240. refreshes the configuration files used by the class.
  3241. </description>
  3242. </property>
  3243. <property>
  3244. <name>datanode.https.port</name>
  3245. <value>50475</value>
  3246. <description>
  3247. HTTPS port for DataNode.
  3248. </description>
  3249. </property>
  3250. <property>
  3251. <name>dfs.balancer.dispatcherThreads</name>
  3252. <value>200</value>
  3253. <description>
  3254. Size of the thread pool for the HDFS balancer block mover.
  3255. dispatchExecutor
  3256. </description>
  3257. </property>
  3258. <property>
  3259. <name>dfs.balancer.movedWinWidth</name>
  3260. <value>5400000</value>
  3261. <description>
  3262. Window of time in ms for the HDFS balancer tracking blocks and its
  3263. locations.
  3264. </description>
  3265. </property>
  3266. <property>
  3267. <name>dfs.balancer.moverThreads</name>
  3268. <value>1000</value>
  3269. <description>
  3270. Thread pool size for executing block moves.
  3271. moverThreadAllocator
  3272. </description>
  3273. </property>
  3274. <property>
  3275. <name>dfs.balancer.max-size-to-move</name>
  3276. <value>10737418240</value>
  3277. <description>
  3278. Maximum number of bytes that can be moved by the balancer in a single
  3279. thread.
  3280. </description>
  3281. </property>
  3282. <property>
  3283. <name>dfs.balancer.getBlocks.min-block-size</name>
  3284. <value>10485760</value>
  3285. <description>
  3286. Minimum block threshold size in bytes to ignore when fetching a source's
  3287. block list.
  3288. </description>
  3289. </property>
  3290. <property>
  3291. <name>dfs.balancer.getBlocks.size</name>
  3292. <value>2147483648</value>
  3293. <description>
  3294. Total size in bytes of Datanode blocks to get when fetching a source's
  3295. block list.
  3296. </description>
  3297. </property>
  3298. <property>
  3299. <name>dfs.balancer.block-move.timeout</name>
  3300. <value>0</value>
  3301. <description>
  3302. Maximum amount of time in milliseconds for a block to move. If this is set
  3303. greater than 0, Balancer will stop waiting for a block move completion
  3304. after this time. In typical clusters, a 3 to 5 minute timeout is reasonable.
  3305. If timeout happens to a large proportion of block moves, this needs to be
  3306. increased. It could also be that too much work is dispatched and many nodes
  3307. are constantly exceeding the bandwidth limit as a result. In that case,
  3308. other balancer parameters might need to be adjusted.
  3309. It is disabled (0) by default.
  3310. </description>
  3311. </property>
  3312. <property>
  3313. <name>dfs.balancer.max-no-move-interval</name>
  3314. <value>60000</value>
  3315. <description>
  3316. If this specified amount of time has elapsed and no block has been moved
  3317. out of a source DataNode, on more effort will be made to move blocks out of
  3318. this DataNode in the current Balancer iteration.
  3319. </description>
  3320. </property>
  3321. <property>
  3322. <name>dfs.balancer.max-iteration-time</name>
  3323. <value>1200000</value>
  3324. <description>
  3325. Maximum amount of time while an iteration can be run by the Balancer. After
  3326. this time the Balancer will stop the iteration, and reevaluate the work
  3327. needs to be done to Balance the cluster. The default value is 20 minutes.
  3328. </description>
  3329. </property>
  3330. <property>
  3331. <name>dfs.block.invalidate.limit</name>
  3332. <value>1000</value>
  3333. <description>
  3334. The maximum number of invalidate blocks sent by namenode to a datanode
  3335. per heartbeat deletion command. This property works with
  3336. "dfs.namenode.invalidate.work.pct.per.iteration" to throttle block
  3337. deletions.
  3338. </description>
  3339. </property>
  3340. <property>
  3341. <name>dfs.balancer.service.interval</name>
  3342. <value>5m</value>
  3343. <description>
  3344. The schedule interval of balancer when running as a long service.
  3345. </description>
  3346. </property>
  3347. <property>
  3348. <name>dfs.balancer.service.retries.on.exception</name>
  3349. <value>5</value>
  3350. <description>
  3351. When the balancer is executed as a long-running service, it will retry upon encountering an exception. This
  3352. configuration determines how many times it will retry before considering the exception to be fatal and quitting.
  3353. </description>
  3354. </property>
  3355. <property>
  3356. <name>dfs.block.misreplication.processing.limit</name>
  3357. <value>10000</value>
  3358. <description>
  3359. Maximum number of blocks to process for initializing replication queues.
  3360. </description>
  3361. </property>
  3362. <property>
  3363. <name>dfs.block.placement.ec.classname</name>
  3364. <value>org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyRackFaultTolerant</value>
  3365. <description>
  3366. Placement policy class for striped files.
  3367. Defaults to BlockPlacementPolicyRackFaultTolerant.class
  3368. </description>
  3369. </property>
  3370. <property>
  3371. <name>dfs.block.replicator.classname</name>
  3372. <value>org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault</value>
  3373. <description>
  3374. Class representing block placement policy for non-striped files.
  3375. There are four block placement policies currently being supported:
  3376. BlockPlacementPolicyDefault, BlockPlacementPolicyWithNodeGroup,
  3377. BlockPlacementPolicyRackFaultTolerant and BlockPlacementPolicyWithUpgradeDomain.
  3378. BlockPlacementPolicyDefault chooses the desired number of targets
  3379. for placing block replicas in a default way. BlockPlacementPolicyWithNodeGroup
  3380. places block replicas on environment with node-group layer. BlockPlacementPolicyRackFaultTolerant
  3381. places the replicas to more racks.
  3382. BlockPlacementPolicyWithUpgradeDomain places block replicas that honors upgrade domain policy.
  3383. The details of placing replicas are documented in the javadoc of the corresponding policy classes.
  3384. The default policy is BlockPlacementPolicyDefault, and the corresponding class is
  3385. org.apache.hadoop.hdfs.server.blockmanagement.BlockPlacementPolicyDefault.
  3386. </description>
  3387. </property>
  3388. <property>
  3389. <name>dfs.blockreport.incremental.intervalMsec</name>
  3390. <value>0</value>
  3391. <description>
  3392. If set to a positive integer, the value in ms to wait between sending
  3393. incremental block reports from the Datanode to the Namenode.
  3394. </description>
  3395. </property>
  3396. <property>
  3397. <name>dfs.checksum.type</name>
  3398. <value>CRC32C</value>
  3399. <description>
  3400. Checksum type
  3401. </description>
  3402. </property>
  3403. <property>
  3404. <name>dfs.checksum.combine.mode</name>
  3405. <value>MD5MD5CRC</value>
  3406. <description>
  3407. Defines how lower-level chunk/block checksums are combined into file-level
  3408. checksums; the original MD5MD5CRC mode is not comparable between files
  3409. with different block layouts, while modes like COMPOSITE_CRC are
  3410. comparable independently of block layout.
  3411. </description>
  3412. </property>
  3413. <property>
  3414. <name>dfs.client.block.write.locateFollowingBlock.retries</name>
  3415. <value>5</value>
  3416. <description>
  3417. Number of retries to use when finding the next block during HDFS writes.
  3418. </description>
  3419. </property>
  3420. <property>
  3421. <name>dfs.client.failover.proxy.provider</name>
  3422. <value></value>
  3423. <description>
  3424. The prefix (plus a required nameservice ID) for the class name of the configured
  3425. Failover proxy provider for the host. For normal HA mode, please consult
  3426. the "Configuration Details" section of the HDFS High Availability documentation.
  3427. For observer reading mode, please choose a custom class--ObserverReadProxyProvider.
  3428. </description>
  3429. </property>
  3430. <property>
  3431. <name>dfs.client.failover.random.order</name>
  3432. <value>false</value>
  3433. <description>
  3434. Determines if the failover proxies are picked in random order instead of the
  3435. configured order. Random order may be enabled for better load balancing
  3436. or to avoid always hitting failed ones first if the failed ones appear in the
  3437. beginning of the configured or resolved list.
  3438. For example, In the case of multiple RBF routers or ObserverNameNodes,
  3439. it is recommended to be turned on for load balancing.
  3440. The config name can be extended with an optional nameservice ID
  3441. (of form dfs.client.failover.random.order[.nameservice]) in case multiple
  3442. nameservices exist and random order should be enabled for specific
  3443. nameservices.
  3444. </description>
  3445. </property>
  3446. <property>
  3447. <name>dfs.client.failover.resolve-needed</name>
  3448. <value>false</value>
  3449. <description>
  3450. Determines if the given nameservice address is a domain name which needs to
  3451. be resolved (using the resolver configured by dfs.client.failover.resolver-impl).
  3452. This adds a transparency layer in the client so physical server address
  3453. can change without changing the client. The config name can be extended with
  3454. an optional nameservice ID (of form dfs.client.failover.resolve-needed[.nameservice])
  3455. to configure specific nameservices when multiple nameservices exist.
  3456. </description>
  3457. </property>
  3458. <property>
  3459. <name>dfs.client.failover.resolver.impl</name>
  3460. <value>org.apache.hadoop.net.DNSDomainNameResolver</value>
  3461. <description>
  3462. Determines what class to use to resolve nameservice name to specific machine
  3463. address(es). The config name can be extended with an optional nameservice ID
  3464. (of form dfs.client.failover.resolver.impl[.nameservice]) to configure
  3465. specific nameservices when multiple nameservices exist.
  3466. </description>
  3467. </property>
  3468. <property>
  3469. <name>dfs.client.failover.resolver.useFQDN</name>
  3470. <value>true</value>
  3471. <description>
  3472. Determines whether the resolved result is fully qualified domain name instead
  3473. of pure IP address(es). The config name can be extended with an optional
  3474. nameservice ID (of form dfs.client.failover.resolver.impl[.nameservice]) to
  3475. configure specific nameservices when multiple nameservices exist.
  3476. In secure environment, this has to be enabled since Kerberos is using fqdn
  3477. in machine's principal therefore accessing servers by IP won't be recognized
  3478. by the KDC.
  3479. </description>
  3480. </property>
  3481. <property>
  3482. <name>dfs.client.key.provider.cache.expiry</name>
  3483. <value>864000000</value>
  3484. <description>
  3485. DFS client security key cache expiration in milliseconds.
  3486. </description>
  3487. </property>
  3488. <property>
  3489. <name>dfs.client.max.block.acquire.failures</name>
  3490. <value>3</value>
  3491. <description>
  3492. Maximum failures allowed when trying to get block information from a specific datanode.
  3493. </description>
  3494. </property>
  3495. <property>
  3496. <name>dfs.client.read.prefetch.size</name>
  3497. <value></value>
  3498. <description>
  3499. The number of bytes for the DFSClient will fetch from the Namenode
  3500. during a read operation. Defaults to 10 * ${dfs.blocksize}.
  3501. </description>
  3502. </property>
  3503. <property>
  3504. <name>dfs.client.read.short.circuit.replica.stale.threshold.ms</name>
  3505. <value>1800000</value>
  3506. <description>
  3507. Threshold in milliseconds for read entries during short-circuit local reads.
  3508. </description>
  3509. </property>
  3510. <property>
  3511. <name>dfs.client.read.shortcircuit.buffer.size</name>
  3512. <value>1048576</value>
  3513. <description>
  3514. Buffer size in bytes for short-circuit local reads.
  3515. </description>
  3516. </property>
  3517. <property>
  3518. <name>dfs.client.read.striped.threadpool.size</name>
  3519. <value>18</value>
  3520. <description>
  3521. The maximum number of threads used for parallel reading
  3522. in striped layout.
  3523. </description>
  3524. </property>
  3525. <property>
  3526. <name>dfs.client.replica.accessor.builder.classes</name>
  3527. <value></value>
  3528. <description>
  3529. Comma-separated classes for building ReplicaAccessor. If the classes
  3530. are specified, client will use external BlockReader that uses the
  3531. ReplicaAccessor built by the builder.
  3532. </description>
  3533. </property>
  3534. <property>
  3535. <name>dfs.client.retry.interval-ms.get-last-block-length</name>
  3536. <value>4000</value>
  3537. <description>
  3538. Retry interval in milliseconds to wait between retries in getting
  3539. block lengths from the datanodes.
  3540. </description>
  3541. </property>
  3542. <property>
  3543. <name>dfs.client.retry.max.attempts</name>
  3544. <value>10</value>
  3545. <description>
  3546. Max retry attempts for DFSClient talking to namenodes.
  3547. </description>
  3548. </property>
  3549. <property>
  3550. <name>dfs.client.retry.policy.enabled</name>
  3551. <value>false</value>
  3552. <description>
  3553. If true, turns on DFSClient retry policy.
  3554. </description>
  3555. </property>
  3556. <property>
  3557. <name>dfs.client.retry.policy.spec</name>
  3558. <value>10000,6,60000,10</value>
  3559. <description>
  3560. Set to pairs of timeouts and retries for DFSClient.
  3561. </description>
  3562. </property>
  3563. <property>
  3564. <name>dfs.client.retry.times.get-last-block-length</name>
  3565. <value>3</value>
  3566. <description>
  3567. Number of retries for calls to fetchLocatedBlocksAndGetLastBlockLength().
  3568. </description>
  3569. </property>
  3570. <property>
  3571. <name>dfs.client.retry.window.base</name>
  3572. <value>3000</value>
  3573. <description>
  3574. Base time window in ms for DFSClient retries. For each retry attempt,
  3575. this value is extended linearly (e.g. 3000 ms for first attempt and
  3576. first retry, 6000 ms for second retry, 9000 ms for third retry, etc.).
  3577. </description>
  3578. </property>
  3579. <property>
  3580. <name>dfs.client.socket-timeout</name>
  3581. <value>60000</value>
  3582. <description>
  3583. Default timeout value in milliseconds for all sockets.
  3584. </description>
  3585. </property>
  3586. <property>
  3587. <name>dfs.client.socketcache.capacity</name>
  3588. <value>16</value>
  3589. <description>
  3590. Socket cache capacity (in entries) for short-circuit reads.
  3591. If this value is set to 0, the client socket cache is disabled.
  3592. </description>
  3593. </property>
  3594. <property>
  3595. <name>dfs.client.socketcache.expiryMsec</name>
  3596. <value>3000</value>
  3597. <description>
  3598. Socket cache expiration for short-circuit reads in msec.
  3599. </description>
  3600. </property>
  3601. <property>
  3602. <name>dfs.client.test.drop.namenode.response.number</name>
  3603. <value>0</value>
  3604. <description>
  3605. The number of Namenode responses dropped by DFSClient for each RPC call. Used
  3606. for testing the NN retry cache.
  3607. </description>
  3608. </property>
  3609. <property>
  3610. <name>dfs.client.hedged.read.threadpool.size</name>
  3611. <value>0</value>
  3612. <description>
  3613. Support 'hedged' reads in DFSClient. To enable this feature, set the parameter
  3614. to a positive number. The threadpool size is how many threads to dedicate
  3615. to the running of these 'hedged', concurrent reads in your client.
  3616. </description>
  3617. </property>
  3618. <property>
  3619. <name>dfs.client.hedged.read.threshold.millis</name>
  3620. <value>500</value>
  3621. <description>
  3622. Configure 'hedged' reads in DFSClient. This is the number of milliseconds
  3623. to wait before starting up a 'hedged' read.
  3624. </description>
  3625. </property>
  3626. <property>
  3627. <name>dfs.client.write.byte-array-manager.count-limit</name>
  3628. <value>2048</value>
  3629. <description>
  3630. The maximum number of arrays allowed for each array length.
  3631. </description>
  3632. </property>
  3633. <property>
  3634. <name>dfs.client.write.byte-array-manager.count-reset-time-period-ms</name>
  3635. <value>10000</value>
  3636. <description>
  3637. The time period in milliseconds that the allocation count for each array length is
  3638. reset to zero if there is no increment.
  3639. </description>
  3640. </property>
  3641. <property>
  3642. <name>dfs.client.write.byte-array-manager.count-threshold</name>
  3643. <value>128</value>
  3644. <description>
  3645. The count threshold for each array length so that a manager is created only after the
  3646. allocation count exceeds the threshold. In other words, the particular array length
  3647. is not managed until the allocation count exceeds the threshold.
  3648. </description>
  3649. </property>
  3650. <property>
  3651. <name>dfs.client.write.byte-array-manager.enabled</name>
  3652. <value>false</value>
  3653. <description>
  3654. If true, enables byte array manager used by DFSOutputStream.
  3655. </description>
  3656. </property>
  3657. <property>
  3658. <name>dfs.client.write.max-packets-in-flight</name>
  3659. <value>80</value>
  3660. <description>
  3661. The maximum number of DFSPackets allowed in flight.
  3662. </description>
  3663. </property>
  3664. <property>
  3665. <name>dfs.client.block.reader.remote.buffer.size</name>
  3666. <value>8192</value>
  3667. <description>
  3668. The output stream buffer size of a DFSClient remote read. The buffer default value is 8KB. The buffer includes
  3669. only some request parameters that are: block, blockToken, clientName, startOffset, len, verifyChecksum,
  3670. cachingStrategy.
  3671. It is recommended to adjust the value according to the workload, which can reduce unnecessary memory
  3672. usage and the frequency of the garbage collection. A value of 512 might be reasonable.
  3673. </description>
  3674. </property>
  3675. <property>
  3676. <name>dfs.content-summary.limit</name>
  3677. <value>5000</value>
  3678. <description>
  3679. The maximum content summary counts allowed in one locking period. 0 or a negative number
  3680. means no limit (i.e. no yielding).
  3681. </description>
  3682. </property>
  3683. <property>
  3684. <name>dfs.content-summary.sleep-microsec</name>
  3685. <value>500</value>
  3686. <description>
  3687. The length of time in microseconds to put the thread to sleep, between reaquiring the locks
  3688. in content summary computation.
  3689. </description>
  3690. </property>
  3691. <property>
  3692. <name>dfs.data.transfer.client.tcpnodelay</name>
  3693. <value>true</value>
  3694. <description>
  3695. If true, set TCP_NODELAY to sockets for transferring data from DFS client.
  3696. </description>
  3697. </property>
  3698. <property>
  3699. <name>dfs.data.transfer.server.tcpnodelay</name>
  3700. <value>true</value>
  3701. <description>
  3702. If true, set TCP_NODELAY to sockets for transferring data between Datanodes.
  3703. </description>
  3704. </property>
  3705. <property>
  3706. <name>dfs.datanode.balance.max.concurrent.moves</name>
  3707. <value>100</value>
  3708. <description>
  3709. Maximum number of threads for Datanode balancer pending moves. This
  3710. value is reconfigurable via the "dfsadmin -reconfig" command.
  3711. </description>
  3712. </property>
  3713. <property>
  3714. <name>dfs.datanode.data.transfer.bandwidthPerSec</name>
  3715. <value>0</value>
  3716. <description>
  3717. Specifies the maximum amount of bandwidth that the data transfering can utilize for transfering block when
  3718. BlockConstructionStage is
  3719. PIPELINE_SETUP_CREATE and clientName is empty.
  3720. When the bandwidth value is zero, there is no limit.
  3721. </description>
  3722. </property>
  3723. <property>
  3724. <name>dfs.datanode.data.write.bandwidthPerSec</name>
  3725. <value>0</value>
  3726. <description>
  3727. Specifies the maximum amount of bandwidth that the data transfering can utilize for writing block or pipeline
  3728. recovery when
  3729. BlockConstructionStage is PIPELINE_SETUP_APPEND_RECOVERY or PIPELINE_SETUP_STREAMING_RECOVERY.
  3730. When the bandwidth value is zero, there is no limit.
  3731. </description>
  3732. </property>
  3733. <property>
  3734. <name>dfs.datanode.fsdataset.factory</name>
  3735. <value></value>
  3736. <description>
  3737. The class name for the underlying storage that stores replicas for a
  3738. Datanode. Defaults to
  3739. org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.FsDatasetFactory.
  3740. </description>
  3741. </property>
  3742. <property>
  3743. <name>dfs.datanode.fsdataset.volume.choosing.policy</name>
  3744. <value></value>
  3745. <description>
  3746. The class name of the policy for choosing volumes in the list of
  3747. directories. Defaults to
  3748. org.apache.hadoop.hdfs.server.datanode.fsdataset.RoundRobinVolumeChoosingPolicy.
  3749. If you would like to take into account available disk space, set the
  3750. value to
  3751. "org.apache.hadoop.hdfs.server.datanode.fsdataset.AvailableSpaceVolumeChoosingPolicy".
  3752. </description>
  3753. </property>
  3754. <property>
  3755. <name>dfs.datanode.hostname</name>
  3756. <value></value>
  3757. <description>
  3758. Optional. The hostname for the Datanode containing this
  3759. configuration file. Will be different for each machine.
  3760. Defaults to current hostname.
  3761. </description>
  3762. </property>
  3763. <property>
  3764. <name>dfs.datanode.lazywriter.interval.sec</name>
  3765. <value>60</value>
  3766. <description>
  3767. Interval in seconds for Datanodes for lazy persist writes.
  3768. </description>
  3769. </property>
  3770. <property>
  3771. <name>dfs.datanode.network.counts.cache.max.size</name>
  3772. <value>2147483647</value>
  3773. <description>
  3774. The maximum number of entries the datanode per-host network error
  3775. count cache may contain.
  3776. </description>
  3777. </property>
  3778. <property>
  3779. <name>dfs.datanode.oob.timeout-ms</name>
  3780. <value>1500,0,0,0</value>
  3781. <description>
  3782. Timeout value when sending OOB response for each OOB type, which are
  3783. OOB_RESTART, OOB_RESERVED1, OOB_RESERVED2, and OOB_RESERVED3,
  3784. respectively. Currently, only OOB_RESTART is used.
  3785. </description>
  3786. </property>
  3787. <property>
  3788. <name>dfs.datanode.parallel.volumes.load.threads.num</name>
  3789. <value></value>
  3790. <description>
  3791. Maximum number of threads to use for upgrading data directories.
  3792. The default value is the number of storage directories in the
  3793. DataNode.
  3794. </description>
  3795. </property>
  3796. <property>
  3797. <name>dfs.datanode.ram.disk.replica.tracker</name>
  3798. <value></value>
  3799. <description>
  3800. Name of the class implementing the RamDiskReplicaTracker interface.
  3801. Defaults to
  3802. org.apache.hadoop.hdfs.server.datanode.fsdataset.impl.RamDiskReplicaLruTracker.
  3803. </description>
  3804. </property>
  3805. <property>
  3806. <name>dfs.datanode.restart.replica.expiration</name>
  3807. <value>50</value>
  3808. <description>
  3809. During shutdown for restart, the amount of time in seconds budgeted for
  3810. datanode restart.
  3811. </description>
  3812. </property>
  3813. <property>
  3814. <name>dfs.datanode.socket.reuse.keepalive</name>
  3815. <value>4000</value>
  3816. <description>
  3817. The window of time in ms before the DataXceiver closes a socket for a
  3818. single request. If a second request occurs within that window, the
  3819. socket can be reused.
  3820. </description>
  3821. </property>
  3822. <property>
  3823. <name>dfs.datanode.socket.write.timeout</name>
  3824. <value>480000</value>
  3825. <description>
  3826. Timeout in ms for clients socket writes to DataNodes.
  3827. </description>
  3828. </property>
  3829. <property>
  3830. <name>dfs.datanode.sync.behind.writes.in.background</name>
  3831. <value>false</value>
  3832. <description>
  3833. If set to true, then sync_file_range() system call will occur
  3834. asynchronously. This property is only valid when the property
  3835. dfs.datanode.sync.behind.writes is true.
  3836. </description>
  3837. </property>
  3838. <property>
  3839. <name>dfs.datanode.transferTo.allowed</name>
  3840. <value>true</value>
  3841. <description>
  3842. If false, break block transfers on 32-bit machines greater than
  3843. or equal to 2GB into smaller chunks.
  3844. </description>
  3845. </property>
  3846. <property>
  3847. <name>dfs.ha.fencing.methods</name>
  3848. <value></value>
  3849. <description>
  3850. A list of scripts or Java classes which will be used to fence
  3851. the Active NameNode during a failover. See the HDFS High
  3852. Availability documentation for details on automatic HA
  3853. configuration.
  3854. </description>
  3855. </property>
  3856. <property>
  3857. <name>dfs.ha.standby.checkpoints</name>
  3858. <value>true</value>
  3859. <description>
  3860. If true, a NameNode in Standby state periodically takes a checkpoint
  3861. of the namespace, saves it to its local storage and then upload to
  3862. the remote NameNode.
  3863. </description>
  3864. </property>
  3865. <property>
  3866. <name>dfs.ha.zkfc.port</name>
  3867. <value>8019</value>
  3868. <description>
  3869. The port number that the zookeeper failover controller RPC
  3870. server binds to.
  3871. </description>
  3872. </property>
  3873. <property>
  3874. <name>dfs.journalnode.edits.dir</name>
  3875. <value>/tmp/hadoop/dfs/journalnode/</value>
  3876. <description>
  3877. The directory where the journal edit files are stored.
  3878. </description>
  3879. </property>
  3880. <property>
  3881. <name>dfs.journalnode.enable.sync</name>
  3882. <value>true</value>
  3883. <description>
  3884. If true, the journal nodes wil sync with each other. The journal nodes
  3885. will periodically gossip with other journal nodes to compare edit log
  3886. manifests and if they detect any missing log segment, they will download
  3887. it from the other journal nodes.
  3888. </description>
  3889. </property>
  3890. <property>
  3891. <name>dfs.journalnode.sync.interval</name>
  3892. <value>120000</value>
  3893. <description>
  3894. Time interval, in milliseconds, between two Journal Node syncs.
  3895. This configuration takes effect only if the journalnode sync is enabled
  3896. by setting the configuration parameter dfs.journalnode.enable.sync to true.
  3897. </description>
  3898. </property>
  3899. <property>
  3900. <name>dfs.journalnode.edit-cache-size.bytes</name>
  3901. <value>1048576</value>
  3902. <description>
  3903. The size, in bytes, of the in-memory cache of edits to keep on the
  3904. JournalNode. This cache is used to serve edits for tailing via the RPC-based
  3905. mechanism, and is only enabled when dfs.ha.tail-edits.in-progress is true.
  3906. Transactions range in size but are around 200 bytes on average, so the
  3907. default of 1MB can store around 5000 transactions.
  3908. </description>
  3909. </property>
  3910. <property>
  3911. <name>dfs.journalnode.kerberos.internal.spnego.principal</name>
  3912. <value></value>
  3913. <description>
  3914. Kerberos SPNEGO principal name used by the journal node.
  3915. </description>
  3916. </property>
  3917. <property>
  3918. <name>dfs.journalnode.kerberos.principal</name>
  3919. <value></value>
  3920. <description>
  3921. Kerberos principal name for the journal node.
  3922. </description>
  3923. </property>
  3924. <property>
  3925. <name>dfs.journalnode.keytab.file</name>
  3926. <value></value>
  3927. <description>
  3928. Kerberos keytab file for the journal node.
  3929. </description>
  3930. </property>
  3931. <property>
  3932. <name>dfs.ls.limit</name>
  3933. <value>1000</value>
  3934. <description>
  3935. Limit the number of files printed by ls. If less or equal to
  3936. zero, at most DFS_LIST_LIMIT_DEFAULT (= 1000) will be printed.
  3937. </description>
  3938. </property>
  3939. <property>
  3940. <name>dfs.mover.movedWinWidth</name>
  3941. <value>5400000</value>
  3942. <description>
  3943. The minimum time interval, in milliseconds, that a block can be
  3944. moved to another location again.
  3945. </description>
  3946. </property>
  3947. <property>
  3948. <name>dfs.mover.moverThreads</name>
  3949. <value>1000</value>
  3950. <description>
  3951. Configure the balancer's mover thread pool size.
  3952. </description>
  3953. </property>
  3954. <property>
  3955. <name>dfs.mover.retry.max.attempts</name>
  3956. <value>10</value>
  3957. <description>
  3958. The maximum number of retries before the mover consider the
  3959. move failed.
  3960. </description>
  3961. </property>
  3962. <property>
  3963. <name>dfs.mover.keytab.enabled</name>
  3964. <value>false</value>
  3965. <description>
  3966. Set to true to enable login using a keytab for Kerberized Hadoop.
  3967. </description>
  3968. </property>
  3969. <property>
  3970. <name>dfs.mover.address</name>
  3971. <value>0.0.0.0:0</value>
  3972. <description>
  3973. The hostname used for a keytab based Kerberos login. Keytab based login
  3974. can be enabled with dfs.mover.keytab.enabled.
  3975. </description>
  3976. </property>
  3977. <property>
  3978. <name>dfs.mover.keytab.file</name>
  3979. <value></value>
  3980. <description>
  3981. The keytab file used by the Mover to login as its
  3982. service principal. The principal name is configured with
  3983. dfs.mover.kerberos.principal. Keytab based login can be
  3984. enabled with dfs.mover.keytab.enabled.
  3985. </description>
  3986. </property>
  3987. <property>
  3988. <name>dfs.mover.kerberos.principal</name>
  3989. <value></value>
  3990. <description>
  3991. The Mover principal. This is typically set to
  3992. mover/_HOST@REALM.TLD. The Mover will substitute _HOST with its
  3993. own fully qualified hostname at startup. The _HOST placeholder
  3994. allows using the same configuration setting on different servers.
  3995. Keytab based login can be enabled with dfs.mover.keytab.enabled.
  3996. </description>
  3997. </property>
  3998. <property>
  3999. <name>dfs.mover.max-no-move-interval</name>
  4000. <value>60000</value>
  4001. <description>
  4002. If this specified amount of time has elapsed and no block has been moved
  4003. out of a source DataNode, on more effort will be made to move blocks out of
  4004. this DataNode in the current Mover iteration.
  4005. </description>
  4006. </property>
  4007. <property>
  4008. <name>dfs.namenode.audit.log.async</name>
  4009. <value>false</value>
  4010. <description>
  4011. If true, enables asynchronous audit log.
  4012. </description>
  4013. </property>
  4014. <property>
  4015. <name>dfs.namenode.audit.log.token.tracking.id</name>
  4016. <value>false</value>
  4017. <description>
  4018. If true, adds a tracking ID for all audit log events.
  4019. </description>
  4020. </property>
  4021. <property>
  4022. <name>dfs.namenode.available-space-block-placement-policy.balanced-space-preference-fraction</name>
  4023. <value>0.6</value>
  4024. <description>
  4025. Only used when the dfs.block.replicator.classname is set to
  4026. org.apache.hadoop.hdfs.server.blockmanagement.AvailableSpaceBlockPlacementPolicy.
  4027. Special value between 0 and 1, noninclusive. Increases chance of
  4028. placing blocks on Datanodes with less disk space used.
  4029. </description>
  4030. </property>
  4031. <property>
  4032. <name>dfs.namenode.backup.dnrpc-address</name>
  4033. <value></value>
  4034. <description>
  4035. Service RPC address for the backup Namenode.
  4036. </description>
  4037. </property>
  4038. <property>
  4039. <name>dfs.namenode.delegation.token.always-use</name>
  4040. <value>false</value>
  4041. <description>
  4042. For testing. Setting to true always allows the DT secret manager
  4043. to be used, even if security is disabled.
  4044. </description>
  4045. </property>
  4046. <property>
  4047. <name>dfs.namenode.edits.asynclogging</name>
  4048. <value>true</value>
  4049. <description>
  4050. If set to true, enables asynchronous edit logs in the Namenode. If set
  4051. to false, the Namenode uses the traditional synchronous edit logs.
  4052. </description>
  4053. </property>
  4054. <property>
  4055. <name>dfs.namenode.edits.dir.minimum</name>
  4056. <value>1</value>
  4057. <description>
  4058. dfs.namenode.edits.dir includes both required directories
  4059. (specified by dfs.namenode.edits.dir.required) and optional directories.
  4060. The number of usable optional directories must be greater than or equal
  4061. to this property. If the number of usable optional directories falls
  4062. below dfs.namenode.edits.dir.minimum, HDFS will issue an error.
  4063. This property defaults to 1.
  4064. </description>
  4065. </property>
  4066. <property>
  4067. <name>dfs.namenode.edits.journal-plugin</name>
  4068. <value></value>
  4069. <description>
  4070. When FSEditLog is creating JournalManagers from dfs.namenode.edits.dir,
  4071. and it encounters a URI with a schema different to "file" it loads the
  4072. name of the implementing class from
  4073. "dfs.namenode.edits.journal-plugin.[schema]". This class must implement
  4074. JournalManager and have a constructor which takes (Configuration, URI).
  4075. </description>
  4076. </property>
  4077. <property>
  4078. <name>dfs.namenode.file.close.num-committed-allowed</name>
  4079. <value>0</value>
  4080. <description>
  4081. Normally a file can only be closed with all its blocks are committed.
  4082. When this value is set to a positive integer N, a file can be closed
  4083. when N blocks are committed and the rest complete.
  4084. </description>
  4085. </property>
  4086. <property>
  4087. <name>dfs.namenode.inode.attributes.provider.class</name>
  4088. <value></value>
  4089. <description>
  4090. Name of class to use for delegating HDFS authorization.
  4091. </description>
  4092. </property>
  4093. <property>
  4094. <name>dfs.namenode.inode.attributes.provider.bypass.users</name>
  4095. <value></value>
  4096. <description>
  4097. A list of user principals (in secure cluster) or user names (in insecure
  4098. cluster) for whom the external attributes provider will be bypassed for all
  4099. operations. This means file attributes stored in HDFS instead of the
  4100. external provider will be used for permission checking and be returned when
  4101. requested.
  4102. </description>
  4103. </property>
  4104. <property>
  4105. <name>dfs.namenode.max-num-blocks-to-log</name>
  4106. <value>1000</value>
  4107. <description>
  4108. Puts a limit on the number of blocks printed to the log by the Namenode
  4109. after a block report.
  4110. </description>
  4111. </property>
  4112. <property>
  4113. <name>dfs.namenode.max.op.size</name>
  4114. <value>52428800</value>
  4115. <description>
  4116. Maximum opcode size in bytes.
  4117. </description>
  4118. </property>
  4119. <property>
  4120. <name>dfs.namenode.missing.checkpoint.periods.before.shutdown</name>
  4121. <value>3</value>
  4122. <description>
  4123. The number of checkpoint period windows (as defined by the property
  4124. dfs.namenode.checkpoint.period) allowed by the Namenode to perform
  4125. saving the namespace before shutdown.
  4126. </description>
  4127. </property>
  4128. <property>
  4129. <name>dfs.namenode.name.cache.threshold</name>
  4130. <value>10</value>
  4131. <description>
  4132. Frequently accessed files that are accessed more times than this
  4133. threshold are cached in the FSDirectory nameCache.
  4134. </description>
  4135. </property>
  4136. <property>
  4137. <name>dfs.namenode.replication.max-streams</name>
  4138. <value>2</value>
  4139. <description>
  4140. Hard limit for the number of highest-priority replication streams.
  4141. </description>
  4142. </property>
  4143. <property>
  4144. <name>dfs.namenode.replication.max-streams-hard-limit</name>
  4145. <value>4</value>
  4146. <description>
  4147. Hard limit for all replication streams.
  4148. </description>
  4149. </property>
  4150. <property>
  4151. <name>dfs.namenode.reconstruction.pending.timeout-sec</name>
  4152. <value>300</value>
  4153. <description>
  4154. Timeout in seconds for block reconstruction. If this value is 0 or less,
  4155. then it will default to 5 minutes.
  4156. </description>
  4157. </property>
  4158. <property>
  4159. <name>dfs.namenode.stale.datanode.minimum.interval</name>
  4160. <value>3</value>
  4161. <description>
  4162. Minimum number of missed heartbeats intervals for a datanode to
  4163. be marked stale by the Namenode. The actual interval is calculated as
  4164. (dfs.namenode.stale.datanode.minimum.interval * dfs.heartbeat.interval)
  4165. in seconds. If this value is greater than the property
  4166. dfs.namenode.stale.datanode.interval, then the calculated value above
  4167. is used.
  4168. </description>
  4169. </property>
  4170. <property>
  4171. <name>dfs.namenode.storageinfo.defragment.timeout.ms</name>
  4172. <value>4</value>
  4173. <description>
  4174. Timeout value in ms for the StorageInfo compaction run.
  4175. </description>
  4176. </property>
  4177. <property>
  4178. <name>dfs.namenode.storageinfo.defragment.interval.ms</name>
  4179. <value>600000</value>
  4180. <description>
  4181. The thread for checking the StorageInfo for defragmentation will
  4182. run periodically. The time between runs is determined by this
  4183. property.
  4184. </description>
  4185. </property>
  4186. <property>
  4187. <name>dfs.namenode.storageinfo.defragment.ratio</name>
  4188. <value>0.75</value>
  4189. <description>
  4190. The defragmentation threshold for the StorageInfo.
  4191. </description>
  4192. </property>
  4193. <property>
  4194. <name>dfs.namenode.snapshot.capture.openfiles</name>
  4195. <value>false</value>
  4196. <description>
  4197. If true, snapshots taken will have an immutable shared copy of
  4198. the open files that have valid leases. Even after the open files
  4199. grow or shrink in size, snapshot will always have the previous
  4200. point-in-time version of the open files, just like all other
  4201. closed files. Default is false.
  4202. Note: The file length captured for open files in snapshot is
  4203. whats recorded in NameNode at the time of snapshot and it may
  4204. be shorter than what the client has written till then. In order
  4205. to capture the latest length, the client can call hflush/hsync
  4206. with the flag SyncFlag.UPDATE_LENGTH on the open files handles.
  4207. </description>
  4208. </property>
  4209. <property>
  4210. <name>dfs.namenode.snapshot.skip.capture.accesstime-only-change</name>
  4211. <value>false</value>
  4212. <description>
  4213. If accessTime of a file/directory changed but there is no other
  4214. modification made to the file/directory, the changed accesstime will
  4215. not be captured in next snapshot. However, if there is other modification
  4216. made to the file/directory, the latest access time will be captured
  4217. together with the modification in next snapshot.
  4218. </description>
  4219. </property>
  4220. <property>
  4221. <name>dfs.namenode.snapshotdiff.allow.snap-root-descendant</name>
  4222. <value>true</value>
  4223. <description>
  4224. If enabled, snapshotDiff command can be run for any descendant directory
  4225. under a snapshot root directory and the diff calculation will be scoped
  4226. to the given descendant directory. Otherwise, snapshot diff command can
  4227. only be run for a snapshot root directory.
  4228. </description>
  4229. </property>
  4230. <property>
  4231. <name>dfs.namenode.snapshotdiff.listing.limit</name>
  4232. <value>1000</value>
  4233. <description>
  4234. Limit the number of entries generated by getSnapshotDiffReportListing within
  4235. one rpc call to the namenode.If less or equal to zero, at most
  4236. DFS_NAMENODE_SNAPSHOT_DIFF_LISTING_LIMIT_DEFAULT (= 1000) will be sent
  4237. across to the client within one rpc call.
  4238. </description>
  4239. </property>
  4240. <property>
  4241. <name>dfs.namenode.snapshot.max.limit</name>
  4242. <value>65536</value>
  4243. <description>
  4244. Limits the maximum number of snapshots allowed per snapshottable
  4245. directory.If the configuration is not set, the default limit
  4246. for maximum no of snapshots allowed is 65536.
  4247. </description>
  4248. </property>
  4249. <property>
  4250. <name>dfs.namenode.snapshot.skiplist.max.levels</name>
  4251. <value>0</value>
  4252. <description>
  4253. Maximum no of the skip levels to be maintained in the skip list for
  4254. storing directory snapshot diffs. By default, it is set to 0 and a linear
  4255. list will be used to store the directory snapshot diffs.
  4256. </description>
  4257. </property>
  4258. <property>
  4259. <name>dfs.namenode.snapshot.skiplist.interval</name>
  4260. <value>10</value>
  4261. <description>
  4262. The interval after which the skip levels will be formed in the skip list
  4263. for storing directory snapshot diffs. By default, value is set to 10.
  4264. </description>
  4265. </property>
  4266. <property>
  4267. <name>dfs.storage.policy.satisfier.enabled</name>
  4268. <value>false</value>
  4269. <name>dfs.storage.policy.satisfier.mode</name>
  4270. <value>none</value>
  4271. <description>
  4272. Following values are supported - external, none.
  4273. If external, StoragePolicySatisfier will be enabled and started as an independent service outside namenode.
  4274. If none, StoragePolicySatisfier is disabled.
  4275. By default, StoragePolicySatisfier is disabled.
  4276. Administrator can dynamically change StoragePolicySatisfier mode by using reconfiguration option.
  4277. Dynamic mode change can be achieved in the following way.
  4278. 1. Edit/update this configuration property values in hdfs-site.xml
  4279. 2. Execute the reconfig command on hadoop command line prompt.
  4280. For example:$hdfs -reconfig namenode nn_host:port start
  4281. </description>
  4282. </property>
  4283. <property>
  4284. <name>dfs.storage.policy.satisfier.queue.limit</name>
  4285. <value>1000</value>
  4286. <description>
  4287. Storage policy satisfier queue size. This queue contains the currently
  4288. scheduled file's inode ID for statisfy the policy.
  4289. Default value is 1000.
  4290. </description>
  4291. </property>
  4292. <property>
  4293. <name>dfs.storage.policy.satisfier.work.multiplier.per.iteration</name>
  4294. <value>1</value>
  4295. <description>
  4296. *Note*: Advanced property. Change with caution.
  4297. This determines the total amount of block transfers to begin in
  4298. one iteration, for satisfy the policy. The actual number is obtained by
  4299. multiplying this multiplier with the total number of live nodes in the
  4300. cluster. The result number is the number of blocks to begin transfers
  4301. immediately. This number can be any positive, non-zero integer.
  4302. </description>
  4303. </property>
  4304. <property>
  4305. <name>dfs.storage.policy.satisfier.recheck.timeout.millis</name>
  4306. <value>60000</value>
  4307. <description>
  4308. Blocks storage movements monitor re-check interval in milliseconds.
  4309. This check will verify whether any blocks storage movement results arrived from DN
  4310. and also verify if any of file blocks movements not at all reported to DN
  4311. since dfs.storage.policy.satisfier.self.retry.timeout.
  4312. The default value is 1 * 60 * 1000 (1 mins)
  4313. </description>
  4314. </property>
  4315. <property>
  4316. <name>dfs.storage.policy.satisfier.self.retry.timeout.millis</name>
  4317. <value>300000</value>
  4318. <description>
  4319. If any of file related block movements not at all reported by datanode,
  4320. then after this timeout(in milliseconds), the item will be added back to movement needed list
  4321. at namenode which will be retried for block movements.
  4322. The default value is 5 * 60 * 1000 (5 mins)
  4323. </description>
  4324. </property>
  4325. <property>
  4326. <name>dfs.storage.policy.satisfier.retry.max.attempts</name>
  4327. <value>3</value>
  4328. <description>
  4329. Max retry to satisfy the block storage policy. After this retry block will be removed
  4330. from the movement needed queue.
  4331. </description>
  4332. </property>
  4333. <property>
  4334. <name>dfs.storage.policy.satisfier.datanode.cache.refresh.interval.ms</name>
  4335. <value>300000</value>
  4336. <description>
  4337. How often to refresh the datanode storages cache in milliseconds. This cache
  4338. keeps live datanode storage reports fetched from namenode. After elapsed time,
  4339. it will again fetch latest datanodes from namenode.
  4340. By default, this parameter is set to 5 minutes.
  4341. </description>
  4342. </property>
  4343. <property>
  4344. <name>dfs.storage.policy.satisfier.max.outstanding.paths</name>
  4345. <value>10000</value>
  4346. <description>
  4347. Defines the maximum number of paths to satisfy that can be queued up in the
  4348. Satisfier call queue in a period of time. Default value is 10000.
  4349. </description>
  4350. </property>
  4351. <property>
  4352. <name>dfs.storage.policy.satisfier.address</name>
  4353. <value>0.0.0.0:0</value>
  4354. <description>
  4355. The hostname used for a keytab based Kerberos login. Keytab based login
  4356. is required when dfs.storage.policy.satisfier.mode is external.
  4357. </description>
  4358. </property>
  4359. <property>
  4360. <name>dfs.storage.policy.satisfier.keytab.file</name>
  4361. <value></value>
  4362. <description>
  4363. The keytab file used by external StoragePolicySatisfier to login as its
  4364. service principal. The principal name is configured with
  4365. dfs.storage.policy.satisfier.kerberos.principal. Keytab based login
  4366. is required when dfs.storage.policy.satisfier.mode is external.
  4367. </description>
  4368. </property>
  4369. <property>
  4370. <name>dfs.storage.policy.satisfier.kerberos.principal</name>
  4371. <value></value>
  4372. <description>
  4373. The StoragePolicySatisfier principal. This is typically set to
  4374. satisfier/_HOST@REALM.TLD. The StoragePolicySatisfier will substitute
  4375. _HOST with its own fully qualified hostname at startup. The _HOST placeholder
  4376. allows using the same configuration setting on different servers. Keytab
  4377. based login is required when dfs.storage.policy.satisfier.mode is external.
  4378. </description>
  4379. </property>
  4380. <property>
  4381. <name>dfs.pipeline.ecn</name>
  4382. <value>false</value>
  4383. <description>
  4384. If true, allows ECN (explicit congestion notification) from the
  4385. Datanode.
  4386. </description>
  4387. </property>
  4388. <property>
  4389. <name>dfs.qjournal.accept-recovery.timeout.ms</name>
  4390. <value>120000</value>
  4391. <description>
  4392. Quorum timeout in milliseconds during accept phase of
  4393. recovery/synchronization for a specific segment.
  4394. </description>
  4395. </property>
  4396. <property>
  4397. <name>dfs.qjournal.finalize-segment.timeout.ms</name>
  4398. <value>120000</value>
  4399. <description>
  4400. Quorum timeout in milliseconds during finalizing for a specific
  4401. segment.
  4402. </description>
  4403. </property>
  4404. <property>
  4405. <name>dfs.qjournal.get-journal-state.timeout.ms</name>
  4406. <value>120000</value>
  4407. <description>
  4408. Timeout in milliseconds when calling getJournalState().
  4409. JournalNodes.
  4410. </description>
  4411. </property>
  4412. <property>
  4413. <name>dfs.qjournal.new-epoch.timeout.ms</name>
  4414. <value>120000</value>
  4415. <description>
  4416. Timeout in milliseconds when getting an epoch number for write
  4417. access to JournalNodes.
  4418. </description>
  4419. </property>
  4420. <property>
  4421. <name>dfs.qjournal.prepare-recovery.timeout.ms</name>
  4422. <value>120000</value>
  4423. <description>
  4424. Quorum timeout in milliseconds during preparation phase of
  4425. recovery/synchronization for a specific segment.
  4426. </description>
  4427. </property>
  4428. <property>
  4429. <name>dfs.qjournal.queued-edits.limit.mb</name>
  4430. <value>10</value>
  4431. <description>
  4432. Queue size in MB for quorum journal edits.
  4433. </description>
  4434. </property>
  4435. <property>
  4436. <name>dfs.qjournal.select-input-streams.timeout.ms</name>
  4437. <value>20000</value>
  4438. <description>
  4439. Timeout in milliseconds for accepting streams from JournalManagers.
  4440. </description>
  4441. </property>
  4442. <property>
  4443. <name>dfs.qjournal.start-segment.timeout.ms</name>
  4444. <value>20000</value>
  4445. <description>
  4446. Quorum timeout in milliseconds for starting a log segment.
  4447. </description>
  4448. </property>
  4449. <property>
  4450. <name>dfs.qjournal.write-txns.timeout.ms</name>
  4451. <value>20000</value>
  4452. <description>
  4453. Write timeout in milliseconds when writing to a quorum of remote
  4454. journals.
  4455. </description>
  4456. </property>
  4457. <property>
  4458. <name>dfs.qjournal.http.open.timeout.ms</name>
  4459. <value>60000</value>
  4460. <description>
  4461. Timeout in milliseconds when open a new HTTP connection to remote
  4462. journals.
  4463. </description>
  4464. </property>
  4465. <property>
  4466. <name>dfs.qjournal.http.read.timeout.ms</name>
  4467. <value>60000</value>
  4468. <description>
  4469. Timeout in milliseconds when reading from a HTTP connection from remote
  4470. journals.
  4471. </description>
  4472. </property>
  4473. <property>
  4474. <name>dfs.qjournal.parallel-read.num-threads</name>
  4475. <value>5</value>
  4476. <description>
  4477. Number of threads per JN to be used for tailing edits.
  4478. </description>
  4479. </property>
  4480. <property>
  4481. <name>dfs.quota.by.storage.type.enabled</name>
  4482. <value>true</value>
  4483. <description>
  4484. If true, enables quotas based on storage type.
  4485. </description>
  4486. </property>
  4487. <property>
  4488. <name>dfs.secondary.namenode.kerberos.principal</name>
  4489. <value></value>
  4490. <description>
  4491. Kerberos principal name for the Secondary NameNode.
  4492. </description>
  4493. </property>
  4494. <property>
  4495. <name>dfs.secondary.namenode.keytab.file</name>
  4496. <value></value>
  4497. <description>
  4498. Kerberos keytab file for the Secondary NameNode.
  4499. </description>
  4500. </property>
  4501. <property>
  4502. <name>dfs.web.authentication.filter</name>
  4503. <value>org.apache.hadoop.hdfs.web.AuthFilter</value>
  4504. <description>
  4505. Authentication filter class used for WebHDFS.
  4506. </description>
  4507. </property>
  4508. <property>
  4509. <name>dfs.web.authentication.simple.anonymous.allowed</name>
  4510. <value></value>
  4511. <description>
  4512. If true, allow anonymous user to access WebHDFS. Set to
  4513. false to disable anonymous authentication.
  4514. </description>
  4515. </property>
  4516. <property>
  4517. <name>dfs.web.ugi</name>
  4518. <value></value>
  4519. <description>
  4520. dfs.web.ugi is deprecated. Use hadoop.http.staticuser.user instead.
  4521. </description>
  4522. </property>
  4523. <property>
  4524. <name>dfs.webhdfs.netty.high.watermark</name>
  4525. <value>65535</value>
  4526. <description>
  4527. High watermark configuration to Netty for Datanode WebHdfs.
  4528. </description>
  4529. </property>
  4530. <property>
  4531. <name>dfs.webhdfs.netty.low.watermark</name>
  4532. <value>32768</value>
  4533. <description>
  4534. Low watermark configuration to Netty for Datanode WebHdfs.
  4535. </description>
  4536. </property>
  4537. <property>
  4538. <name>dfs.webhdfs.oauth2.access.token.provider</name>
  4539. <value></value>
  4540. <description>
  4541. Access token provider class for WebHDFS using OAuth2.
  4542. Defaults to org.apache.hadoop.hdfs.web.oauth2.ConfCredentialBasedAccessTokenProvider.
  4543. </description>
  4544. </property>
  4545. <property>
  4546. <name>dfs.webhdfs.oauth2.client.id</name>
  4547. <value></value>
  4548. <description>
  4549. Client id used to obtain access token with either credential or
  4550. refresh token.
  4551. </description>
  4552. </property>
  4553. <property>
  4554. <name>dfs.webhdfs.oauth2.enabled</name>
  4555. <value>false</value>
  4556. <description>
  4557. If true, enables OAuth2 in WebHDFS
  4558. </description>
  4559. </property>
  4560. <property>
  4561. <name>dfs.webhdfs.oauth2.refresh.url</name>
  4562. <value></value>
  4563. <description>
  4564. URL against which to post for obtaining bearer token with
  4565. either credential or refresh token.
  4566. </description>
  4567. </property>
  4568. <property>
  4569. <name>ssl.server.keystore.keypassword</name>
  4570. <value></value>
  4571. <description>
  4572. Keystore key password for HTTPS SSL configuration
  4573. </description>
  4574. </property>
  4575. <property>
  4576. <name>ssl.server.keystore.location</name>
  4577. <value></value>
  4578. <description>
  4579. Keystore location for HTTPS SSL configuration
  4580. </description>
  4581. </property>
  4582. <property>
  4583. <name>ssl.server.keystore.password</name>
  4584. <value></value>
  4585. <description>
  4586. Keystore password for HTTPS SSL configuration
  4587. </description>
  4588. </property>
  4589. <property>
  4590. <name>ssl.server.truststore.location</name>
  4591. <value></value>
  4592. <description>
  4593. Truststore location for HTTPS SSL configuration
  4594. </description>
  4595. </property>
  4596. <property>
  4597. <name>ssl.server.truststore.password</name>
  4598. <value></value>
  4599. <description>
  4600. Truststore password for HTTPS SSL configuration
  4601. </description>
  4602. </property>
  4603. <!--Disk baalncer properties-->
  4604. <property>
  4605. <name>dfs.disk.balancer.max.disk.throughputInMBperSec</name>
  4606. <value>10</value>
  4607. <description>Maximum disk bandwidth used by diskbalancer
  4608. during read from a source disk. The unit is MB/sec.
  4609. </description>
  4610. </property>
  4611. <property>
  4612. <name>dfs.disk.balancer.block.tolerance.percent</name>
  4613. <value>10</value>
  4614. <description>
  4615. When a disk balancer copy operation is proceeding, the datanode is still
  4616. active. So it might not be possible to move the exactly specified
  4617. amount of data. So tolerance allows us to define a percentage which
  4618. defines a good enough move.
  4619. </description>
  4620. </property>
  4621. <property>
  4622. <name>dfs.disk.balancer.max.disk.errors</name>
  4623. <value>5</value>
  4624. <description>
  4625. During a block move from a source to destination disk, we might
  4626. encounter various errors. This defines how many errors we can tolerate
  4627. before we declare a move between 2 disks (or a step) has failed.
  4628. </description>
  4629. </property>
  4630. <property>
  4631. <name>dfs.disk.balancer.plan.valid.interval</name>
  4632. <value>1d</value>
  4633. <description>
  4634. Maximum amount of time disk balancer plan is valid. This setting
  4635. supports multiple time unit suffixes as described in
  4636. dfs.heartbeat.interval. If no suffix is specified then milliseconds
  4637. is assumed.
  4638. </description>
  4639. </property>
  4640. <property>
  4641. <name>dfs.disk.balancer.enabled</name>
  4642. <value>true</value>
  4643. <description>
  4644. This enables the diskbalancer feature on a cluster. By default, disk
  4645. balancer is enabled.
  4646. </description>
  4647. </property>
  4648. <property>
  4649. <name>dfs.disk.balancer.plan.threshold.percent</name>
  4650. <value>10</value>
  4651. <description>
  4652. The percentage threshold value for volume Data Density in a plan.
  4653. If the absolute value of volume Data Density which is out of
  4654. threshold value in a node, it means that the volumes corresponding to
  4655. the disks should do the balancing in the plan. The default value is 10.
  4656. </description>
  4657. </property>
  4658. <property>
  4659. <name>dfs.namenode.provided.enabled</name>
  4660. <value>false</value>
  4661. <description>
  4662. Enables the Namenode to handle provided storages.
  4663. </description>
  4664. </property>
  4665. <property>
  4666. <name>dfs.provided.storage.id</name>
  4667. <value>DS-PROVIDED</value>
  4668. <description>
  4669. The storage ID used for provided stores.
  4670. </description>
  4671. </property>
  4672. <property>
  4673. <name>dfs.provided.aliasmap.class</name>
  4674. <value>org.apache.hadoop.hdfs.server.common.blockaliasmap.impl.TextFileRegionAliasMap</value>
  4675. <description>
  4676. The class that is used to specify the input format of the blocks on
  4677. provided storages. The default is
  4678. org.apache.hadoop.hdfs.server.common.blockaliasmap.impl.TextFileRegionAliasMap which uses
  4679. file regions to describe blocks. The file regions are specified as a
  4680. delimited text file. Each file region is a 6-tuple containing the
  4681. block id, remote file path, offset into file, length of block, the
  4682. block pool id containing the block, and the generation stamp of the
  4683. block.
  4684. </description>
  4685. </property>
  4686. <property>
  4687. <name>dfs.provided.aliasmap.inmemory.batch-size</name>
  4688. <value>500</value>
  4689. <description>
  4690. The batch size when iterating over the database backing the aliasmap
  4691. </description>
  4692. </property>
  4693. <property>
  4694. <name>dfs.provided.aliasmap.inmemory.dnrpc-address</name>
  4695. <value></value>
  4696. <description>
  4697. The address where the aliasmap server will be running. In the case of
  4698. HA/Federation where multiple namenodes exist, and if the Namenode is
  4699. configured to run the aliasmap server
  4700. (dfs.provided.aliasmap.inmemory.enabled is set to true),
  4701. the name service id is added to the name, e.g.,
  4702. dfs.provided.aliasmap.inmemory.rpc.address.EXAMPLENAMESERVICE.
  4703. The value of this property will take the form of host:rpc-port.
  4704. </description>
  4705. </property>
  4706. <property>
  4707. <name>dfs.provided.aliasmap.inmemory.rpc.bind-host</name>
  4708. <value></value>
  4709. <description>
  4710. The actual address the in-memory aliasmap server will bind to.
  4711. If this optional address is set, it overrides the hostname portion of
  4712. dfs.provided.aliasmap.inmemory.rpc.address.
  4713. This is useful for making the name node listen on all interfaces by
  4714. setting it to 0.0.0.0.
  4715. </description>
  4716. </property>
  4717. <property>
  4718. <name>dfs.provided.aliasmap.inmemory.leveldb.dir</name>
  4719. <value>/tmp</value>
  4720. <description>
  4721. The directory where the leveldb files will be kept
  4722. </description>
  4723. </property>
  4724. <property>
  4725. <name>dfs.provided.aliasmap.inmemory.enabled</name>
  4726. <value>false</value>
  4727. <description>
  4728. Don't use the aliasmap by default. Some tests will fail
  4729. because they try to start the namenode twice with the
  4730. same parameters if you turn it on.
  4731. </description>
  4732. </property>
  4733. <property>
  4734. <name>dfs.provided.aliasmap.inmemory.server.log</name>
  4735. <value>false</value>
  4736. <description>
  4737. Ensures that InMemoryAliasMap server logs every call to it.
  4738. Set to false by default.
  4739. </description>
  4740. </property>
  4741. <property>
  4742. <name>dfs.provided.aliasmap.text.delimiter</name>
  4743. <value>,</value>
  4744. <description>
  4745. The delimiter used when the provided block map is specified as
  4746. a text file.
  4747. </description>
  4748. </property>
  4749. <property>
  4750. <name>dfs.provided.aliasmap.text.read.file</name>
  4751. <value></value>
  4752. <description>
  4753. The path specifying the provided block map as a text file, specified as
  4754. a URI.
  4755. </description>
  4756. </property>
  4757. <property>
  4758. <name>dfs.provided.aliasmap.text.codec</name>
  4759. <value></value>
  4760. <description>
  4761. The codec used to de-compress the provided block map.
  4762. </description>
  4763. </property>
  4764. <property>
  4765. <name>dfs.provided.aliasmap.text.write.dir</name>
  4766. <value></value>
  4767. <description>
  4768. The path to which the provided block map should be written as a text
  4769. file, specified as a URI.
  4770. </description>
  4771. </property>
  4772. <property>
  4773. <name>dfs.provided.aliasmap.leveldb.path</name>
  4774. <value></value>
  4775. <description>
  4776. The read/write path for the leveldb-based alias map
  4777. (org.apache.hadoop.hdfs.server.common.blockaliasmap.impl.LevelDBFileRegionAliasMap).
  4778. The path has to be explicitly configured when this alias map is used.
  4779. </description>
  4780. </property>
  4781. <property>
  4782. <name>dfs.provided.aliasmap.load.retries</name>
  4783. <value>0</value>
  4784. <description>
  4785. The number of retries on the Datanode to load the provided aliasmap;
  4786. defaults to 0.
  4787. </description>
  4788. </property>
  4789. <property>
  4790. <name>dfs.lock.suppress.warning.interval</name>
  4791. <value>10s</value>
  4792. <description>Instrumentation reporting long critical sections will suppress
  4793. consecutive warnings within this interval.</description>
  4794. </property>
  4795. <property>
  4796. <name>httpfs.buffer.size</name>
  4797. <value>4096</value>
  4798. <description>
  4799. The size buffer to be used when creating or opening httpfs filesystem IO stream.
  4800. </description>
  4801. </property>
  4802. <property>
  4803. <name>dfs.webhdfs.use.ipc.callq</name>
  4804. <value>true</value>
  4805. <description>Enables routing of webhdfs calls through rpc
  4806. call queue</description>
  4807. </property>
  4808. <property>
  4809. <name>dfs.datanode.disk.check.min.gap</name>
  4810. <value>15m</value>
  4811. <description>
  4812. The minimum gap between two successive checks of the same DataNode
  4813. volume. This setting supports multiple time unit suffixes as described
  4814. in dfs.heartbeat.interval. If no suffix is specified then milliseconds
  4815. is assumed.
  4816. </description>
  4817. </property>
  4818. <property>
  4819. <name>dfs.datanode.disk.check.timeout</name>
  4820. <value>10m</value>
  4821. <description>
  4822. Maximum allowed time for a disk check to complete. If the check does not
  4823. complete within this time interval then the disk is declared as failed.
  4824. This setting supports multiple time unit suffixes as described in
  4825. dfs.heartbeat.interval. If no suffix is specified then milliseconds is assumed.
  4826. </description>
  4827. </property>
  4828. <property>
  4829. <name>dfs.use.dfs.network.topology</name>
  4830. <value>true</value>
  4831. <description>
  4832. Enables DFSNetworkTopology to choose nodes for placing replicas.
  4833. When enabled, NetworkTopology will be instantiated as class defined in
  4834. property dfs.net.topology.impl, otherwise NetworkTopology will be
  4835. instantiated as class defined in property net.topology.impl.
  4836. </description>
  4837. </property>
  4838. <property>
  4839. <name>dfs.net.topology.impl</name>
  4840. <value>org.apache.hadoop.hdfs.net.DFSNetworkTopology</value>
  4841. <description>
  4842. The implementation class of NetworkTopology used in HDFS. By default,
  4843. the class org.apache.hadoop.hdfs.net.DFSNetworkTopology is specified and
  4844. used in block placement.
  4845. This property only works when dfs.use.dfs.network.topology is true.
  4846. </description>
  4847. </property>
  4848. <property>
  4849. <name>dfs.qjm.operations.timeout</name>
  4850. <value>60s</value>
  4851. <description>
  4852. Common key to set timeout for related operations in
  4853. QuorumJournalManager. This setting supports multiple time unit suffixes
  4854. as described in dfs.heartbeat.interval.
  4855. If no suffix is specified then milliseconds is assumed.
  4856. </description>
  4857. </property>
  4858. <property>
  4859. <name>dfs.reformat.disabled</name>
  4860. <value>false</value>
  4861. <description>
  4862. Disable reformat of NameNode. If it's value is set to "true"
  4863. and metadata directories already exist then attempt to format NameNode
  4864. will throw NameNodeFormatException.
  4865. </description>
  4866. </property>
  4867. <property>
  4868. <name>dfs.namenode.block.deletion.increment</name>
  4869. <value>1000</value>
  4870. <description>
  4871. The number of block deletion increment.
  4872. This setting will control the block increment deletion rate to
  4873. ensure that other waiters on the lock can get in.
  4874. </description>
  4875. </property>
  4876. <property>
  4877. <name>dfs.namenode.rpc-address.auxiliary-ports</name>
  4878. <value></value>
  4879. <description>
  4880. A comma separated list of auxiliary ports for the NameNode to listen on.
  4881. This allows exposing multiple NN addresses to clients.
  4882. Particularly, it is used to enforce different SASL levels on different ports.
  4883. Empty list indicates that auxiliary ports are disabled.
  4884. </description>
  4885. </property>
  4886. <property>
  4887. <name>dfs.namenode.send.qop.enabled</name>
  4888. <value>false</value>
  4889. <description>
  4890. A boolean specifies whether NameNode should encrypt the established QOP
  4891. and include it in block token. The encrypted QOP will be used by DataNode
  4892. as target QOP, overwriting DataNode configuration. This ensures DataNode
  4893. will use exactly the same QOP NameNode and client has already agreed on.
  4894. </description>
  4895. </property>
  4896. <property>
  4897. <name>dfs.encrypt.data.overwrite.downstream.derived.qop</name>
  4898. <value>false</value>
  4899. <description>
  4900. A boolean specifies whether DN should overwrite the downstream
  4901. QOP in a write pipeline. This is used in the case where client
  4902. talks to first DN with a QOP, but inter-DN communication needs to be
  4903. using a different QOP. If set to false, the default behaviour is that
  4904. inter-DN communication will use the same QOP as client-DN connection.
  4905. </description>
  4906. </property>
  4907. <property>
  4908. <name>dfs.encrypt.data.overwrite.downstream.new.qop</name>
  4909. <value></value>
  4910. <description>
  4911. When dfs.datanode.overwrite.downstream.derived.qop is set to true,
  4912. this configuration specifies the new QOP to be used to overwrite
  4913. inter-DN QOP.
  4914. </description>
  4915. </property>
  4916. <property>
  4917. <name>dfs.namenode.blockreport.queue.size</name>
  4918. <value>1024</value>
  4919. <description>
  4920. The queue size of BlockReportProcessingThread in BlockManager.
  4921. </description>
  4922. </property>
  4923. <property>
  4924. <name>dfs.namenode.storage.dir.perm</name>
  4925. <value>700</value>
  4926. <description>
  4927. Permissions for the directories on on the local filesystem where
  4928. the DFS namenode stores the fsImage. The permissions can either be
  4929. octal or symbolic.
  4930. </description>
  4931. </property>
  4932. <property>
  4933. <name>dfs.journalnode.edits.dir.perm</name>
  4934. <value>700</value>
  4935. <description>
  4936. Permissions for the directories on on the local filesystem where
  4937. the DFS journal node stores the edits. The permissions can either be
  4938. octal or symbolic.
  4939. </description>
  4940. </property>
  4941. </configuration>