1
0

hdfs-default.xml 209 KB

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