hadoop-hdfs_0.20.0.xml 441 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389
  1. <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
  2. <!-- Generated by the JDiff Javadoc doclet -->
  3. <!-- (http://www.jdiff.org) -->
  4. <!-- on Sun May 31 20:46:08 PDT 2009 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="hadoop-hdfs 0.20.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet jdiff.JDiff -docletpath /home/gkesavan/release-0.20.0/build/ivy/lib/Hadoop/jdiff/jdiff-1.0.9.jar:/home/gkesavan/release-0.20.0/build/ivy/lib/Hadoop/jdiff/xerces-1.4.4.jar -classpath /home/gkesavan/release-0.20.0/build/classes:/home/gkesavan/release-0.20.0/lib/commons-cli-2.0-SNAPSHOT.jar:/home/gkesavan/release-0.20.0/lib/hsqldb-1.8.0.10.jar:/home/gkesavan/release-0.20.0/lib/jsp-2.1/jsp-2.1.jar:/home/gkesavan/release-0.20.0/lib/jsp-2.1/jsp-api-2.1.jar:/home/gkesavan/release-0.20.0/lib/kfs-0.2.2.jar:/home/gkesavan/release-0.20.0/conf:/home/gkesavan/.ivy2/cache/commons-logging/commons-logging/jars/commons-logging-1.0.4.jar:/home/gkesavan/.ivy2/cache/log4j/log4j/jars/log4j-1.2.15.jar:/home/gkesavan/.ivy2/cache/commons-httpclient/commons-httpclient/jars/commons-httpclient-3.0.1.jar:/home/gkesavan/.ivy2/cache/commons-codec/commons-codec/jars/commons-codec-1.3.jar:/home/gkesavan/.ivy2/cache/xmlenc/xmlenc/jars/xmlenc-0.52.jar:/home/gkesavan/.ivy2/cache/net.java.dev.jets3t/jets3t/jars/jets3t-0.6.1.jar:/home/gkesavan/.ivy2/cache/commons-net/commons-net/jars/commons-net-1.4.1.jar:/home/gkesavan/.ivy2/cache/org.mortbay.jetty/servlet-api-2.5/jars/servlet-api-2.5-6.1.14.jar:/home/gkesavan/.ivy2/cache/oro/oro/jars/oro-2.0.8.jar:/home/gkesavan/.ivy2/cache/org.mortbay.jetty/jetty/jars/jetty-6.1.14.jar:/home/gkesavan/.ivy2/cache/org.mortbay.jetty/jetty-util/jars/jetty-util-6.1.14.jar:/home/gkesavan/.ivy2/cache/tomcat/jasper-runtime/jars/jasper-runtime-5.5.12.jar:/home/gkesavan/.ivy2/cache/tomcat/jasper-compiler/jars/jasper-compiler-5.5.12.jar:/home/gkesavan/.ivy2/cache/commons-el/commons-el/jars/commons-el-1.0.jar:/home/gkesavan/.ivy2/cache/junit/junit/jars/junit-3.8.1.jar:/home/gkesavan/.ivy2/cache/commons-logging/commons-logging-api/jars/commons-logging-api-1.0.4.jar:/home/gkesavan/.ivy2/cache/org.slf4j/slf4j-api/jars/slf4j-api-1.4.3.jar:/home/gkesavan/.ivy2/cache/org.eclipse.jdt/core/jars/core-3.1.1.jar:/home/gkesavan/.ivy2/cache/org.slf4j/slf4j-log4j12/jars/slf4j-log4j12-1.4.3.jar:/home/gkesavan/.ivy2/cache/jdiff/jdiff/jars/jdiff-1.0.9.jar:/home/gkesavan/.ivy2/cache/xerces/xerces/jars/xerces-1.4.4.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-launcher.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-resolver.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-starteam.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-netrexx.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-testutil.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-jai.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-swing.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-jmf.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-bcel.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-jdepend.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-jsch.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-bsf.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-antlr.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-weblogic.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-junit.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-log4j.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/xercesImpl.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-oro.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-trax.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-nodeps.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-commons-logging.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-apache-regexp.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-stylebook.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-javamail.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/ant-commons-net.jar:/home/gkesavan/tools/apache-ant-1.7.1/lib/xml-apis.jar:/home/gkesavan/tools/jdk1.6.0_07-32bit/lib/tools.jar -sourcepath /home/gkesavan/release-0.20.0/src/hdfs -apidir /home/gkesavan/release-0.20.0/lib/jdiff -apiname hadoop 0.20.1-dev -->
  11. <package name="org.apache.hadoop.hdfs">
  12. <!-- start class org.apache.hadoop.hdfs.ChecksumDistributedFileSystem -->
  13. <class name="ChecksumDistributedFileSystem" extends="org.apache.hadoop.fs.ChecksumFileSystem"
  14. abstract="false"
  15. static="false" final="false" visibility="public"
  16. deprecated="not deprecated">
  17. <constructor name="ChecksumDistributedFileSystem"
  18. static="false" final="false" visibility="public"
  19. deprecated="not deprecated">
  20. </constructor>
  21. <constructor name="ChecksumDistributedFileSystem" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  22. static="false" final="false" visibility="public"
  23. deprecated="deprecated, no comment">
  24. <exception name="IOException" type="java.io.IOException"/>
  25. <doc>
  26. <![CDATA[@deprecated]]>
  27. </doc>
  28. </constructor>
  29. <method name="getRawCapacity" return="long"
  30. abstract="false" native="false" synchronized="false"
  31. static="false" final="false" visibility="public"
  32. deprecated="not deprecated">
  33. <exception name="IOException" type="java.io.IOException"/>
  34. <doc>
  35. <![CDATA[Return the total raw capacity of the filesystem, disregarding
  36. replication .]]>
  37. </doc>
  38. </method>
  39. <method name="getRawUsed" return="long"
  40. abstract="false" native="false" synchronized="false"
  41. static="false" final="false" visibility="public"
  42. deprecated="not deprecated">
  43. <exception name="IOException" type="java.io.IOException"/>
  44. <doc>
  45. <![CDATA[Return the total raw used space in the filesystem, disregarding
  46. replication .]]>
  47. </doc>
  48. </method>
  49. <method name="getDataNodeStats" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"
  50. abstract="false" native="false" synchronized="false"
  51. static="false" final="false" visibility="public"
  52. deprecated="not deprecated">
  53. <exception name="IOException" type="java.io.IOException"/>
  54. <doc>
  55. <![CDATA[Return statistics for each datanode.]]>
  56. </doc>
  57. </method>
  58. <method name="setSafeMode" return="boolean"
  59. abstract="false" native="false" synchronized="false"
  60. static="false" final="false" visibility="public"
  61. deprecated="not deprecated">
  62. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"/>
  63. <exception name="IOException" type="java.io.IOException"/>
  64. <doc>
  65. <![CDATA[Enter, leave or get safe mode.
  66. @see org.apache.hadoop.hdfs.protocol.ClientProtocol#setSafeMode(FSConstants.SafeModeAction)]]>
  67. </doc>
  68. </method>
  69. <method name="refreshNodes"
  70. abstract="false" native="false" synchronized="false"
  71. static="false" final="false" visibility="public"
  72. deprecated="not deprecated">
  73. <exception name="IOException" type="java.io.IOException"/>
  74. </method>
  75. <method name="finalizeUpgrade"
  76. abstract="false" native="false" synchronized="false"
  77. static="false" final="false" visibility="public"
  78. deprecated="not deprecated">
  79. <exception name="IOException" type="java.io.IOException"/>
  80. <doc>
  81. <![CDATA[Finalize previously upgraded files system state.]]>
  82. </doc>
  83. </method>
  84. <method name="distributedUpgradeProgress" return="org.apache.hadoop.hdfs.server.common.UpgradeStatusReport"
  85. abstract="false" native="false" synchronized="false"
  86. static="false" final="false" visibility="public"
  87. deprecated="not deprecated">
  88. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"/>
  89. <exception name="IOException" type="java.io.IOException"/>
  90. </method>
  91. <method name="metaSave"
  92. abstract="false" native="false" synchronized="false"
  93. static="false" final="false" visibility="public"
  94. deprecated="not deprecated">
  95. <param name="pathname" type="java.lang.String"/>
  96. <exception name="IOException" type="java.io.IOException"/>
  97. </method>
  98. <method name="reportChecksumFailure" return="boolean"
  99. abstract="false" native="false" synchronized="false"
  100. static="false" final="false" visibility="public"
  101. deprecated="not deprecated">
  102. <param name="f" type="org.apache.hadoop.fs.Path"/>
  103. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  104. <param name="inPos" type="long"/>
  105. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  106. <param name="sumsPos" type="long"/>
  107. <doc>
  108. <![CDATA[We need to find the blocks that didn't match. Likely only one
  109. is corrupt but we will report both to the namenode. In the future,
  110. we can consider figuring out exactly which block is corrupt.]]>
  111. </doc>
  112. </method>
  113. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  114. abstract="false" native="false" synchronized="false"
  115. static="false" final="false" visibility="public"
  116. deprecated="not deprecated">
  117. <param name="f" type="org.apache.hadoop.fs.Path"/>
  118. <exception name="IOException" type="java.io.IOException"/>
  119. <doc>
  120. <![CDATA[Returns the stat information about the file.]]>
  121. </doc>
  122. </method>
  123. <doc>
  124. <![CDATA[An implementation of ChecksumFileSystem over DistributedFileSystem.
  125. Note that as of now (May 07), DistributedFileSystem natively checksums
  126. all of its data. Using this class is not be necessary in most cases.
  127. Currently provided mainly for backward compatibility and testing.]]>
  128. </doc>
  129. </class>
  130. <!-- end class org.apache.hadoop.hdfs.ChecksumDistributedFileSystem -->
  131. <!-- start class org.apache.hadoop.hdfs.DFSClient -->
  132. <class name="DFSClient" extends="java.lang.Object"
  133. abstract="false"
  134. static="false" final="false" visibility="public"
  135. deprecated="not deprecated">
  136. <implements name="org.apache.hadoop.hdfs.protocol.FSConstants"/>
  137. <implements name="java.io.Closeable"/>
  138. <constructor name="DFSClient" type="org.apache.hadoop.conf.Configuration"
  139. static="false" final="false" visibility="public"
  140. deprecated="not deprecated">
  141. <exception name="IOException" type="java.io.IOException"/>
  142. <doc>
  143. <![CDATA[Create a new DFSClient connected to the default namenode.]]>
  144. </doc>
  145. </constructor>
  146. <constructor name="DFSClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration, org.apache.hadoop.fs.FileSystem.Statistics"
  147. static="false" final="false" visibility="public"
  148. deprecated="not deprecated">
  149. <exception name="IOException" type="java.io.IOException"/>
  150. <doc>
  151. <![CDATA[Create a new DFSClient connected to the given namenode server.]]>
  152. </doc>
  153. </constructor>
  154. <constructor name="DFSClient" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  155. static="false" final="false" visibility="public"
  156. deprecated="not deprecated">
  157. <exception name="IOException" type="java.io.IOException"/>
  158. </constructor>
  159. <method name="createNamenode" return="org.apache.hadoop.hdfs.protocol.ClientProtocol"
  160. abstract="false" native="false" synchronized="false"
  161. static="true" final="false" visibility="public"
  162. deprecated="not deprecated">
  163. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  164. <exception name="IOException" type="java.io.IOException"/>
  165. </method>
  166. <method name="createNamenode" return="org.apache.hadoop.hdfs.protocol.ClientProtocol"
  167. abstract="false" native="false" synchronized="false"
  168. static="true" final="false" visibility="public"
  169. deprecated="not deprecated">
  170. <param name="nameNodeAddr" type="java.net.InetSocketAddress"/>
  171. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  172. <exception name="IOException" type="java.io.IOException"/>
  173. </method>
  174. <method name="close"
  175. abstract="false" native="false" synchronized="true"
  176. static="false" final="false" visibility="public"
  177. deprecated="not deprecated">
  178. <exception name="IOException" type="java.io.IOException"/>
  179. <doc>
  180. <![CDATA[Close the file system, abandoning all of the leases and files being
  181. created and close connections to the namenode.]]>
  182. </doc>
  183. </method>
  184. <method name="getDefaultBlockSize" return="long"
  185. abstract="false" native="false" synchronized="false"
  186. static="false" final="false" visibility="public"
  187. deprecated="not deprecated">
  188. <doc>
  189. <![CDATA[Get the default block size for this cluster
  190. @return the default block size in bytes]]>
  191. </doc>
  192. </method>
  193. <method name="getBlockSize" return="long"
  194. abstract="false" native="false" synchronized="false"
  195. static="false" final="false" visibility="public"
  196. deprecated="not deprecated">
  197. <param name="f" type="java.lang.String"/>
  198. <exception name="IOException" type="java.io.IOException"/>
  199. </method>
  200. <method name="reportBadBlocks"
  201. abstract="false" native="false" synchronized="false"
  202. static="false" final="false" visibility="public"
  203. deprecated="not deprecated">
  204. <param name="blocks" type="org.apache.hadoop.hdfs.protocol.LocatedBlock[]"/>
  205. <exception name="IOException" type="java.io.IOException"/>
  206. <doc>
  207. <![CDATA[Report corrupt blocks that were discovered by the client.]]>
  208. </doc>
  209. </method>
  210. <method name="getDefaultReplication" return="short"
  211. abstract="false" native="false" synchronized="false"
  212. static="false" final="false" visibility="public"
  213. deprecated="not deprecated">
  214. </method>
  215. <method name="getHints" return="java.lang.String[][]"
  216. abstract="false" native="false" synchronized="false"
  217. static="false" final="false" visibility="public"
  218. deprecated="Use getBlockLocations instead
  219. Get hints about the location of the indicated block(s).
  220. getHints() returns a list of hostnames that store data for
  221. a specific file region. It returns a set of hostnames for
  222. every block within the indicated region.
  223. This function is very useful when writing code that considers
  224. data-placement when performing operations. For example, the
  225. MapReduce system tries to schedule tasks on the same machines
  226. as the data-block the task processes.">
  227. <param name="src" type="java.lang.String"/>
  228. <param name="start" type="long"/>
  229. <param name="length" type="long"/>
  230. <exception name="IOException" type="java.io.IOException"/>
  231. <doc>
  232. <![CDATA[@deprecated Use getBlockLocations instead
  233. Get hints about the location of the indicated block(s).
  234. getHints() returns a list of hostnames that store data for
  235. a specific file region. It returns a set of hostnames for
  236. every block within the indicated region.
  237. This function is very useful when writing code that considers
  238. data-placement when performing operations. For example, the
  239. MapReduce system tries to schedule tasks on the same machines
  240. as the data-block the task processes.]]>
  241. </doc>
  242. </method>
  243. <method name="getBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  244. abstract="false" native="false" synchronized="false"
  245. static="false" final="false" visibility="public"
  246. deprecated="not deprecated">
  247. <param name="src" type="java.lang.String"/>
  248. <param name="start" type="long"/>
  249. <param name="length" type="long"/>
  250. <exception name="IOException" type="java.io.IOException"/>
  251. <doc>
  252. <![CDATA[Get block location info about file
  253. getBlockLocations() returns a list of hostnames that store
  254. data for a specific file region. It returns a set of hostnames
  255. for every block within the indicated region.
  256. This function is very useful when writing code that considers
  257. data-placement when performing operations. For example, the
  258. MapReduce system tries to schedule tasks on the same machines
  259. as the data-block the task processes.]]>
  260. </doc>
  261. </method>
  262. <method name="open" return="org.apache.hadoop.hdfs.DFSClient.DFSInputStream"
  263. abstract="false" native="false" synchronized="false"
  264. static="false" final="false" visibility="public"
  265. deprecated="not deprecated">
  266. <param name="src" type="java.lang.String"/>
  267. <exception name="IOException" type="java.io.IOException"/>
  268. </method>
  269. <method name="create" return="java.io.OutputStream"
  270. abstract="false" native="false" synchronized="false"
  271. static="false" final="false" visibility="public"
  272. deprecated="not deprecated">
  273. <param name="src" type="java.lang.String"/>
  274. <param name="overwrite" type="boolean"/>
  275. <exception name="IOException" type="java.io.IOException"/>
  276. <doc>
  277. <![CDATA[Create a new dfs file and return an output stream for writing into it.
  278. @param src stream name
  279. @param overwrite do not check for file existence if true
  280. @return output stream
  281. @throws IOException]]>
  282. </doc>
  283. </method>
  284. <method name="create" return="java.io.OutputStream"
  285. abstract="false" native="false" synchronized="false"
  286. static="false" final="false" visibility="public"
  287. deprecated="not deprecated">
  288. <param name="src" type="java.lang.String"/>
  289. <param name="overwrite" type="boolean"/>
  290. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  291. <exception name="IOException" type="java.io.IOException"/>
  292. <doc>
  293. <![CDATA[Create a new dfs file and return an output stream for writing into it
  294. with write-progress reporting.
  295. @param src stream name
  296. @param overwrite do not check for file existence if true
  297. @return output stream
  298. @throws IOException]]>
  299. </doc>
  300. </method>
  301. <method name="create" return="java.io.OutputStream"
  302. abstract="false" native="false" synchronized="false"
  303. static="false" final="false" visibility="public"
  304. deprecated="not deprecated">
  305. <param name="src" type="java.lang.String"/>
  306. <param name="overwrite" type="boolean"/>
  307. <param name="replication" type="short"/>
  308. <param name="blockSize" type="long"/>
  309. <exception name="IOException" type="java.io.IOException"/>
  310. <doc>
  311. <![CDATA[Create a new dfs file with the specified block replication
  312. and return an output stream for writing into the file.
  313. @param src stream name
  314. @param overwrite do not check for file existence if true
  315. @param replication block replication
  316. @return output stream
  317. @throws IOException]]>
  318. </doc>
  319. </method>
  320. <method name="create" return="java.io.OutputStream"
  321. abstract="false" native="false" synchronized="false"
  322. static="false" final="false" visibility="public"
  323. deprecated="not deprecated">
  324. <param name="src" type="java.lang.String"/>
  325. <param name="overwrite" type="boolean"/>
  326. <param name="replication" type="short"/>
  327. <param name="blockSize" type="long"/>
  328. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  329. <exception name="IOException" type="java.io.IOException"/>
  330. <doc>
  331. <![CDATA[Create a new dfs file with the specified block replication
  332. with write-progress reporting and return an output stream for writing
  333. into the file.
  334. @param src stream name
  335. @param overwrite do not check for file existence if true
  336. @param replication block replication
  337. @return output stream
  338. @throws IOException]]>
  339. </doc>
  340. </method>
  341. <method name="create" return="java.io.OutputStream"
  342. abstract="false" native="false" synchronized="false"
  343. static="false" final="false" visibility="public"
  344. deprecated="not deprecated">
  345. <param name="src" type="java.lang.String"/>
  346. <param name="overwrite" type="boolean"/>
  347. <param name="replication" type="short"/>
  348. <param name="blockSize" type="long"/>
  349. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  350. <param name="buffersize" type="int"/>
  351. <exception name="IOException" type="java.io.IOException"/>
  352. <doc>
  353. <![CDATA[Call
  354. {@link #create(String,FsPermission,boolean,short,long,Progressable,int)}
  355. with default permission.
  356. @see FsPermission#getDefault()]]>
  357. </doc>
  358. </method>
  359. <method name="create" return="java.io.OutputStream"
  360. abstract="false" native="false" synchronized="false"
  361. static="false" final="false" visibility="public"
  362. deprecated="not deprecated">
  363. <param name="src" type="java.lang.String"/>
  364. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  365. <param name="overwrite" type="boolean"/>
  366. <param name="replication" type="short"/>
  367. <param name="blockSize" type="long"/>
  368. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  369. <param name="buffersize" type="int"/>
  370. <exception name="IOException" type="java.io.IOException"/>
  371. <doc>
  372. <![CDATA[Create a new dfs file with the specified block replication
  373. with write-progress reporting and return an output stream for writing
  374. into the file.
  375. @param src stream name
  376. @param permission The permission of the directory being created.
  377. If permission == null, use {@link FsPermission#getDefault()}.
  378. @param overwrite do not check for file existence if true
  379. @param replication block replication
  380. @return output stream
  381. @throws IOException
  382. @see ClientProtocol#create(String, FsPermission, String, boolean, short, long)]]>
  383. </doc>
  384. </method>
  385. <method name="setReplication" return="boolean"
  386. abstract="false" native="false" synchronized="false"
  387. static="false" final="false" visibility="public"
  388. deprecated="not deprecated">
  389. <param name="src" type="java.lang.String"/>
  390. <param name="replication" type="short"/>
  391. <exception name="IOException" type="java.io.IOException"/>
  392. <doc>
  393. <![CDATA[Set replication for an existing file.
  394. @see ClientProtocol#setReplication(String, short)
  395. @param replication
  396. @throws IOException
  397. @return true is successful or false if file does not exist]]>
  398. </doc>
  399. </method>
  400. <method name="rename" return="boolean"
  401. abstract="false" native="false" synchronized="false"
  402. static="false" final="false" visibility="public"
  403. deprecated="not deprecated">
  404. <param name="src" type="java.lang.String"/>
  405. <param name="dst" type="java.lang.String"/>
  406. <exception name="IOException" type="java.io.IOException"/>
  407. <doc>
  408. <![CDATA[Rename file or directory.
  409. See {@link ClientProtocol#rename(String, String)}.]]>
  410. </doc>
  411. </method>
  412. <method name="delete" return="boolean"
  413. abstract="false" native="false" synchronized="false"
  414. static="false" final="false" visibility="public"
  415. deprecated="not deprecated">
  416. <param name="src" type="java.lang.String"/>
  417. <exception name="IOException" type="java.io.IOException"/>
  418. <doc>
  419. <![CDATA[Delete file or directory.
  420. See {@link ClientProtocol#delete(String)}.]]>
  421. </doc>
  422. </method>
  423. <method name="delete" return="boolean"
  424. abstract="false" native="false" synchronized="false"
  425. static="false" final="false" visibility="public"
  426. deprecated="not deprecated">
  427. <param name="src" type="java.lang.String"/>
  428. <param name="recursive" type="boolean"/>
  429. <exception name="IOException" type="java.io.IOException"/>
  430. <doc>
  431. <![CDATA[delete file or directory.
  432. delete contents of the directory if non empty and recursive
  433. set to true]]>
  434. </doc>
  435. </method>
  436. <method name="exists" return="boolean"
  437. abstract="false" native="false" synchronized="false"
  438. static="false" final="false" visibility="public"
  439. deprecated="not deprecated">
  440. <param name="src" type="java.lang.String"/>
  441. <exception name="IOException" type="java.io.IOException"/>
  442. <doc>
  443. <![CDATA[Implemented using getFileInfo(src)]]>
  444. </doc>
  445. </method>
  446. <method name="isDirectory" return="boolean"
  447. abstract="false" native="false" synchronized="false"
  448. static="false" final="false" visibility="public"
  449. deprecated="Use getFileStatus() instead">
  450. <param name="src" type="java.lang.String"/>
  451. <exception name="IOException" type="java.io.IOException"/>
  452. <doc>
  453. <![CDATA[@deprecated Use getFileStatus() instead]]>
  454. </doc>
  455. </method>
  456. <method name="listPaths" return="org.apache.hadoop.fs.FileStatus[]"
  457. abstract="false" native="false" synchronized="false"
  458. static="false" final="false" visibility="public"
  459. deprecated="not deprecated">
  460. <param name="src" type="java.lang.String"/>
  461. <exception name="IOException" type="java.io.IOException"/>
  462. </method>
  463. <method name="getFileInfo" return="org.apache.hadoop.fs.FileStatus"
  464. abstract="false" native="false" synchronized="false"
  465. static="false" final="false" visibility="public"
  466. deprecated="not deprecated">
  467. <param name="src" type="java.lang.String"/>
  468. <exception name="IOException" type="java.io.IOException"/>
  469. </method>
  470. <method name="getFileChecksum" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  471. abstract="false" native="false" synchronized="false"
  472. static="true" final="false" visibility="public"
  473. deprecated="not deprecated">
  474. <param name="src" type="java.lang.String"/>
  475. <param name="namenode" type="org.apache.hadoop.hdfs.protocol.ClientProtocol"/>
  476. <param name="socketFactory" type="javax.net.SocketFactory"/>
  477. <param name="socketTimeout" type="int"/>
  478. <exception name="IOException" type="java.io.IOException"/>
  479. <doc>
  480. <![CDATA[Get the checksum of a file.
  481. @param src The file path
  482. @return The checksum]]>
  483. </doc>
  484. </method>
  485. <method name="setPermission"
  486. abstract="false" native="false" synchronized="false"
  487. static="false" final="false" visibility="public"
  488. deprecated="not deprecated">
  489. <param name="src" type="java.lang.String"/>
  490. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  491. <exception name="IOException" type="java.io.IOException"/>
  492. <doc>
  493. <![CDATA[Set permissions to a file or directory.
  494. @param src path name.
  495. @param permission
  496. @throws <code>FileNotFoundException</code> is file does not exist.]]>
  497. </doc>
  498. </method>
  499. <method name="setOwner"
  500. abstract="false" native="false" synchronized="false"
  501. static="false" final="false" visibility="public"
  502. deprecated="not deprecated">
  503. <param name="src" type="java.lang.String"/>
  504. <param name="username" type="java.lang.String"/>
  505. <param name="groupname" type="java.lang.String"/>
  506. <exception name="IOException" type="java.io.IOException"/>
  507. <doc>
  508. <![CDATA[Set file or directory owner.
  509. @param src path name.
  510. @param username user id.
  511. @param groupname user group.
  512. @throws <code>FileNotFoundException</code> is file does not exist.]]>
  513. </doc>
  514. </method>
  515. <method name="getDiskStatus" return="org.apache.hadoop.hdfs.DistributedFileSystem.DiskStatus"
  516. abstract="false" native="false" synchronized="false"
  517. static="false" final="false" visibility="public"
  518. deprecated="not deprecated">
  519. <exception name="IOException" type="java.io.IOException"/>
  520. </method>
  521. <method name="totalRawCapacity" return="long"
  522. abstract="false" native="false" synchronized="false"
  523. static="false" final="false" visibility="public"
  524. deprecated="not deprecated">
  525. <exception name="IOException" type="java.io.IOException"/>
  526. </method>
  527. <method name="totalRawUsed" return="long"
  528. abstract="false" native="false" synchronized="false"
  529. static="false" final="false" visibility="public"
  530. deprecated="not deprecated">
  531. <exception name="IOException" type="java.io.IOException"/>
  532. </method>
  533. <method name="getMissingBlocksCount" return="long"
  534. abstract="false" native="false" synchronized="false"
  535. static="false" final="false" visibility="public"
  536. deprecated="not deprecated">
  537. <exception name="IOException" type="java.io.IOException"/>
  538. <doc>
  539. <![CDATA[Returns count of blocks with no good replicas left. Normally should be
  540. zero.
  541. @throws IOException]]>
  542. </doc>
  543. </method>
  544. <method name="getUnderReplicatedBlocksCount" return="long"
  545. abstract="false" native="false" synchronized="false"
  546. static="false" final="false" visibility="public"
  547. deprecated="not deprecated">
  548. <exception name="IOException" type="java.io.IOException"/>
  549. <doc>
  550. <![CDATA[Returns count of blocks with one of more replica missing.
  551. @throws IOException]]>
  552. </doc>
  553. </method>
  554. <method name="getCorruptBlocksCount" return="long"
  555. abstract="false" native="false" synchronized="false"
  556. static="false" final="false" visibility="public"
  557. deprecated="not deprecated">
  558. <exception name="IOException" type="java.io.IOException"/>
  559. <doc>
  560. <![CDATA[Returns count of blocks with at least one replica marked corrupt.
  561. @throws IOException]]>
  562. </doc>
  563. </method>
  564. <method name="datanodeReport" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"
  565. abstract="false" native="false" synchronized="false"
  566. static="false" final="false" visibility="public"
  567. deprecated="not deprecated">
  568. <param name="type" type="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType"/>
  569. <exception name="IOException" type="java.io.IOException"/>
  570. </method>
  571. <method name="setSafeMode" return="boolean"
  572. abstract="false" native="false" synchronized="false"
  573. static="false" final="false" visibility="public"
  574. deprecated="not deprecated">
  575. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"/>
  576. <exception name="IOException" type="java.io.IOException"/>
  577. <doc>
  578. <![CDATA[Enter, leave or get safe mode.
  579. See {@link ClientProtocol#setSafeMode(FSConstants.SafeModeAction)}
  580. for more details.
  581. @see ClientProtocol#setSafeMode(FSConstants.SafeModeAction)]]>
  582. </doc>
  583. </method>
  584. <method name="refreshNodes"
  585. abstract="false" native="false" synchronized="false"
  586. static="false" final="false" visibility="public"
  587. deprecated="not deprecated">
  588. <exception name="IOException" type="java.io.IOException"/>
  589. <doc>
  590. <![CDATA[Refresh the hosts and exclude files. (Rereads them.)
  591. See {@link ClientProtocol#refreshNodes()}
  592. for more details.
  593. @see ClientProtocol#refreshNodes()]]>
  594. </doc>
  595. </method>
  596. <method name="metaSave"
  597. abstract="false" native="false" synchronized="false"
  598. static="false" final="false" visibility="public"
  599. deprecated="not deprecated">
  600. <param name="pathname" type="java.lang.String"/>
  601. <exception name="IOException" type="java.io.IOException"/>
  602. <doc>
  603. <![CDATA[Dumps DFS data structures into specified file.
  604. See {@link ClientProtocol#metaSave(String)}
  605. for more details.
  606. @see ClientProtocol#metaSave(String)]]>
  607. </doc>
  608. </method>
  609. <method name="finalizeUpgrade"
  610. abstract="false" native="false" synchronized="false"
  611. static="false" final="false" visibility="public"
  612. deprecated="not deprecated">
  613. <exception name="IOException" type="java.io.IOException"/>
  614. <doc>
  615. <![CDATA[@see ClientProtocol#finalizeUpgrade()]]>
  616. </doc>
  617. </method>
  618. <method name="distributedUpgradeProgress" return="org.apache.hadoop.hdfs.server.common.UpgradeStatusReport"
  619. abstract="false" native="false" synchronized="false"
  620. static="false" final="false" visibility="public"
  621. deprecated="not deprecated">
  622. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"/>
  623. <exception name="IOException" type="java.io.IOException"/>
  624. <doc>
  625. <![CDATA[@see ClientProtocol#distributedUpgradeProgress(FSConstants.UpgradeAction)]]>
  626. </doc>
  627. </method>
  628. <method name="mkdirs" return="boolean"
  629. abstract="false" native="false" synchronized="false"
  630. static="false" final="false" visibility="public"
  631. deprecated="not deprecated">
  632. <param name="src" type="java.lang.String"/>
  633. <exception name="IOException" type="java.io.IOException"/>
  634. </method>
  635. <method name="mkdirs" return="boolean"
  636. abstract="false" native="false" synchronized="false"
  637. static="false" final="false" visibility="public"
  638. deprecated="not deprecated">
  639. <param name="src" type="java.lang.String"/>
  640. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  641. <exception name="IOException" type="java.io.IOException"/>
  642. <doc>
  643. <![CDATA[Create a directory (or hierarchy of directories) with the given
  644. name and permission.
  645. @param src The path of the directory being created
  646. @param permission The permission of the directory being created.
  647. If permission == null, use {@link FsPermission#getDefault()}.
  648. @return True if the operation success.
  649. @see ClientProtocol#mkdirs(String, FsPermission)]]>
  650. </doc>
  651. </method>
  652. <method name="setTimes"
  653. abstract="false" native="false" synchronized="false"
  654. static="false" final="false" visibility="public"
  655. deprecated="not deprecated">
  656. <param name="src" type="java.lang.String"/>
  657. <param name="mtime" type="long"/>
  658. <param name="atime" type="long"/>
  659. <exception name="IOException" type="java.io.IOException"/>
  660. <doc>
  661. <![CDATA[set the modification and access time of a file
  662. @throws FileNotFoundException if the path is not a file]]>
  663. </doc>
  664. </method>
  665. <method name="toString" return="java.lang.String"
  666. abstract="false" native="false" synchronized="false"
  667. static="false" final="false" visibility="public"
  668. deprecated="not deprecated">
  669. <doc>
  670. <![CDATA[{@inheritDoc}]]>
  671. </doc>
  672. </method>
  673. <field name="LOG" type="org.apache.commons.logging.Log"
  674. transient="false" volatile="false"
  675. static="true" final="true" visibility="public"
  676. deprecated="not deprecated">
  677. </field>
  678. <field name="MAX_BLOCK_ACQUIRE_FAILURES" type="int"
  679. transient="false" volatile="false"
  680. static="true" final="true" visibility="public"
  681. deprecated="not deprecated">
  682. </field>
  683. <field name="namenode" type="org.apache.hadoop.hdfs.protocol.ClientProtocol"
  684. transient="false" volatile="false"
  685. static="false" final="true" visibility="public"
  686. deprecated="not deprecated">
  687. </field>
  688. <doc>
  689. <![CDATA[DFSClient can connect to a Hadoop Filesystem and
  690. perform basic file tasks. It uses the ClientProtocol
  691. to communicate with a NameNode daemon, and connects
  692. directly to DataNodes to read/write block data.
  693. Hadoop DFS users should obtain an instance of
  694. DistributedFileSystem, which uses DFSClient to handle
  695. filesystem tasks.]]>
  696. </doc>
  697. </class>
  698. <!-- end class org.apache.hadoop.hdfs.DFSClient -->
  699. <!-- start class org.apache.hadoop.hdfs.DFSClient.BlockReader -->
  700. <class name="DFSClient.BlockReader" extends="org.apache.hadoop.fs.FSInputChecker"
  701. abstract="false"
  702. static="true" final="false" visibility="public"
  703. deprecated="not deprecated">
  704. <method name="read" return="int"
  705. abstract="false" native="false" synchronized="true"
  706. static="false" final="false" visibility="public"
  707. deprecated="not deprecated">
  708. <param name="buf" type="byte[]"/>
  709. <param name="off" type="int"/>
  710. <param name="len" type="int"/>
  711. <exception name="IOException" type="java.io.IOException"/>
  712. </method>
  713. <method name="skip" return="long"
  714. abstract="false" native="false" synchronized="true"
  715. static="false" final="false" visibility="public"
  716. deprecated="not deprecated">
  717. <param name="n" type="long"/>
  718. <exception name="IOException" type="java.io.IOException"/>
  719. </method>
  720. <method name="read" return="int"
  721. abstract="false" native="false" synchronized="false"
  722. static="false" final="false" visibility="public"
  723. deprecated="not deprecated">
  724. <exception name="IOException" type="java.io.IOException"/>
  725. </method>
  726. <method name="seekToNewSource" return="boolean"
  727. abstract="false" native="false" synchronized="false"
  728. static="false" final="false" visibility="public"
  729. deprecated="not deprecated">
  730. <param name="targetPos" type="long"/>
  731. <exception name="IOException" type="java.io.IOException"/>
  732. </method>
  733. <method name="seek"
  734. abstract="false" native="false" synchronized="false"
  735. static="false" final="false" visibility="public"
  736. deprecated="not deprecated">
  737. <param name="pos" type="long"/>
  738. <exception name="IOException" type="java.io.IOException"/>
  739. </method>
  740. <method name="getChunkPosition" return="long"
  741. abstract="false" native="false" synchronized="false"
  742. static="false" final="false" visibility="protected"
  743. deprecated="not deprecated">
  744. <param name="pos" type="long"/>
  745. </method>
  746. <method name="readChunk" return="int"
  747. abstract="false" native="false" synchronized="true"
  748. static="false" final="false" visibility="protected"
  749. deprecated="not deprecated">
  750. <param name="pos" type="long"/>
  751. <param name="buf" type="byte[]"/>
  752. <param name="offset" type="int"/>
  753. <param name="len" type="int"/>
  754. <param name="checksumBuf" type="byte[]"/>
  755. <exception name="IOException" type="java.io.IOException"/>
  756. </method>
  757. <method name="newBlockReader" return="org.apache.hadoop.hdfs.DFSClient.BlockReader"
  758. abstract="false" native="false" synchronized="false"
  759. static="true" final="false" visibility="public"
  760. deprecated="not deprecated">
  761. <param name="sock" type="java.net.Socket"/>
  762. <param name="file" type="java.lang.String"/>
  763. <param name="blockId" type="long"/>
  764. <param name="genStamp" type="long"/>
  765. <param name="startOffset" type="long"/>
  766. <param name="len" type="long"/>
  767. <param name="bufferSize" type="int"/>
  768. <exception name="IOException" type="java.io.IOException"/>
  769. </method>
  770. <method name="newBlockReader" return="org.apache.hadoop.hdfs.DFSClient.BlockReader"
  771. abstract="false" native="false" synchronized="false"
  772. static="true" final="false" visibility="public"
  773. deprecated="not deprecated">
  774. <param name="sock" type="java.net.Socket"/>
  775. <param name="file" type="java.lang.String"/>
  776. <param name="blockId" type="long"/>
  777. <param name="genStamp" type="long"/>
  778. <param name="startOffset" type="long"/>
  779. <param name="len" type="long"/>
  780. <param name="bufferSize" type="int"/>
  781. <param name="verifyChecksum" type="boolean"/>
  782. <exception name="IOException" type="java.io.IOException"/>
  783. <doc>
  784. <![CDATA[Java Doc required]]>
  785. </doc>
  786. </method>
  787. <method name="newBlockReader" return="org.apache.hadoop.hdfs.DFSClient.BlockReader"
  788. abstract="false" native="false" synchronized="false"
  789. static="true" final="false" visibility="public"
  790. deprecated="not deprecated">
  791. <param name="sock" type="java.net.Socket"/>
  792. <param name="file" type="java.lang.String"/>
  793. <param name="blockId" type="long"/>
  794. <param name="genStamp" type="long"/>
  795. <param name="startOffset" type="long"/>
  796. <param name="len" type="long"/>
  797. <param name="bufferSize" type="int"/>
  798. <param name="verifyChecksum" type="boolean"/>
  799. <param name="clientName" type="java.lang.String"/>
  800. <exception name="IOException" type="java.io.IOException"/>
  801. </method>
  802. <method name="close"
  803. abstract="false" native="false" synchronized="true"
  804. static="false" final="false" visibility="public"
  805. deprecated="not deprecated">
  806. <exception name="IOException" type="java.io.IOException"/>
  807. </method>
  808. <method name="readAll" return="int"
  809. abstract="false" native="false" synchronized="false"
  810. static="false" final="false" visibility="public"
  811. deprecated="not deprecated">
  812. <param name="buf" type="byte[]"/>
  813. <param name="offset" type="int"/>
  814. <param name="len" type="int"/>
  815. <exception name="IOException" type="java.io.IOException"/>
  816. <doc>
  817. <![CDATA[kind of like readFully(). Only reads as much as possible.
  818. And allows use of protected readFully().]]>
  819. </doc>
  820. </method>
  821. <doc>
  822. <![CDATA[This is a wrapper around connection to datadone
  823. and understands checksum, offset etc]]>
  824. </doc>
  825. </class>
  826. <!-- end class org.apache.hadoop.hdfs.DFSClient.BlockReader -->
  827. <!-- start class org.apache.hadoop.hdfs.DFSUtil -->
  828. <class name="DFSUtil" extends="java.lang.Object"
  829. abstract="false"
  830. static="false" final="false" visibility="public"
  831. deprecated="not deprecated">
  832. <constructor name="DFSUtil"
  833. static="false" final="false" visibility="public"
  834. deprecated="not deprecated">
  835. </constructor>
  836. <method name="isValidName" return="boolean"
  837. abstract="false" native="false" synchronized="false"
  838. static="true" final="false" visibility="public"
  839. deprecated="not deprecated">
  840. <param name="src" type="java.lang.String"/>
  841. <doc>
  842. <![CDATA[Whether the pathname is valid. Currently prohibits relative paths,
  843. and names which contain a ":" or "/"]]>
  844. </doc>
  845. </method>
  846. </class>
  847. <!-- end class org.apache.hadoop.hdfs.DFSUtil -->
  848. <!-- start class org.apache.hadoop.hdfs.DistributedFileSystem -->
  849. <class name="DistributedFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  850. abstract="false"
  851. static="false" final="false" visibility="public"
  852. deprecated="not deprecated">
  853. <constructor name="DistributedFileSystem"
  854. static="false" final="false" visibility="public"
  855. deprecated="not deprecated">
  856. </constructor>
  857. <constructor name="DistributedFileSystem" type="java.net.InetSocketAddress, org.apache.hadoop.conf.Configuration"
  858. static="false" final="false" visibility="public"
  859. deprecated="deprecated, no comment">
  860. <exception name="IOException" type="java.io.IOException"/>
  861. <doc>
  862. <![CDATA[@deprecated]]>
  863. </doc>
  864. </constructor>
  865. <method name="getName" return="java.lang.String"
  866. abstract="false" native="false" synchronized="false"
  867. static="false" final="false" visibility="public"
  868. deprecated="deprecated, no comment">
  869. <doc>
  870. <![CDATA[@deprecated]]>
  871. </doc>
  872. </method>
  873. <method name="getUri" return="java.net.URI"
  874. abstract="false" native="false" synchronized="false"
  875. static="false" final="false" visibility="public"
  876. deprecated="not deprecated">
  877. </method>
  878. <method name="initialize"
  879. abstract="false" native="false" synchronized="false"
  880. static="false" final="false" visibility="public"
  881. deprecated="not deprecated">
  882. <param name="uri" type="java.net.URI"/>
  883. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  884. <exception name="IOException" type="java.io.IOException"/>
  885. </method>
  886. <method name="checkPath"
  887. abstract="false" native="false" synchronized="false"
  888. static="false" final="false" visibility="protected"
  889. deprecated="not deprecated">
  890. <param name="path" type="org.apache.hadoop.fs.Path"/>
  891. <doc>
  892. <![CDATA[Permit paths which explicitly specify the default port.]]>
  893. </doc>
  894. </method>
  895. <method name="makeQualified" return="org.apache.hadoop.fs.Path"
  896. abstract="false" native="false" synchronized="false"
  897. static="false" final="false" visibility="public"
  898. deprecated="not deprecated">
  899. <param name="path" type="org.apache.hadoop.fs.Path"/>
  900. <doc>
  901. <![CDATA[Normalize paths that explicitly specify the default port.]]>
  902. </doc>
  903. </method>
  904. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  905. abstract="false" native="false" synchronized="false"
  906. static="false" final="false" visibility="public"
  907. deprecated="not deprecated">
  908. </method>
  909. <method name="getDefaultBlockSize" return="long"
  910. abstract="false" native="false" synchronized="false"
  911. static="false" final="false" visibility="public"
  912. deprecated="not deprecated">
  913. </method>
  914. <method name="getDefaultReplication" return="short"
  915. abstract="false" native="false" synchronized="false"
  916. static="false" final="false" visibility="public"
  917. deprecated="not deprecated">
  918. </method>
  919. <method name="setWorkingDirectory"
  920. abstract="false" native="false" synchronized="false"
  921. static="false" final="false" visibility="public"
  922. deprecated="not deprecated">
  923. <param name="dir" type="org.apache.hadoop.fs.Path"/>
  924. </method>
  925. <method name="getHomeDirectory" return="org.apache.hadoop.fs.Path"
  926. abstract="false" native="false" synchronized="false"
  927. static="false" final="false" visibility="public"
  928. deprecated="not deprecated">
  929. <doc>
  930. <![CDATA[{@inheritDoc}]]>
  931. </doc>
  932. </method>
  933. <method name="getFileBlockLocations" return="org.apache.hadoop.fs.BlockLocation[]"
  934. abstract="false" native="false" synchronized="false"
  935. static="false" final="false" visibility="public"
  936. deprecated="not deprecated">
  937. <param name="file" type="org.apache.hadoop.fs.FileStatus"/>
  938. <param name="start" type="long"/>
  939. <param name="len" type="long"/>
  940. <exception name="IOException" type="java.io.IOException"/>
  941. </method>
  942. <method name="setVerifyChecksum"
  943. abstract="false" native="false" synchronized="false"
  944. static="false" final="false" visibility="public"
  945. deprecated="not deprecated">
  946. <param name="verifyChecksum" type="boolean"/>
  947. </method>
  948. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  949. abstract="false" native="false" synchronized="false"
  950. static="false" final="false" visibility="public"
  951. deprecated="not deprecated">
  952. <param name="f" type="org.apache.hadoop.fs.Path"/>
  953. <param name="bufferSize" type="int"/>
  954. <exception name="IOException" type="java.io.IOException"/>
  955. </method>
  956. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  957. abstract="false" native="false" synchronized="false"
  958. static="false" final="false" visibility="public"
  959. deprecated="not deprecated">
  960. <param name="f" type="org.apache.hadoop.fs.Path"/>
  961. <param name="bufferSize" type="int"/>
  962. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  963. <exception name="IOException" type="java.io.IOException"/>
  964. <doc>
  965. <![CDATA[This optional operation is not yet supported.]]>
  966. </doc>
  967. </method>
  968. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  969. abstract="false" native="false" synchronized="false"
  970. static="false" final="false" visibility="public"
  971. deprecated="not deprecated">
  972. <param name="f" type="org.apache.hadoop.fs.Path"/>
  973. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  974. <param name="overwrite" type="boolean"/>
  975. <param name="bufferSize" type="int"/>
  976. <param name="replication" type="short"/>
  977. <param name="blockSize" type="long"/>
  978. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  979. <exception name="IOException" type="java.io.IOException"/>
  980. </method>
  981. <method name="setReplication" return="boolean"
  982. abstract="false" native="false" synchronized="false"
  983. static="false" final="false" visibility="public"
  984. deprecated="not deprecated">
  985. <param name="src" type="org.apache.hadoop.fs.Path"/>
  986. <param name="replication" type="short"/>
  987. <exception name="IOException" type="java.io.IOException"/>
  988. </method>
  989. <method name="rename" return="boolean"
  990. abstract="false" native="false" synchronized="false"
  991. static="false" final="false" visibility="public"
  992. deprecated="not deprecated">
  993. <param name="src" type="org.apache.hadoop.fs.Path"/>
  994. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  995. <exception name="IOException" type="java.io.IOException"/>
  996. <doc>
  997. <![CDATA[Rename files/dirs]]>
  998. </doc>
  999. </method>
  1000. <method name="delete" return="boolean"
  1001. abstract="false" native="false" synchronized="false"
  1002. static="false" final="false" visibility="public"
  1003. deprecated="not deprecated">
  1004. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1005. <exception name="IOException" type="java.io.IOException"/>
  1006. <doc>
  1007. <![CDATA[Get rid of Path f, whether a true file or dir.]]>
  1008. </doc>
  1009. </method>
  1010. <method name="delete" return="boolean"
  1011. abstract="false" native="false" synchronized="false"
  1012. static="false" final="false" visibility="public"
  1013. deprecated="not deprecated">
  1014. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1015. <param name="recursive" type="boolean"/>
  1016. <exception name="IOException" type="java.io.IOException"/>
  1017. <doc>
  1018. <![CDATA[requires a boolean check to delete a non
  1019. empty directory recursively.]]>
  1020. </doc>
  1021. </method>
  1022. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  1023. abstract="false" native="false" synchronized="false"
  1024. static="false" final="false" visibility="public"
  1025. deprecated="not deprecated">
  1026. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1027. <exception name="IOException" type="java.io.IOException"/>
  1028. <doc>
  1029. <![CDATA[{@inheritDoc}]]>
  1030. </doc>
  1031. </method>
  1032. <method name="setQuota"
  1033. abstract="false" native="false" synchronized="false"
  1034. static="false" final="false" visibility="public"
  1035. deprecated="not deprecated">
  1036. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1037. <param name="namespaceQuota" type="long"/>
  1038. <param name="diskspaceQuota" type="long"/>
  1039. <exception name="IOException" type="java.io.IOException"/>
  1040. <doc>
  1041. <![CDATA[Set a directory's quotas
  1042. @see org.apache.hadoop.hdfs.protocol.ClientProtocol#setQuota(String, long, long)]]>
  1043. </doc>
  1044. </method>
  1045. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1046. abstract="false" native="false" synchronized="false"
  1047. static="false" final="false" visibility="public"
  1048. deprecated="not deprecated">
  1049. <param name="p" type="org.apache.hadoop.fs.Path"/>
  1050. <exception name="IOException" type="java.io.IOException"/>
  1051. </method>
  1052. <method name="mkdirs" return="boolean"
  1053. abstract="false" native="false" synchronized="false"
  1054. static="false" final="false" visibility="public"
  1055. deprecated="not deprecated">
  1056. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1057. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1058. <exception name="IOException" type="java.io.IOException"/>
  1059. </method>
  1060. <method name="close"
  1061. abstract="false" native="false" synchronized="false"
  1062. static="false" final="false" visibility="public"
  1063. deprecated="not deprecated">
  1064. <exception name="IOException" type="java.io.IOException"/>
  1065. <doc>
  1066. <![CDATA[{@inheritDoc}]]>
  1067. </doc>
  1068. </method>
  1069. <method name="toString" return="java.lang.String"
  1070. abstract="false" native="false" synchronized="false"
  1071. static="false" final="false" visibility="public"
  1072. deprecated="not deprecated">
  1073. </method>
  1074. <method name="getClient" return="org.apache.hadoop.hdfs.DFSClient"
  1075. abstract="false" native="false" synchronized="false"
  1076. static="false" final="false" visibility="public"
  1077. deprecated="not deprecated">
  1078. </method>
  1079. <method name="getDiskStatus" return="org.apache.hadoop.hdfs.DistributedFileSystem.DiskStatus"
  1080. abstract="false" native="false" synchronized="false"
  1081. static="false" final="false" visibility="public"
  1082. deprecated="not deprecated">
  1083. <exception name="IOException" type="java.io.IOException"/>
  1084. <doc>
  1085. <![CDATA[Return the disk usage of the filesystem, including total capacity,
  1086. used space, and remaining space]]>
  1087. </doc>
  1088. </method>
  1089. <method name="getRawCapacity" return="long"
  1090. abstract="false" native="false" synchronized="false"
  1091. static="false" final="false" visibility="public"
  1092. deprecated="not deprecated">
  1093. <exception name="IOException" type="java.io.IOException"/>
  1094. <doc>
  1095. <![CDATA[Return the total raw capacity of the filesystem, disregarding
  1096. replication .]]>
  1097. </doc>
  1098. </method>
  1099. <method name="getRawUsed" return="long"
  1100. abstract="false" native="false" synchronized="false"
  1101. static="false" final="false" visibility="public"
  1102. deprecated="not deprecated">
  1103. <exception name="IOException" type="java.io.IOException"/>
  1104. <doc>
  1105. <![CDATA[Return the total raw used space in the filesystem, disregarding
  1106. replication .]]>
  1107. </doc>
  1108. </method>
  1109. <method name="getMissingBlocksCount" return="long"
  1110. abstract="false" native="false" synchronized="false"
  1111. static="false" final="false" visibility="public"
  1112. deprecated="not deprecated">
  1113. <exception name="IOException" type="java.io.IOException"/>
  1114. <doc>
  1115. <![CDATA[Returns count of blocks with no good replicas left. Normally should be
  1116. zero.
  1117. @throws IOException]]>
  1118. </doc>
  1119. </method>
  1120. <method name="getUnderReplicatedBlocksCount" return="long"
  1121. abstract="false" native="false" synchronized="false"
  1122. static="false" final="false" visibility="public"
  1123. deprecated="not deprecated">
  1124. <exception name="IOException" type="java.io.IOException"/>
  1125. <doc>
  1126. <![CDATA[Returns count of blocks with one of more replica missing.
  1127. @throws IOException]]>
  1128. </doc>
  1129. </method>
  1130. <method name="getCorruptBlocksCount" return="long"
  1131. abstract="false" native="false" synchronized="false"
  1132. static="false" final="false" visibility="public"
  1133. deprecated="not deprecated">
  1134. <exception name="IOException" type="java.io.IOException"/>
  1135. <doc>
  1136. <![CDATA[Returns count of blocks with at least one replica marked corrupt.
  1137. @throws IOException]]>
  1138. </doc>
  1139. </method>
  1140. <method name="getDataNodeStats" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"
  1141. abstract="false" native="false" synchronized="false"
  1142. static="false" final="false" visibility="public"
  1143. deprecated="not deprecated">
  1144. <exception name="IOException" type="java.io.IOException"/>
  1145. <doc>
  1146. <![CDATA[Return statistics for each datanode.]]>
  1147. </doc>
  1148. </method>
  1149. <method name="setSafeMode" return="boolean"
  1150. abstract="false" native="false" synchronized="false"
  1151. static="false" final="false" visibility="public"
  1152. deprecated="not deprecated">
  1153. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"/>
  1154. <exception name="IOException" type="java.io.IOException"/>
  1155. <doc>
  1156. <![CDATA[Enter, leave or get safe mode.
  1157. @see org.apache.hadoop.hdfs.protocol.ClientProtocol#setSafeMode(
  1158. FSConstants.SafeModeAction)]]>
  1159. </doc>
  1160. </method>
  1161. <method name="saveNamespace"
  1162. abstract="false" native="false" synchronized="false"
  1163. static="false" final="false" visibility="public"
  1164. deprecated="not deprecated">
  1165. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  1166. <exception name="IOException" type="java.io.IOException"/>
  1167. <doc>
  1168. <![CDATA[Save namespace image.
  1169. @see org.apache.hadoop.hdfs.protocol.ClientProtocol#saveNamespace()]]>
  1170. </doc>
  1171. </method>
  1172. <method name="refreshNodes"
  1173. abstract="false" native="false" synchronized="false"
  1174. static="false" final="false" visibility="public"
  1175. deprecated="not deprecated">
  1176. <exception name="IOException" type="java.io.IOException"/>
  1177. <doc>
  1178. <![CDATA[Refreshes the list of hosts and excluded hosts from the configured
  1179. files.]]>
  1180. </doc>
  1181. </method>
  1182. <method name="finalizeUpgrade"
  1183. abstract="false" native="false" synchronized="false"
  1184. static="false" final="false" visibility="public"
  1185. deprecated="not deprecated">
  1186. <exception name="IOException" type="java.io.IOException"/>
  1187. <doc>
  1188. <![CDATA[Finalize previously upgraded files system state.
  1189. @throws IOException]]>
  1190. </doc>
  1191. </method>
  1192. <method name="distributedUpgradeProgress" return="org.apache.hadoop.hdfs.server.common.UpgradeStatusReport"
  1193. abstract="false" native="false" synchronized="false"
  1194. static="false" final="false" visibility="public"
  1195. deprecated="not deprecated">
  1196. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"/>
  1197. <exception name="IOException" type="java.io.IOException"/>
  1198. </method>
  1199. <method name="metaSave"
  1200. abstract="false" native="false" synchronized="false"
  1201. static="false" final="false" visibility="public"
  1202. deprecated="not deprecated">
  1203. <param name="pathname" type="java.lang.String"/>
  1204. <exception name="IOException" type="java.io.IOException"/>
  1205. </method>
  1206. <method name="reportChecksumFailure" return="boolean"
  1207. abstract="false" native="false" synchronized="false"
  1208. static="false" final="false" visibility="public"
  1209. deprecated="not deprecated">
  1210. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1211. <param name="in" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1212. <param name="inPos" type="long"/>
  1213. <param name="sums" type="org.apache.hadoop.fs.FSDataInputStream"/>
  1214. <param name="sumsPos" type="long"/>
  1215. <doc>
  1216. <![CDATA[We need to find the blocks that didn't match. Likely only one
  1217. is corrupt but we will report both to the namenode. In the future,
  1218. we can consider figuring out exactly which block is corrupt.]]>
  1219. </doc>
  1220. </method>
  1221. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  1222. abstract="false" native="false" synchronized="false"
  1223. static="false" final="false" visibility="public"
  1224. deprecated="not deprecated">
  1225. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1226. <exception name="IOException" type="java.io.IOException"/>
  1227. <doc>
  1228. <![CDATA[Returns the stat information about the file.
  1229. @throws FileNotFoundException if the file does not exist.]]>
  1230. </doc>
  1231. </method>
  1232. <method name="getFileChecksum" return="org.apache.hadoop.fs.MD5MD5CRC32FileChecksum"
  1233. abstract="false" native="false" synchronized="false"
  1234. static="false" final="false" visibility="public"
  1235. deprecated="not deprecated">
  1236. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1237. <exception name="IOException" type="java.io.IOException"/>
  1238. <doc>
  1239. <![CDATA[{@inheritDoc}]]>
  1240. </doc>
  1241. </method>
  1242. <method name="setPermission"
  1243. abstract="false" native="false" synchronized="false"
  1244. static="false" final="false" visibility="public"
  1245. deprecated="not deprecated">
  1246. <param name="p" type="org.apache.hadoop.fs.Path"/>
  1247. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1248. <exception name="IOException" type="java.io.IOException"/>
  1249. <doc>
  1250. <![CDATA[{@inheritDoc }]]>
  1251. </doc>
  1252. </method>
  1253. <method name="setOwner"
  1254. abstract="false" native="false" synchronized="false"
  1255. static="false" final="false" visibility="public"
  1256. deprecated="not deprecated">
  1257. <param name="p" type="org.apache.hadoop.fs.Path"/>
  1258. <param name="username" type="java.lang.String"/>
  1259. <param name="groupname" type="java.lang.String"/>
  1260. <exception name="IOException" type="java.io.IOException"/>
  1261. <doc>
  1262. <![CDATA[{@inheritDoc }]]>
  1263. </doc>
  1264. </method>
  1265. <method name="setTimes"
  1266. abstract="false" native="false" synchronized="false"
  1267. static="false" final="false" visibility="public"
  1268. deprecated="not deprecated">
  1269. <param name="p" type="org.apache.hadoop.fs.Path"/>
  1270. <param name="mtime" type="long"/>
  1271. <param name="atime" type="long"/>
  1272. <exception name="IOException" type="java.io.IOException"/>
  1273. <doc>
  1274. <![CDATA[{@inheritDoc }]]>
  1275. </doc>
  1276. </method>
  1277. <doc>
  1278. <![CDATA[Implementation of the abstract FileSystem for the DFS system.
  1279. This object is the way end-user code interacts with a Hadoop
  1280. DistributedFileSystem.]]>
  1281. </doc>
  1282. </class>
  1283. <!-- end class org.apache.hadoop.hdfs.DistributedFileSystem -->
  1284. <!-- start class org.apache.hadoop.hdfs.DistributedFileSystem.DiskStatus -->
  1285. <class name="DistributedFileSystem.DiskStatus" extends="java.lang.Object"
  1286. abstract="false"
  1287. static="true" final="false" visibility="public"
  1288. deprecated="not deprecated">
  1289. <constructor name="DistributedFileSystem.DiskStatus" type="long, long, long"
  1290. static="false" final="false" visibility="public"
  1291. deprecated="not deprecated">
  1292. </constructor>
  1293. <method name="getCapacity" return="long"
  1294. abstract="false" native="false" synchronized="false"
  1295. static="false" final="false" visibility="public"
  1296. deprecated="not deprecated">
  1297. </method>
  1298. <method name="getDfsUsed" return="long"
  1299. abstract="false" native="false" synchronized="false"
  1300. static="false" final="false" visibility="public"
  1301. deprecated="not deprecated">
  1302. </method>
  1303. <method name="getRemaining" return="long"
  1304. abstract="false" native="false" synchronized="false"
  1305. static="false" final="false" visibility="public"
  1306. deprecated="not deprecated">
  1307. </method>
  1308. </class>
  1309. <!-- end class org.apache.hadoop.hdfs.DistributedFileSystem.DiskStatus -->
  1310. <!-- start class org.apache.hadoop.hdfs.HDFSPolicyProvider -->
  1311. <class name="HDFSPolicyProvider" extends="org.apache.hadoop.security.authorize.PolicyProvider"
  1312. abstract="false"
  1313. static="false" final="false" visibility="public"
  1314. deprecated="not deprecated">
  1315. <constructor name="HDFSPolicyProvider"
  1316. static="false" final="false" visibility="public"
  1317. deprecated="not deprecated">
  1318. </constructor>
  1319. <method name="getServices" return="org.apache.hadoop.security.authorize.Service[]"
  1320. abstract="false" native="false" synchronized="false"
  1321. static="false" final="false" visibility="public"
  1322. deprecated="not deprecated">
  1323. </method>
  1324. <doc>
  1325. <![CDATA[{@link PolicyProvider} for HDFS protocols.]]>
  1326. </doc>
  1327. </class>
  1328. <!-- end class org.apache.hadoop.hdfs.HDFSPolicyProvider -->
  1329. <!-- start class org.apache.hadoop.hdfs.HftpFileSystem -->
  1330. <class name="HftpFileSystem" extends="org.apache.hadoop.fs.FileSystem"
  1331. abstract="false"
  1332. static="false" final="false" visibility="public"
  1333. deprecated="not deprecated">
  1334. <constructor name="HftpFileSystem"
  1335. static="false" final="false" visibility="public"
  1336. deprecated="not deprecated">
  1337. </constructor>
  1338. <method name="initialize"
  1339. abstract="false" native="false" synchronized="false"
  1340. static="false" final="false" visibility="public"
  1341. deprecated="not deprecated">
  1342. <param name="name" type="java.net.URI"/>
  1343. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1344. <exception name="IOException" type="java.io.IOException"/>
  1345. </method>
  1346. <method name="pickOneAddress" return="java.lang.String"
  1347. abstract="false" native="false" synchronized="false"
  1348. static="false" final="false" visibility="protected"
  1349. deprecated="not deprecated">
  1350. <param name="hostname" type="java.lang.String"/>
  1351. <exception name="UnknownHostException" type="java.net.UnknownHostException"/>
  1352. <doc>
  1353. <![CDATA[randomly pick one from all available IP addresses of a given hostname]]>
  1354. </doc>
  1355. </method>
  1356. <method name="getUri" return="java.net.URI"
  1357. abstract="false" native="false" synchronized="false"
  1358. static="false" final="false" visibility="public"
  1359. deprecated="not deprecated">
  1360. </method>
  1361. <method name="openConnection" return="java.net.HttpURLConnection"
  1362. abstract="false" native="false" synchronized="false"
  1363. static="false" final="false" visibility="protected"
  1364. deprecated="not deprecated">
  1365. <param name="path" type="java.lang.String"/>
  1366. <param name="query" type="java.lang.String"/>
  1367. <exception name="IOException" type="java.io.IOException"/>
  1368. <doc>
  1369. <![CDATA[Open an HTTP connection to the namenode to read file data and metadata.
  1370. @param path The path component of the URL
  1371. @param query The query component of the URL]]>
  1372. </doc>
  1373. </method>
  1374. <method name="open" return="org.apache.hadoop.fs.FSDataInputStream"
  1375. abstract="false" native="false" synchronized="false"
  1376. static="false" final="false" visibility="public"
  1377. deprecated="not deprecated">
  1378. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1379. <param name="buffersize" type="int"/>
  1380. <exception name="IOException" type="java.io.IOException"/>
  1381. </method>
  1382. <method name="listStatus" return="org.apache.hadoop.fs.FileStatus[]"
  1383. abstract="false" native="false" synchronized="false"
  1384. static="false" final="false" visibility="public"
  1385. deprecated="not deprecated">
  1386. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1387. <exception name="IOException" type="java.io.IOException"/>
  1388. </method>
  1389. <method name="getFileStatus" return="org.apache.hadoop.fs.FileStatus"
  1390. abstract="false" native="false" synchronized="false"
  1391. static="false" final="false" visibility="public"
  1392. deprecated="not deprecated">
  1393. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1394. <exception name="IOException" type="java.io.IOException"/>
  1395. </method>
  1396. <method name="getFileChecksum" return="org.apache.hadoop.fs.FileChecksum"
  1397. abstract="false" native="false" synchronized="false"
  1398. static="false" final="false" visibility="public"
  1399. deprecated="not deprecated">
  1400. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1401. <exception name="IOException" type="java.io.IOException"/>
  1402. <doc>
  1403. <![CDATA[{@inheritDoc}]]>
  1404. </doc>
  1405. </method>
  1406. <method name="getWorkingDirectory" return="org.apache.hadoop.fs.Path"
  1407. abstract="false" native="false" synchronized="false"
  1408. static="false" final="false" visibility="public"
  1409. deprecated="not deprecated">
  1410. </method>
  1411. <method name="setWorkingDirectory"
  1412. abstract="false" native="false" synchronized="false"
  1413. static="false" final="false" visibility="public"
  1414. deprecated="not deprecated">
  1415. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1416. </method>
  1417. <method name="append" return="org.apache.hadoop.fs.FSDataOutputStream"
  1418. abstract="false" native="false" synchronized="false"
  1419. static="false" final="false" visibility="public"
  1420. deprecated="not deprecated">
  1421. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1422. <param name="bufferSize" type="int"/>
  1423. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1424. <exception name="IOException" type="java.io.IOException"/>
  1425. <doc>
  1426. <![CDATA[This optional operation is not yet supported.]]>
  1427. </doc>
  1428. </method>
  1429. <method name="create" return="org.apache.hadoop.fs.FSDataOutputStream"
  1430. abstract="false" native="false" synchronized="false"
  1431. static="false" final="false" visibility="public"
  1432. deprecated="not deprecated">
  1433. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1434. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1435. <param name="overwrite" type="boolean"/>
  1436. <param name="bufferSize" type="int"/>
  1437. <param name="replication" type="short"/>
  1438. <param name="blockSize" type="long"/>
  1439. <param name="progress" type="org.apache.hadoop.util.Progressable"/>
  1440. <exception name="IOException" type="java.io.IOException"/>
  1441. </method>
  1442. <method name="rename" return="boolean"
  1443. abstract="false" native="false" synchronized="false"
  1444. static="false" final="false" visibility="public"
  1445. deprecated="not deprecated">
  1446. <param name="src" type="org.apache.hadoop.fs.Path"/>
  1447. <param name="dst" type="org.apache.hadoop.fs.Path"/>
  1448. <exception name="IOException" type="java.io.IOException"/>
  1449. </method>
  1450. <method name="delete" return="boolean"
  1451. abstract="false" native="false" synchronized="false"
  1452. static="false" final="false" visibility="public"
  1453. deprecated="not deprecated">
  1454. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1455. <exception name="IOException" type="java.io.IOException"/>
  1456. </method>
  1457. <method name="delete" return="boolean"
  1458. abstract="false" native="false" synchronized="false"
  1459. static="false" final="false" visibility="public"
  1460. deprecated="not deprecated">
  1461. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1462. <param name="recursive" type="boolean"/>
  1463. <exception name="IOException" type="java.io.IOException"/>
  1464. </method>
  1465. <method name="mkdirs" return="boolean"
  1466. abstract="false" native="false" synchronized="false"
  1467. static="false" final="false" visibility="public"
  1468. deprecated="not deprecated">
  1469. <param name="f" type="org.apache.hadoop.fs.Path"/>
  1470. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1471. <exception name="IOException" type="java.io.IOException"/>
  1472. </method>
  1473. <field name="nnAddr" type="java.net.InetSocketAddress"
  1474. transient="false" volatile="false"
  1475. static="false" final="false" visibility="protected"
  1476. deprecated="not deprecated">
  1477. </field>
  1478. <field name="ugi" type="org.apache.hadoop.security.UserGroupInformation"
  1479. transient="false" volatile="false"
  1480. static="false" final="false" visibility="protected"
  1481. deprecated="not deprecated">
  1482. </field>
  1483. <field name="ran" type="java.util.Random"
  1484. transient="false" volatile="false"
  1485. static="false" final="true" visibility="protected"
  1486. deprecated="not deprecated">
  1487. </field>
  1488. <field name="df" type="java.text.SimpleDateFormat"
  1489. transient="false" volatile="false"
  1490. static="true" final="true" visibility="protected"
  1491. deprecated="not deprecated">
  1492. </field>
  1493. <doc>
  1494. <![CDATA[An implementation of a protocol for accessing filesystems over HTTP.
  1495. The following implementation provides a limited, read-only interface
  1496. to a filesystem over HTTP.
  1497. @see org.apache.hadoop.hdfs.server.namenode.ListPathsServlet
  1498. @see org.apache.hadoop.hdfs.server.namenode.FileDataServlet]]>
  1499. </doc>
  1500. </class>
  1501. <!-- end class org.apache.hadoop.hdfs.HftpFileSystem -->
  1502. <!-- start class org.apache.hadoop.hdfs.HsftpFileSystem -->
  1503. <class name="HsftpFileSystem" extends="org.apache.hadoop.hdfs.HftpFileSystem"
  1504. abstract="false"
  1505. static="false" final="false" visibility="public"
  1506. deprecated="not deprecated">
  1507. <constructor name="HsftpFileSystem"
  1508. static="false" final="false" visibility="public"
  1509. deprecated="not deprecated">
  1510. </constructor>
  1511. <method name="initialize"
  1512. abstract="false" native="false" synchronized="false"
  1513. static="false" final="false" visibility="public"
  1514. deprecated="not deprecated">
  1515. <param name="name" type="java.net.URI"/>
  1516. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  1517. <exception name="IOException" type="java.io.IOException"/>
  1518. </method>
  1519. <method name="openConnection" return="java.net.HttpURLConnection"
  1520. abstract="false" native="false" synchronized="false"
  1521. static="false" final="false" visibility="protected"
  1522. deprecated="not deprecated">
  1523. <param name="path" type="java.lang.String"/>
  1524. <param name="query" type="java.lang.String"/>
  1525. <exception name="IOException" type="java.io.IOException"/>
  1526. </method>
  1527. <method name="getUri" return="java.net.URI"
  1528. abstract="false" native="false" synchronized="false"
  1529. static="false" final="false" visibility="public"
  1530. deprecated="not deprecated">
  1531. </method>
  1532. <doc>
  1533. <![CDATA[An implementation of a protocol for accessing filesystems over HTTPS.
  1534. The following implementation provides a limited, read-only interface
  1535. to a filesystem over HTTPS.
  1536. @see org.apache.hadoop.hdfs.server.namenode.ListPathsServlet
  1537. @see org.apache.hadoop.hdfs.server.namenode.FileDataServlet]]>
  1538. </doc>
  1539. </class>
  1540. <!-- end class org.apache.hadoop.hdfs.HsftpFileSystem -->
  1541. <!-- start class org.apache.hadoop.hdfs.HsftpFileSystem.DummyHostnameVerifier -->
  1542. <class name="HsftpFileSystem.DummyHostnameVerifier" extends="java.lang.Object"
  1543. abstract="false"
  1544. static="true" final="false" visibility="protected"
  1545. deprecated="not deprecated">
  1546. <implements name="javax.net.ssl.HostnameVerifier"/>
  1547. <constructor name="HsftpFileSystem.DummyHostnameVerifier"
  1548. static="false" final="false" visibility="protected"
  1549. deprecated="not deprecated">
  1550. </constructor>
  1551. <method name="verify" return="boolean"
  1552. abstract="false" native="false" synchronized="false"
  1553. static="false" final="false" visibility="public"
  1554. deprecated="not deprecated">
  1555. <param name="hostname" type="java.lang.String"/>
  1556. <param name="session" type="javax.net.ssl.SSLSession"/>
  1557. </method>
  1558. <doc>
  1559. <![CDATA[Dummy hostname verifier that is used to bypass hostname checking]]>
  1560. </doc>
  1561. </class>
  1562. <!-- end class org.apache.hadoop.hdfs.HsftpFileSystem.DummyHostnameVerifier -->
  1563. <doc>
  1564. <![CDATA[<p>A distributed implementation of {@link
  1565. org.apache.hadoop.fs.FileSystem}. This is loosely modelled after
  1566. Google's <a href="http://labs.google.com/papers/gfs.html">GFS</a>.</p>
  1567. <p>The most important difference is that unlike GFS, Hadoop DFS files
  1568. have strictly one writer at any one time. Bytes are always appended
  1569. to the end of the writer's stream. There is no notion of "record appends"
  1570. or "mutations" that are then checked or reordered. Writers simply emit
  1571. a byte stream. That byte stream is guaranteed to be stored in the
  1572. order written.</p>]]>
  1573. </doc>
  1574. </package>
  1575. <package name="org.apache.hadoop.hdfs.protocol">
  1576. <!-- start class org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException -->
  1577. <class name="AlreadyBeingCreatedException" extends="java.io.IOException"
  1578. abstract="false"
  1579. static="false" final="false" visibility="public"
  1580. deprecated="not deprecated">
  1581. <constructor name="AlreadyBeingCreatedException" type="java.lang.String"
  1582. static="false" final="false" visibility="public"
  1583. deprecated="not deprecated">
  1584. </constructor>
  1585. <doc>
  1586. <![CDATA[The exception that happens when you ask to create a file that already
  1587. is being created, but is not closed yet.]]>
  1588. </doc>
  1589. </class>
  1590. <!-- end class org.apache.hadoop.hdfs.protocol.AlreadyBeingCreatedException -->
  1591. <!-- start class org.apache.hadoop.hdfs.protocol.Block -->
  1592. <class name="Block" extends="java.lang.Object"
  1593. abstract="false"
  1594. static="false" final="false" visibility="public"
  1595. deprecated="not deprecated">
  1596. <implements name="org.apache.hadoop.io.Writable"/>
  1597. <implements name="java.lang.Comparable"/>
  1598. <constructor name="Block"
  1599. static="false" final="false" visibility="public"
  1600. deprecated="not deprecated">
  1601. </constructor>
  1602. <constructor name="Block" type="long, long, long"
  1603. static="false" final="false" visibility="public"
  1604. deprecated="not deprecated">
  1605. </constructor>
  1606. <constructor name="Block" type="long"
  1607. static="false" final="false" visibility="public"
  1608. deprecated="not deprecated">
  1609. </constructor>
  1610. <constructor name="Block" type="org.apache.hadoop.hdfs.protocol.Block"
  1611. static="false" final="false" visibility="public"
  1612. deprecated="not deprecated">
  1613. </constructor>
  1614. <constructor name="Block" type="java.io.File, long, long"
  1615. static="false" final="false" visibility="public"
  1616. deprecated="not deprecated">
  1617. <doc>
  1618. <![CDATA[Find the blockid from the given filename]]>
  1619. </doc>
  1620. </constructor>
  1621. <method name="isBlockFilename" return="boolean"
  1622. abstract="false" native="false" synchronized="false"
  1623. static="true" final="false" visibility="public"
  1624. deprecated="not deprecated">
  1625. <param name="f" type="java.io.File"/>
  1626. </method>
  1627. <method name="set"
  1628. abstract="false" native="false" synchronized="false"
  1629. static="false" final="false" visibility="public"
  1630. deprecated="not deprecated">
  1631. <param name="blkid" type="long"/>
  1632. <param name="len" type="long"/>
  1633. <param name="genStamp" type="long"/>
  1634. </method>
  1635. <method name="getBlockId" return="long"
  1636. abstract="false" native="false" synchronized="false"
  1637. static="false" final="false" visibility="public"
  1638. deprecated="not deprecated">
  1639. </method>
  1640. <method name="setBlockId"
  1641. abstract="false" native="false" synchronized="false"
  1642. static="false" final="false" visibility="public"
  1643. deprecated="not deprecated">
  1644. <param name="bid" type="long"/>
  1645. </method>
  1646. <method name="getBlockName" return="java.lang.String"
  1647. abstract="false" native="false" synchronized="false"
  1648. static="false" final="false" visibility="public"
  1649. deprecated="not deprecated">
  1650. </method>
  1651. <method name="getNumBytes" return="long"
  1652. abstract="false" native="false" synchronized="false"
  1653. static="false" final="false" visibility="public"
  1654. deprecated="not deprecated">
  1655. </method>
  1656. <method name="setNumBytes"
  1657. abstract="false" native="false" synchronized="false"
  1658. static="false" final="false" visibility="public"
  1659. deprecated="not deprecated">
  1660. <param name="len" type="long"/>
  1661. </method>
  1662. <method name="getGenerationStamp" return="long"
  1663. abstract="false" native="false" synchronized="false"
  1664. static="false" final="false" visibility="public"
  1665. deprecated="not deprecated">
  1666. </method>
  1667. <method name="setGenerationStamp"
  1668. abstract="false" native="false" synchronized="false"
  1669. static="false" final="false" visibility="public"
  1670. deprecated="not deprecated">
  1671. <param name="stamp" type="long"/>
  1672. </method>
  1673. <method name="toString" return="java.lang.String"
  1674. abstract="false" native="false" synchronized="false"
  1675. static="false" final="false" visibility="public"
  1676. deprecated="not deprecated">
  1677. </method>
  1678. <method name="write"
  1679. abstract="false" native="false" synchronized="false"
  1680. static="false" final="false" visibility="public"
  1681. deprecated="not deprecated">
  1682. <param name="out" type="java.io.DataOutput"/>
  1683. <exception name="IOException" type="java.io.IOException"/>
  1684. </method>
  1685. <method name="readFields"
  1686. abstract="false" native="false" synchronized="false"
  1687. static="false" final="false" visibility="public"
  1688. deprecated="not deprecated">
  1689. <param name="in" type="java.io.DataInput"/>
  1690. <exception name="IOException" type="java.io.IOException"/>
  1691. </method>
  1692. <method name="compareTo" return="int"
  1693. abstract="false" native="false" synchronized="false"
  1694. static="false" final="false" visibility="public"
  1695. deprecated="not deprecated">
  1696. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  1697. <doc>
  1698. <![CDATA[{@inheritDoc}]]>
  1699. </doc>
  1700. </method>
  1701. <method name="equals" return="boolean"
  1702. abstract="false" native="false" synchronized="false"
  1703. static="false" final="false" visibility="public"
  1704. deprecated="not deprecated">
  1705. <param name="o" type="java.lang.Object"/>
  1706. <doc>
  1707. <![CDATA[{@inheritDoc}]]>
  1708. </doc>
  1709. </method>
  1710. <method name="hashCode" return="int"
  1711. abstract="false" native="false" synchronized="false"
  1712. static="false" final="false" visibility="public"
  1713. deprecated="not deprecated">
  1714. <doc>
  1715. <![CDATA[{@inheritDoc}]]>
  1716. </doc>
  1717. </method>
  1718. <field name="GRANDFATHER_GENERATION_STAMP" type="long"
  1719. transient="false" volatile="false"
  1720. static="true" final="true" visibility="public"
  1721. deprecated="not deprecated">
  1722. </field>
  1723. <doc>
  1724. <![CDATA[A Block is a Hadoop FS primitive, identified by a
  1725. long.]]>
  1726. </doc>
  1727. </class>
  1728. <!-- end class org.apache.hadoop.hdfs.protocol.Block -->
  1729. <!-- start class org.apache.hadoop.hdfs.protocol.BlockListAsLongs -->
  1730. <class name="BlockListAsLongs" extends="java.lang.Object"
  1731. abstract="false"
  1732. static="false" final="false" visibility="public"
  1733. deprecated="not deprecated">
  1734. <constructor name="BlockListAsLongs" type="long[]"
  1735. static="false" final="false" visibility="public"
  1736. deprecated="not deprecated">
  1737. <doc>
  1738. <![CDATA[Constructor
  1739. @param iBlockList - BlockListALongs create from this long[] parameter]]>
  1740. </doc>
  1741. </constructor>
  1742. <method name="convertToArrayLongs" return="long[]"
  1743. abstract="false" native="false" synchronized="false"
  1744. static="true" final="false" visibility="public"
  1745. deprecated="not deprecated">
  1746. <param name="blockArray" type="org.apache.hadoop.hdfs.protocol.Block[]"/>
  1747. <doc>
  1748. <![CDATA[Converting a block[] to a long[]
  1749. @param blockArray - the input array block[]
  1750. @return the output array of long[]]]>
  1751. </doc>
  1752. </method>
  1753. <method name="getNumberOfBlocks" return="int"
  1754. abstract="false" native="false" synchronized="false"
  1755. static="false" final="false" visibility="public"
  1756. deprecated="not deprecated">
  1757. <doc>
  1758. <![CDATA[The number of blocks
  1759. @return - the number of blocks]]>
  1760. </doc>
  1761. </method>
  1762. <method name="getBlockId" return="long"
  1763. abstract="false" native="false" synchronized="false"
  1764. static="false" final="false" visibility="public"
  1765. deprecated="not deprecated">
  1766. <param name="index" type="int"/>
  1767. <doc>
  1768. <![CDATA[The block-id of the indexTh block
  1769. @param index - the block whose block-id is desired
  1770. @return the block-id]]>
  1771. </doc>
  1772. </method>
  1773. <method name="getBlockLen" return="long"
  1774. abstract="false" native="false" synchronized="false"
  1775. static="false" final="false" visibility="public"
  1776. deprecated="not deprecated">
  1777. <param name="index" type="int"/>
  1778. <doc>
  1779. <![CDATA[The block-len of the indexTh block
  1780. @param index - the block whose block-len is desired
  1781. @return - the block-len]]>
  1782. </doc>
  1783. </method>
  1784. <method name="getBlockGenStamp" return="long"
  1785. abstract="false" native="false" synchronized="false"
  1786. static="false" final="false" visibility="public"
  1787. deprecated="not deprecated">
  1788. <param name="index" type="int"/>
  1789. <doc>
  1790. <![CDATA[The generation stamp of the indexTh block
  1791. @param index - the block whose block-len is desired
  1792. @return - the generation stamp]]>
  1793. </doc>
  1794. </method>
  1795. <doc>
  1796. <![CDATA[This class provides an interface for accessing list of blocks that
  1797. has been implemented as long[].
  1798. This class is usefull for block report. Rather than send block reports
  1799. as a Block[] we can send it as a long[].]]>
  1800. </doc>
  1801. </class>
  1802. <!-- end class org.apache.hadoop.hdfs.protocol.BlockListAsLongs -->
  1803. <!-- start interface org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol -->
  1804. <interface name="ClientDatanodeProtocol" abstract="true"
  1805. static="false" final="false" visibility="public"
  1806. deprecated="not deprecated">
  1807. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  1808. <method name="recoverBlock" return="org.apache.hadoop.hdfs.protocol.LocatedBlock"
  1809. abstract="false" native="false" synchronized="false"
  1810. static="false" final="false" visibility="public"
  1811. deprecated="not deprecated">
  1812. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  1813. <param name="keepLength" type="boolean"/>
  1814. <param name="targets" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"/>
  1815. <exception name="IOException" type="java.io.IOException"/>
  1816. <doc>
  1817. <![CDATA[Start generation-stamp recovery for specified block
  1818. @param block the specified block
  1819. @param keepLength keep the block length
  1820. @param targets the list of possible locations of specified block
  1821. @return the new blockid if recovery successful and the generation stamp
  1822. got updated as part of the recovery, else returns null if the block id
  1823. not have any data and the block was deleted.
  1824. @throws IOException]]>
  1825. </doc>
  1826. </method>
  1827. <field name="LOG" type="org.apache.commons.logging.Log"
  1828. transient="false" volatile="false"
  1829. static="true" final="true" visibility="public"
  1830. deprecated="not deprecated">
  1831. </field>
  1832. <field name="versionID" type="long"
  1833. transient="false" volatile="false"
  1834. static="true" final="true" visibility="public"
  1835. deprecated="not deprecated">
  1836. <doc>
  1837. <![CDATA[3: add keepLength parameter.]]>
  1838. </doc>
  1839. </field>
  1840. <doc>
  1841. <![CDATA[An client-datanode protocol for block recovery]]>
  1842. </doc>
  1843. </interface>
  1844. <!-- end interface org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol -->
  1845. <!-- start interface org.apache.hadoop.hdfs.protocol.ClientProtocol -->
  1846. <interface name="ClientProtocol" abstract="true"
  1847. static="false" final="false" visibility="public"
  1848. deprecated="not deprecated">
  1849. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  1850. <method name="getBlockLocations" return="org.apache.hadoop.hdfs.protocol.LocatedBlocks"
  1851. abstract="false" native="false" synchronized="false"
  1852. static="false" final="false" visibility="public"
  1853. deprecated="not deprecated">
  1854. <param name="src" type="java.lang.String"/>
  1855. <param name="offset" type="long"/>
  1856. <param name="length" type="long"/>
  1857. <exception name="IOException" type="java.io.IOException"/>
  1858. <doc>
  1859. <![CDATA[Get locations of the blocks of the specified file within the specified range.
  1860. DataNode locations for each block are sorted by
  1861. the proximity to the client.
  1862. <p>
  1863. Return {@link LocatedBlocks} which contains
  1864. file length, blocks and their locations.
  1865. DataNode locations for each block are sorted by
  1866. the distance to the client's address.
  1867. <p>
  1868. The client will then have to contact
  1869. one of the indicated DataNodes to obtain the actual data.
  1870. @param src file name
  1871. @param offset range start offset
  1872. @param length range length
  1873. @return file length and array of blocks with their locations
  1874. @throws IOException]]>
  1875. </doc>
  1876. </method>
  1877. <method name="create"
  1878. abstract="false" native="false" synchronized="false"
  1879. static="false" final="false" visibility="public"
  1880. deprecated="not deprecated">
  1881. <param name="src" type="java.lang.String"/>
  1882. <param name="masked" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1883. <param name="clientName" type="java.lang.String"/>
  1884. <param name="overwrite" type="boolean"/>
  1885. <param name="replication" type="short"/>
  1886. <param name="blockSize" type="long"/>
  1887. <exception name="IOException" type="java.io.IOException"/>
  1888. <doc>
  1889. <![CDATA[Create a new file entry in the namespace.
  1890. <p>
  1891. This will create an empty file specified by the source path.
  1892. The path should reflect a full path originated at the root.
  1893. The name-node does not have a notion of "current" directory for a client.
  1894. <p>
  1895. Once created, the file is visible and available for read to other clients.
  1896. Although, other clients cannot {@link #delete(String)}, re-create or
  1897. {@link #rename(String, String)} it until the file is completed
  1898. or explicitly as a result of lease expiration.
  1899. <p>
  1900. Blocks have a maximum size. Clients that intend to
  1901. create multi-block files must also use {@link #addBlock(String, String)}.
  1902. @param src path of the file being created.
  1903. @param masked masked permission.
  1904. @param clientName name of the current client.
  1905. @param overwrite indicates whether the file should be
  1906. overwritten if it already exists.
  1907. @param replication block replication factor.
  1908. @param blockSize maximum block size.
  1909. @throws AccessControlException if permission to create file is
  1910. denied by the system. As usually on the client side the exception will
  1911. be wrapped into {@link org.apache.hadoop.ipc.RemoteException}.
  1912. @throws QuotaExceededException if the file creation violates
  1913. any quota restriction
  1914. @throws IOException if other errors occur.]]>
  1915. </doc>
  1916. </method>
  1917. <method name="append" return="org.apache.hadoop.hdfs.protocol.LocatedBlock"
  1918. abstract="false" native="false" synchronized="false"
  1919. static="false" final="false" visibility="public"
  1920. deprecated="not deprecated">
  1921. <param name="src" type="java.lang.String"/>
  1922. <param name="clientName" type="java.lang.String"/>
  1923. <exception name="IOException" type="java.io.IOException"/>
  1924. <doc>
  1925. <![CDATA[Append to the end of the file.
  1926. @param src path of the file being created.
  1927. @param clientName name of the current client.
  1928. @return information about the last partial block if any.
  1929. @throws AccessControlException if permission to append file is
  1930. denied by the system. As usually on the client side the exception will
  1931. be wrapped into {@link org.apache.hadoop.ipc.RemoteException}.
  1932. Allows appending to an existing file if the server is
  1933. configured with the parameter dfs.support.append set to true, otherwise
  1934. throws an IOException.
  1935. @throws IOException if other errors occur.]]>
  1936. </doc>
  1937. </method>
  1938. <method name="setReplication" return="boolean"
  1939. abstract="false" native="false" synchronized="false"
  1940. static="false" final="false" visibility="public"
  1941. deprecated="not deprecated">
  1942. <param name="src" type="java.lang.String"/>
  1943. <param name="replication" type="short"/>
  1944. <exception name="IOException" type="java.io.IOException"/>
  1945. <doc>
  1946. <![CDATA[Set replication for an existing file.
  1947. <p>
  1948. The NameNode sets replication to the new value and returns.
  1949. The actual block replication is not expected to be performed during
  1950. this method call. The blocks will be populated or removed in the
  1951. background as the result of the routine block maintenance procedures.
  1952. @param src file name
  1953. @param replication new replication
  1954. @throws IOException
  1955. @return true if successful;
  1956. false if file does not exist or is a directory]]>
  1957. </doc>
  1958. </method>
  1959. <method name="setPermission"
  1960. abstract="false" native="false" synchronized="false"
  1961. static="false" final="false" visibility="public"
  1962. deprecated="not deprecated">
  1963. <param name="src" type="java.lang.String"/>
  1964. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  1965. <exception name="IOException" type="java.io.IOException"/>
  1966. <doc>
  1967. <![CDATA[Set permissions for an existing file/directory.]]>
  1968. </doc>
  1969. </method>
  1970. <method name="setOwner"
  1971. abstract="false" native="false" synchronized="false"
  1972. static="false" final="false" visibility="public"
  1973. deprecated="not deprecated">
  1974. <param name="src" type="java.lang.String"/>
  1975. <param name="username" type="java.lang.String"/>
  1976. <param name="groupname" type="java.lang.String"/>
  1977. <exception name="IOException" type="java.io.IOException"/>
  1978. <doc>
  1979. <![CDATA[Set owner of a path (i.e. a file or a directory).
  1980. The parameters username and groupname cannot both be null.
  1981. @param src
  1982. @param username If it is null, the original username remains unchanged.
  1983. @param groupname If it is null, the original groupname remains unchanged.]]>
  1984. </doc>
  1985. </method>
  1986. <method name="abandonBlock"
  1987. abstract="false" native="false" synchronized="false"
  1988. static="false" final="false" visibility="public"
  1989. deprecated="not deprecated">
  1990. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  1991. <param name="src" type="java.lang.String"/>
  1992. <param name="holder" type="java.lang.String"/>
  1993. <exception name="IOException" type="java.io.IOException"/>
  1994. <doc>
  1995. <![CDATA[The client can give up on a blcok by calling abandonBlock().
  1996. The client can then
  1997. either obtain a new block, or complete or abandon the file.
  1998. Any partial writes to the block will be discarded.]]>
  1999. </doc>
  2000. </method>
  2001. <method name="addBlock" return="org.apache.hadoop.hdfs.protocol.LocatedBlock"
  2002. abstract="false" native="false" synchronized="false"
  2003. static="false" final="false" visibility="public"
  2004. deprecated="not deprecated">
  2005. <param name="src" type="java.lang.String"/>
  2006. <param name="clientName" type="java.lang.String"/>
  2007. <exception name="IOException" type="java.io.IOException"/>
  2008. <doc>
  2009. <![CDATA[A client that wants to write an additional block to the
  2010. indicated filename (which must currently be open for writing)
  2011. should call addBlock().
  2012. addBlock() allocates a new block and datanodes the block data
  2013. should be replicated to.
  2014. @return LocatedBlock allocated block information.]]>
  2015. </doc>
  2016. </method>
  2017. <method name="complete" return="boolean"
  2018. abstract="false" native="false" synchronized="false"
  2019. static="false" final="false" visibility="public"
  2020. deprecated="not deprecated">
  2021. <param name="src" type="java.lang.String"/>
  2022. <param name="clientName" type="java.lang.String"/>
  2023. <exception name="IOException" type="java.io.IOException"/>
  2024. <doc>
  2025. <![CDATA[The client is done writing data to the given filename, and would
  2026. like to complete it.
  2027. The function returns whether the file has been closed successfully.
  2028. If the function returns false, the caller should try again.
  2029. A call to complete() will not return true until all the file's
  2030. blocks have been replicated the minimum number of times. Thus,
  2031. DataNode failures may cause a client to call complete() several
  2032. times before succeeding.]]>
  2033. </doc>
  2034. </method>
  2035. <method name="reportBadBlocks"
  2036. abstract="false" native="false" synchronized="false"
  2037. static="false" final="false" visibility="public"
  2038. deprecated="not deprecated">
  2039. <param name="blocks" type="org.apache.hadoop.hdfs.protocol.LocatedBlock[]"/>
  2040. <exception name="IOException" type="java.io.IOException"/>
  2041. <doc>
  2042. <![CDATA[The client wants to report corrupted blocks (blocks with specified
  2043. locations on datanodes).
  2044. @param blocks Array of located blocks to report]]>
  2045. </doc>
  2046. </method>
  2047. <method name="rename" return="boolean"
  2048. abstract="false" native="false" synchronized="false"
  2049. static="false" final="false" visibility="public"
  2050. deprecated="not deprecated">
  2051. <param name="src" type="java.lang.String"/>
  2052. <param name="dst" type="java.lang.String"/>
  2053. <exception name="IOException" type="java.io.IOException"/>
  2054. <doc>
  2055. <![CDATA[Rename an item in the file system namespace.
  2056. @param src existing file or directory name.
  2057. @param dst new name.
  2058. @return true if successful, or false if the old name does not exist
  2059. or if the new name already belongs to the namespace.
  2060. @throws IOException if the new name is invalid.
  2061. @throws QuotaExceededException if the rename would violate
  2062. any quota restriction]]>
  2063. </doc>
  2064. </method>
  2065. <method name="delete" return="boolean"
  2066. abstract="false" native="false" synchronized="false"
  2067. static="false" final="false" visibility="public"
  2068. deprecated="not deprecated">
  2069. <param name="src" type="java.lang.String"/>
  2070. <exception name="IOException" type="java.io.IOException"/>
  2071. <doc>
  2072. <![CDATA[Delete the given file or directory from the file system.
  2073. <p>
  2074. Any blocks belonging to the deleted files will be garbage-collected.
  2075. @param src existing name.
  2076. @return true only if the existing file or directory was actually removed
  2077. from the file system.]]>
  2078. </doc>
  2079. </method>
  2080. <method name="delete" return="boolean"
  2081. abstract="false" native="false" synchronized="false"
  2082. static="false" final="false" visibility="public"
  2083. deprecated="not deprecated">
  2084. <param name="src" type="java.lang.String"/>
  2085. <param name="recursive" type="boolean"/>
  2086. <exception name="IOException" type="java.io.IOException"/>
  2087. <doc>
  2088. <![CDATA[Delete the given file or directory from the file system.
  2089. <p>
  2090. same as delete but provides a way to avoid accidentally
  2091. deleting non empty directories programmatically.
  2092. @param src existing name
  2093. @param recursive if true deletes a non empty directory recursively,
  2094. else throws an exception.
  2095. @return true only if the existing file or directory was actually removed
  2096. from the file system.]]>
  2097. </doc>
  2098. </method>
  2099. <method name="mkdirs" return="boolean"
  2100. abstract="false" native="false" synchronized="false"
  2101. static="false" final="false" visibility="public"
  2102. deprecated="not deprecated">
  2103. <param name="src" type="java.lang.String"/>
  2104. <param name="masked" type="org.apache.hadoop.fs.permission.FsPermission"/>
  2105. <exception name="IOException" type="java.io.IOException"/>
  2106. <doc>
  2107. <![CDATA[Create a directory (or hierarchy of directories) with the given
  2108. name and permission.
  2109. @param src The path of the directory being created
  2110. @param masked The masked permission of the directory being created
  2111. @return True if the operation success.
  2112. @throws {@link AccessControlException} if permission to create file is
  2113. denied by the system. As usually on the client side the exception will
  2114. be wraped into {@link org.apache.hadoop.ipc.RemoteException}.
  2115. @throws QuotaExceededException if the operation would violate
  2116. any quota restriction.]]>
  2117. </doc>
  2118. </method>
  2119. <method name="getListing" return="org.apache.hadoop.fs.FileStatus[]"
  2120. abstract="false" native="false" synchronized="false"
  2121. static="false" final="false" visibility="public"
  2122. deprecated="not deprecated">
  2123. <param name="src" type="java.lang.String"/>
  2124. <exception name="IOException" type="java.io.IOException"/>
  2125. <doc>
  2126. <![CDATA[Get a listing of the indicated directory]]>
  2127. </doc>
  2128. </method>
  2129. <method name="renewLease"
  2130. abstract="false" native="false" synchronized="false"
  2131. static="false" final="false" visibility="public"
  2132. deprecated="not deprecated">
  2133. <param name="clientName" type="java.lang.String"/>
  2134. <exception name="IOException" type="java.io.IOException"/>
  2135. <doc>
  2136. <![CDATA[Client programs can cause stateful changes in the NameNode
  2137. that affect other clients. A client may obtain a file and
  2138. neither abandon nor complete it. A client might hold a series
  2139. of locks that prevent other clients from proceeding.
  2140. Clearly, it would be bad if a client held a bunch of locks
  2141. that it never gave up. This can happen easily if the client
  2142. dies unexpectedly.
  2143. <p>
  2144. So, the NameNode will revoke the locks and live file-creates
  2145. for clients that it thinks have died. A client tells the
  2146. NameNode that it is still alive by periodically calling
  2147. renewLease(). If a certain amount of time passes since
  2148. the last call to renewLease(), the NameNode assumes the
  2149. client has died.]]>
  2150. </doc>
  2151. </method>
  2152. <method name="getStats" return="long[]"
  2153. abstract="false" native="false" synchronized="false"
  2154. static="false" final="false" visibility="public"
  2155. deprecated="not deprecated">
  2156. <exception name="IOException" type="java.io.IOException"/>
  2157. <doc>
  2158. <![CDATA[Get a set of statistics about the filesystem.
  2159. Right now, only three values are returned.
  2160. <ul>
  2161. <li> [0] contains the total storage capacity of the system, in bytes.</li>
  2162. <li> [1] contains the total used space of the system, in bytes.</li>
  2163. <li> [2] contains the available storage of the system, in bytes.</li>
  2164. <li> [3] contains number of under replicated blocks in the system.</li>
  2165. <li> [4] contains number of blocks with a corrupt replica. </li>
  2166. <li> [5] contains number of blocks without any good replicas left. </li>
  2167. </ul>
  2168. Use public constants like {@link #GET_STATS_CAPACITY_IDX} in place of
  2169. actual numbers to index into the array.]]>
  2170. </doc>
  2171. </method>
  2172. <method name="getDatanodeReport" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"
  2173. abstract="false" native="false" synchronized="false"
  2174. static="false" final="false" visibility="public"
  2175. deprecated="not deprecated">
  2176. <param name="type" type="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType"/>
  2177. <exception name="IOException" type="java.io.IOException"/>
  2178. <doc>
  2179. <![CDATA[Get a report on the system's current datanodes.
  2180. One DatanodeInfo object is returned for each DataNode.
  2181. Return live datanodes if type is LIVE; dead datanodes if type is DEAD;
  2182. otherwise all datanodes if type is ALL.]]>
  2183. </doc>
  2184. </method>
  2185. <method name="getPreferredBlockSize" return="long"
  2186. abstract="false" native="false" synchronized="false"
  2187. static="false" final="false" visibility="public"
  2188. deprecated="not deprecated">
  2189. <param name="filename" type="java.lang.String"/>
  2190. <exception name="IOException" type="java.io.IOException"/>
  2191. <doc>
  2192. <![CDATA[Get the block size for the given file.
  2193. @param filename The name of the file
  2194. @return The number of bytes in each block
  2195. @throws IOException]]>
  2196. </doc>
  2197. </method>
  2198. <method name="setSafeMode" return="boolean"
  2199. abstract="false" native="false" synchronized="false"
  2200. static="false" final="false" visibility="public"
  2201. deprecated="not deprecated">
  2202. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"/>
  2203. <exception name="IOException" type="java.io.IOException"/>
  2204. <doc>
  2205. <![CDATA[Enter, leave or get safe mode.
  2206. <p>
  2207. Safe mode is a name node state when it
  2208. <ol><li>does not accept changes to name space (read-only), and</li>
  2209. <li>does not replicate or delete blocks.</li></ol>
  2210. <p>
  2211. Safe mode is entered automatically at name node startup.
  2212. Safe mode can also be entered manually using
  2213. {@link #setSafeMode(FSConstants.SafeModeAction) setSafeMode(SafeModeAction.SAFEMODE_GET)}.
  2214. <p>
  2215. At startup the name node accepts data node reports collecting
  2216. information about block locations.
  2217. In order to leave safe mode it needs to collect a configurable
  2218. percentage called threshold of blocks, which satisfy the minimal
  2219. replication condition.
  2220. The minimal replication condition is that each block must have at least
  2221. <tt>dfs.replication.min</tt> replicas.
  2222. When the threshold is reached the name node extends safe mode
  2223. for a configurable amount of time
  2224. to let the remaining data nodes to check in before it
  2225. will start replicating missing blocks.
  2226. Then the name node leaves safe mode.
  2227. <p>
  2228. If safe mode is turned on manually using
  2229. {@link #setSafeMode(FSConstants.SafeModeAction) setSafeMode(SafeModeAction.SAFEMODE_ENTER)}
  2230. then the name node stays in safe mode until it is manually turned off
  2231. using {@link #setSafeMode(FSConstants.SafeModeAction) setSafeMode(SafeModeAction.SAFEMODE_LEAVE)}.
  2232. Current state of the name node can be verified using
  2233. {@link #setSafeMode(FSConstants.SafeModeAction) setSafeMode(SafeModeAction.SAFEMODE_GET)}
  2234. <h4>Configuration parameters:</h4>
  2235. <tt>dfs.safemode.threshold.pct</tt> is the threshold parameter.<br>
  2236. <tt>dfs.safemode.extension</tt> is the safe mode extension parameter.<br>
  2237. <tt>dfs.replication.min</tt> is the minimal replication parameter.
  2238. <h4>Special cases:</h4>
  2239. The name node does not enter safe mode at startup if the threshold is
  2240. set to 0 or if the name space is empty.<br>
  2241. If the threshold is set to 1 then all blocks need to have at least
  2242. minimal replication.<br>
  2243. If the threshold value is greater than 1 then the name node will not be
  2244. able to turn off safe mode automatically.<br>
  2245. Safe mode can always be turned off manually.
  2246. @param action <ul> <li>0 leave safe mode;</li>
  2247. <li>1 enter safe mode;</li>
  2248. <li>2 get safe mode state.</li></ul>
  2249. @return <ul><li>0 if the safe mode is OFF or</li>
  2250. <li>1 if the safe mode is ON.</li></ul>
  2251. @throws IOException]]>
  2252. </doc>
  2253. </method>
  2254. <method name="saveNamespace"
  2255. abstract="false" native="false" synchronized="false"
  2256. static="false" final="false" visibility="public"
  2257. deprecated="not deprecated">
  2258. <exception name="IOException" type="java.io.IOException"/>
  2259. <doc>
  2260. <![CDATA[Save namespace image.
  2261. <p>
  2262. Saves current namespace into storage directories and reset edits log.
  2263. Requires superuser privilege and safe mode.
  2264. @throws AccessControlException if the superuser privilege is violated.
  2265. @throws IOException if image creation failed.]]>
  2266. </doc>
  2267. </method>
  2268. <method name="refreshNodes"
  2269. abstract="false" native="false" synchronized="false"
  2270. static="false" final="false" visibility="public"
  2271. deprecated="not deprecated">
  2272. <exception name="IOException" type="java.io.IOException"/>
  2273. <doc>
  2274. <![CDATA[Tells the namenode to reread the hosts and exclude files.
  2275. @throws IOException]]>
  2276. </doc>
  2277. </method>
  2278. <method name="finalizeUpgrade"
  2279. abstract="false" native="false" synchronized="false"
  2280. static="false" final="false" visibility="public"
  2281. deprecated="not deprecated">
  2282. <exception name="IOException" type="java.io.IOException"/>
  2283. <doc>
  2284. <![CDATA[Finalize previous upgrade.
  2285. Remove file system state saved during the upgrade.
  2286. The upgrade will become irreversible.
  2287. @throws IOException]]>
  2288. </doc>
  2289. </method>
  2290. <method name="distributedUpgradeProgress" return="org.apache.hadoop.hdfs.server.common.UpgradeStatusReport"
  2291. abstract="false" native="false" synchronized="false"
  2292. static="false" final="false" visibility="public"
  2293. deprecated="not deprecated">
  2294. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"/>
  2295. <exception name="IOException" type="java.io.IOException"/>
  2296. <doc>
  2297. <![CDATA[Report distributed upgrade progress or force current upgrade to proceed.
  2298. @param action {@link FSConstants.UpgradeAction} to perform
  2299. @return upgrade status information or null if no upgrades are in progress
  2300. @throws IOException]]>
  2301. </doc>
  2302. </method>
  2303. <method name="metaSave"
  2304. abstract="false" native="false" synchronized="false"
  2305. static="false" final="false" visibility="public"
  2306. deprecated="not deprecated">
  2307. <param name="filename" type="java.lang.String"/>
  2308. <exception name="IOException" type="java.io.IOException"/>
  2309. <doc>
  2310. <![CDATA[Dumps namenode data structures into specified file. If file
  2311. already exists, then append.
  2312. @throws IOException]]>
  2313. </doc>
  2314. </method>
  2315. <method name="getFileInfo" return="org.apache.hadoop.fs.FileStatus"
  2316. abstract="false" native="false" synchronized="false"
  2317. static="false" final="false" visibility="public"
  2318. deprecated="not deprecated">
  2319. <param name="src" type="java.lang.String"/>
  2320. <exception name="IOException" type="java.io.IOException"/>
  2321. <doc>
  2322. <![CDATA[Get the file info for a specific file or directory.
  2323. @param src The string representation of the path to the file
  2324. @throws IOException if permission to access file is denied by the system
  2325. @return object containing information regarding the file
  2326. or null if file not found]]>
  2327. </doc>
  2328. </method>
  2329. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  2330. abstract="false" native="false" synchronized="false"
  2331. static="false" final="false" visibility="public"
  2332. deprecated="not deprecated">
  2333. <param name="path" type="java.lang.String"/>
  2334. <exception name="IOException" type="java.io.IOException"/>
  2335. <doc>
  2336. <![CDATA[Get {@link ContentSummary} rooted at the specified directory.
  2337. @param path The string representation of the path]]>
  2338. </doc>
  2339. </method>
  2340. <method name="setQuota"
  2341. abstract="false" native="false" synchronized="false"
  2342. static="false" final="false" visibility="public"
  2343. deprecated="not deprecated">
  2344. <param name="path" type="java.lang.String"/>
  2345. <param name="namespaceQuota" type="long"/>
  2346. <param name="diskspaceQuota" type="long"/>
  2347. <exception name="IOException" type="java.io.IOException"/>
  2348. <doc>
  2349. <![CDATA[Set the quota for a directory.
  2350. @param path The string representation of the path to the directory
  2351. @param namespaceQuota Limit on the number of names in the tree rooted
  2352. at the directory
  2353. @param diskspaceQuota Limit on disk space occupied all the files under
  2354. this directory.
  2355. <br><br>
  2356. The quota can have three types of values : (1) 0 or more will set
  2357. the quota to that value, (2) {@link FSConstants#QUOTA_DONT_SET} implies
  2358. the quota will not be changed, and (3) {@link FSConstants#QUOTA_RESET}
  2359. implies the quota will be reset. Any other value is a runtime error.
  2360. @throws FileNotFoundException if the path is a file or
  2361. does not exist
  2362. @throws QuotaExceededException if the directory size
  2363. is greater than the given quota]]>
  2364. </doc>
  2365. </method>
  2366. <method name="fsync"
  2367. abstract="false" native="false" synchronized="false"
  2368. static="false" final="false" visibility="public"
  2369. deprecated="not deprecated">
  2370. <param name="src" type="java.lang.String"/>
  2371. <param name="client" type="java.lang.String"/>
  2372. <exception name="IOException" type="java.io.IOException"/>
  2373. <doc>
  2374. <![CDATA[Write all metadata for this file into persistent storage.
  2375. The file must be currently open for writing.
  2376. @param src The string representation of the path
  2377. @param client The string representation of the client]]>
  2378. </doc>
  2379. </method>
  2380. <method name="setTimes"
  2381. abstract="false" native="false" synchronized="false"
  2382. static="false" final="false" visibility="public"
  2383. deprecated="not deprecated">
  2384. <param name="src" type="java.lang.String"/>
  2385. <param name="mtime" type="long"/>
  2386. <param name="atime" type="long"/>
  2387. <exception name="IOException" type="java.io.IOException"/>
  2388. <doc>
  2389. <![CDATA[Sets the modification and access time of the file to the specified time.
  2390. @param src The string representation of the path
  2391. @param mtime The number of milliseconds since Jan 1, 1970.
  2392. Setting mtime to -1 means that modification time should not be set
  2393. by this call.
  2394. @param atime The number of milliseconds since Jan 1, 1970.
  2395. Setting atime to -1 means that access time should not be set
  2396. by this call.]]>
  2397. </doc>
  2398. </method>
  2399. <field name="versionID" type="long"
  2400. transient="false" volatile="false"
  2401. static="true" final="true" visibility="public"
  2402. deprecated="not deprecated">
  2403. <doc>
  2404. <![CDATA[Compared to the previous version the following changes have been introduced:
  2405. (Only the latest change is reflected.
  2406. The log of historical changes can be retrieved from the svn).
  2407. 41: saveNamespace introduced.]]>
  2408. </doc>
  2409. </field>
  2410. <field name="GET_STATS_CAPACITY_IDX" type="int"
  2411. transient="false" volatile="false"
  2412. static="true" final="true" visibility="public"
  2413. deprecated="not deprecated">
  2414. </field>
  2415. <field name="GET_STATS_USED_IDX" type="int"
  2416. transient="false" volatile="false"
  2417. static="true" final="true" visibility="public"
  2418. deprecated="not deprecated">
  2419. </field>
  2420. <field name="GET_STATS_REMAINING_IDX" type="int"
  2421. transient="false" volatile="false"
  2422. static="true" final="true" visibility="public"
  2423. deprecated="not deprecated">
  2424. </field>
  2425. <field name="GET_STATS_UNDER_REPLICATED_IDX" type="int"
  2426. transient="false" volatile="false"
  2427. static="true" final="true" visibility="public"
  2428. deprecated="not deprecated">
  2429. </field>
  2430. <field name="GET_STATS_CORRUPT_BLOCKS_IDX" type="int"
  2431. transient="false" volatile="false"
  2432. static="true" final="true" visibility="public"
  2433. deprecated="not deprecated">
  2434. </field>
  2435. <field name="GET_STATS_MISSING_BLOCKS_IDX" type="int"
  2436. transient="false" volatile="false"
  2437. static="true" final="true" visibility="public"
  2438. deprecated="not deprecated">
  2439. </field>
  2440. <doc>
  2441. <![CDATA[ClientProtocol is used by user code via
  2442. {@link org.apache.hadoop.hdfs.DistributedFileSystem} class to communicate
  2443. with the NameNode. User code can manipulate the directory namespace,
  2444. as well as open/close file streams, etc.]]>
  2445. </doc>
  2446. </interface>
  2447. <!-- end interface org.apache.hadoop.hdfs.protocol.ClientProtocol -->
  2448. <!-- start class org.apache.hadoop.hdfs.protocol.DatanodeID -->
  2449. <class name="DatanodeID" extends="java.lang.Object"
  2450. abstract="false"
  2451. static="false" final="false" visibility="public"
  2452. deprecated="not deprecated">
  2453. <implements name="org.apache.hadoop.io.WritableComparable"/>
  2454. <constructor name="DatanodeID"
  2455. static="false" final="false" visibility="public"
  2456. deprecated="not deprecated">
  2457. <doc>
  2458. <![CDATA[Equivalent to DatanodeID("").]]>
  2459. </doc>
  2460. </constructor>
  2461. <constructor name="DatanodeID" type="java.lang.String"
  2462. static="false" final="false" visibility="public"
  2463. deprecated="not deprecated">
  2464. <doc>
  2465. <![CDATA[Equivalent to DatanodeID(nodeName, "", -1, -1).]]>
  2466. </doc>
  2467. </constructor>
  2468. <constructor name="DatanodeID" type="org.apache.hadoop.hdfs.protocol.DatanodeID"
  2469. static="false" final="false" visibility="public"
  2470. deprecated="not deprecated">
  2471. <doc>
  2472. <![CDATA[DatanodeID copy constructor
  2473. @param from]]>
  2474. </doc>
  2475. </constructor>
  2476. <constructor name="DatanodeID" type="java.lang.String, java.lang.String, int, int"
  2477. static="false" final="false" visibility="public"
  2478. deprecated="not deprecated">
  2479. <doc>
  2480. <![CDATA[Create DatanodeID
  2481. @param nodeName (hostname:portNumber)
  2482. @param storageID data storage ID
  2483. @param infoPort info server port
  2484. @param ipcPort ipc server port]]>
  2485. </doc>
  2486. </constructor>
  2487. <method name="getName" return="java.lang.String"
  2488. abstract="false" native="false" synchronized="false"
  2489. static="false" final="false" visibility="public"
  2490. deprecated="not deprecated">
  2491. <doc>
  2492. <![CDATA[@return hostname:portNumber.]]>
  2493. </doc>
  2494. </method>
  2495. <method name="getStorageID" return="java.lang.String"
  2496. abstract="false" native="false" synchronized="false"
  2497. static="false" final="false" visibility="public"
  2498. deprecated="not deprecated">
  2499. <doc>
  2500. <![CDATA[@return data storage ID.]]>
  2501. </doc>
  2502. </method>
  2503. <method name="getInfoPort" return="int"
  2504. abstract="false" native="false" synchronized="false"
  2505. static="false" final="false" visibility="public"
  2506. deprecated="not deprecated">
  2507. <doc>
  2508. <![CDATA[@return infoPort (the port at which the HTTP server bound to)]]>
  2509. </doc>
  2510. </method>
  2511. <method name="getIpcPort" return="int"
  2512. abstract="false" native="false" synchronized="false"
  2513. static="false" final="false" visibility="public"
  2514. deprecated="not deprecated">
  2515. <doc>
  2516. <![CDATA[@return ipcPort (the port at which the IPC server bound to)]]>
  2517. </doc>
  2518. </method>
  2519. <method name="setStorageID"
  2520. abstract="false" native="false" synchronized="false"
  2521. static="false" final="false" visibility="public"
  2522. deprecated="not deprecated">
  2523. <param name="storageID" type="java.lang.String"/>
  2524. <doc>
  2525. <![CDATA[sets the data storage ID.]]>
  2526. </doc>
  2527. </method>
  2528. <method name="getHost" return="java.lang.String"
  2529. abstract="false" native="false" synchronized="false"
  2530. static="false" final="false" visibility="public"
  2531. deprecated="not deprecated">
  2532. <doc>
  2533. <![CDATA[@return hostname and no :portNumber.]]>
  2534. </doc>
  2535. </method>
  2536. <method name="getPort" return="int"
  2537. abstract="false" native="false" synchronized="false"
  2538. static="false" final="false" visibility="public"
  2539. deprecated="not deprecated">
  2540. </method>
  2541. <method name="equals" return="boolean"
  2542. abstract="false" native="false" synchronized="false"
  2543. static="false" final="false" visibility="public"
  2544. deprecated="not deprecated">
  2545. <param name="to" type="java.lang.Object"/>
  2546. </method>
  2547. <method name="hashCode" return="int"
  2548. abstract="false" native="false" synchronized="false"
  2549. static="false" final="false" visibility="public"
  2550. deprecated="not deprecated">
  2551. </method>
  2552. <method name="toString" return="java.lang.String"
  2553. abstract="false" native="false" synchronized="false"
  2554. static="false" final="false" visibility="public"
  2555. deprecated="not deprecated">
  2556. </method>
  2557. <method name="updateRegInfo"
  2558. abstract="false" native="false" synchronized="false"
  2559. static="false" final="false" visibility="public"
  2560. deprecated="not deprecated">
  2561. <param name="nodeReg" type="org.apache.hadoop.hdfs.protocol.DatanodeID"/>
  2562. <doc>
  2563. <![CDATA[Update fields when a new registration request comes in.
  2564. Note that this does not update storageID.]]>
  2565. </doc>
  2566. </method>
  2567. <method name="compareTo" return="int"
  2568. abstract="false" native="false" synchronized="false"
  2569. static="false" final="false" visibility="public"
  2570. deprecated="not deprecated">
  2571. <param name="that" type="org.apache.hadoop.hdfs.protocol.DatanodeID"/>
  2572. <doc>
  2573. <![CDATA[Comparable.
  2574. Basis of compare is the String name (host:portNumber) only.
  2575. @param that
  2576. @return as specified by Comparable.]]>
  2577. </doc>
  2578. </method>
  2579. <method name="write"
  2580. abstract="false" native="false" synchronized="false"
  2581. static="false" final="false" visibility="public"
  2582. deprecated="not deprecated">
  2583. <param name="out" type="java.io.DataOutput"/>
  2584. <exception name="IOException" type="java.io.IOException"/>
  2585. <doc>
  2586. <![CDATA[{@inheritDoc}]]>
  2587. </doc>
  2588. </method>
  2589. <method name="readFields"
  2590. abstract="false" native="false" synchronized="false"
  2591. static="false" final="false" visibility="public"
  2592. deprecated="not deprecated">
  2593. <param name="in" type="java.io.DataInput"/>
  2594. <exception name="IOException" type="java.io.IOException"/>
  2595. <doc>
  2596. <![CDATA[{@inheritDoc}]]>
  2597. </doc>
  2598. </method>
  2599. <field name="EMPTY_ARRAY" type="org.apache.hadoop.hdfs.protocol.DatanodeID[]"
  2600. transient="false" volatile="false"
  2601. static="true" final="true" visibility="public"
  2602. deprecated="not deprecated">
  2603. </field>
  2604. <field name="name" type="java.lang.String"
  2605. transient="false" volatile="false"
  2606. static="false" final="false" visibility="public"
  2607. deprecated="not deprecated">
  2608. </field>
  2609. <field name="storageID" type="java.lang.String"
  2610. transient="false" volatile="false"
  2611. static="false" final="false" visibility="public"
  2612. deprecated="not deprecated">
  2613. </field>
  2614. <field name="infoPort" type="int"
  2615. transient="false" volatile="false"
  2616. static="false" final="false" visibility="protected"
  2617. deprecated="not deprecated">
  2618. </field>
  2619. <field name="ipcPort" type="int"
  2620. transient="false" volatile="false"
  2621. static="false" final="false" visibility="public"
  2622. deprecated="not deprecated">
  2623. </field>
  2624. <doc>
  2625. <![CDATA[DatanodeID is composed of the data node
  2626. name (hostname:portNumber) and the data storage ID,
  2627. which it currently represents.]]>
  2628. </doc>
  2629. </class>
  2630. <!-- end class org.apache.hadoop.hdfs.protocol.DatanodeID -->
  2631. <!-- start class org.apache.hadoop.hdfs.protocol.DatanodeInfo -->
  2632. <class name="DatanodeInfo" extends="org.apache.hadoop.hdfs.protocol.DatanodeID"
  2633. abstract="false"
  2634. static="false" final="false" visibility="public"
  2635. deprecated="not deprecated">
  2636. <implements name="org.apache.hadoop.net.Node"/>
  2637. <constructor name="DatanodeInfo"
  2638. static="false" final="false" visibility="public"
  2639. deprecated="not deprecated">
  2640. </constructor>
  2641. <constructor name="DatanodeInfo" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo"
  2642. static="false" final="false" visibility="public"
  2643. deprecated="not deprecated">
  2644. </constructor>
  2645. <constructor name="DatanodeInfo" type="org.apache.hadoop.hdfs.protocol.DatanodeID"
  2646. static="false" final="false" visibility="public"
  2647. deprecated="not deprecated">
  2648. </constructor>
  2649. <constructor name="DatanodeInfo" type="org.apache.hadoop.hdfs.protocol.DatanodeID, java.lang.String, java.lang.String"
  2650. static="false" final="false" visibility="protected"
  2651. deprecated="not deprecated">
  2652. </constructor>
  2653. <method name="getCapacity" return="long"
  2654. abstract="false" native="false" synchronized="false"
  2655. static="false" final="false" visibility="public"
  2656. deprecated="not deprecated">
  2657. <doc>
  2658. <![CDATA[The raw capacity.]]>
  2659. </doc>
  2660. </method>
  2661. <method name="getDfsUsed" return="long"
  2662. abstract="false" native="false" synchronized="false"
  2663. static="false" final="false" visibility="public"
  2664. deprecated="not deprecated">
  2665. <doc>
  2666. <![CDATA[The used space by the data node.]]>
  2667. </doc>
  2668. </method>
  2669. <method name="getNonDfsUsed" return="long"
  2670. abstract="false" native="false" synchronized="false"
  2671. static="false" final="false" visibility="public"
  2672. deprecated="not deprecated">
  2673. <doc>
  2674. <![CDATA[The used space by the data node.]]>
  2675. </doc>
  2676. </method>
  2677. <method name="getDfsUsedPercent" return="float"
  2678. abstract="false" native="false" synchronized="false"
  2679. static="false" final="false" visibility="public"
  2680. deprecated="not deprecated">
  2681. <doc>
  2682. <![CDATA[The used space by the data node as percentage of present capacity]]>
  2683. </doc>
  2684. </method>
  2685. <method name="getRemaining" return="long"
  2686. abstract="false" native="false" synchronized="false"
  2687. static="false" final="false" visibility="public"
  2688. deprecated="not deprecated">
  2689. <doc>
  2690. <![CDATA[The raw free space.]]>
  2691. </doc>
  2692. </method>
  2693. <method name="getRemainingPercent" return="float"
  2694. abstract="false" native="false" synchronized="false"
  2695. static="false" final="false" visibility="public"
  2696. deprecated="not deprecated">
  2697. <doc>
  2698. <![CDATA[The remaining space as percentage of configured capacity.]]>
  2699. </doc>
  2700. </method>
  2701. <method name="getLastUpdate" return="long"
  2702. abstract="false" native="false" synchronized="false"
  2703. static="false" final="false" visibility="public"
  2704. deprecated="not deprecated">
  2705. <doc>
  2706. <![CDATA[The time when this information was accurate.]]>
  2707. </doc>
  2708. </method>
  2709. <method name="getXceiverCount" return="int"
  2710. abstract="false" native="false" synchronized="false"
  2711. static="false" final="false" visibility="public"
  2712. deprecated="not deprecated">
  2713. <doc>
  2714. <![CDATA[number of active connections]]>
  2715. </doc>
  2716. </method>
  2717. <method name="setCapacity"
  2718. abstract="false" native="false" synchronized="false"
  2719. static="false" final="false" visibility="public"
  2720. deprecated="not deprecated">
  2721. <param name="capacity" type="long"/>
  2722. <doc>
  2723. <![CDATA[Sets raw capacity.]]>
  2724. </doc>
  2725. </method>
  2726. <method name="setRemaining"
  2727. abstract="false" native="false" synchronized="false"
  2728. static="false" final="false" visibility="public"
  2729. deprecated="not deprecated">
  2730. <param name="remaining" type="long"/>
  2731. <doc>
  2732. <![CDATA[Sets raw free space.]]>
  2733. </doc>
  2734. </method>
  2735. <method name="setLastUpdate"
  2736. abstract="false" native="false" synchronized="false"
  2737. static="false" final="false" visibility="public"
  2738. deprecated="not deprecated">
  2739. <param name="lastUpdate" type="long"/>
  2740. <doc>
  2741. <![CDATA[Sets time when this information was accurate.]]>
  2742. </doc>
  2743. </method>
  2744. <method name="setXceiverCount"
  2745. abstract="false" native="false" synchronized="false"
  2746. static="false" final="false" visibility="public"
  2747. deprecated="not deprecated">
  2748. <param name="xceiverCount" type="int"/>
  2749. <doc>
  2750. <![CDATA[Sets number of active connections]]>
  2751. </doc>
  2752. </method>
  2753. <method name="getNetworkLocation" return="java.lang.String"
  2754. abstract="false" native="false" synchronized="true"
  2755. static="false" final="false" visibility="public"
  2756. deprecated="not deprecated">
  2757. <doc>
  2758. <![CDATA[rack name]]>
  2759. </doc>
  2760. </method>
  2761. <method name="setNetworkLocation"
  2762. abstract="false" native="false" synchronized="true"
  2763. static="false" final="false" visibility="public"
  2764. deprecated="not deprecated">
  2765. <param name="location" type="java.lang.String"/>
  2766. <doc>
  2767. <![CDATA[Sets the rack name]]>
  2768. </doc>
  2769. </method>
  2770. <method name="getHostName" return="java.lang.String"
  2771. abstract="false" native="false" synchronized="false"
  2772. static="false" final="false" visibility="public"
  2773. deprecated="not deprecated">
  2774. </method>
  2775. <method name="setHostName"
  2776. abstract="false" native="false" synchronized="false"
  2777. static="false" final="false" visibility="public"
  2778. deprecated="not deprecated">
  2779. <param name="host" type="java.lang.String"/>
  2780. </method>
  2781. <method name="getDatanodeReport" return="java.lang.String"
  2782. abstract="false" native="false" synchronized="false"
  2783. static="false" final="false" visibility="public"
  2784. deprecated="not deprecated">
  2785. <doc>
  2786. <![CDATA[A formatted string for reporting the status of the DataNode.]]>
  2787. </doc>
  2788. </method>
  2789. <method name="dumpDatanode" return="java.lang.String"
  2790. abstract="false" native="false" synchronized="false"
  2791. static="false" final="false" visibility="public"
  2792. deprecated="not deprecated">
  2793. <doc>
  2794. <![CDATA[A formatted string for printing the status of the DataNode.]]>
  2795. </doc>
  2796. </method>
  2797. <method name="startDecommission"
  2798. abstract="false" native="false" synchronized="false"
  2799. static="false" final="false" visibility="public"
  2800. deprecated="not deprecated">
  2801. <doc>
  2802. <![CDATA[Start decommissioning a node.
  2803. old state.]]>
  2804. </doc>
  2805. </method>
  2806. <method name="stopDecommission"
  2807. abstract="false" native="false" synchronized="false"
  2808. static="false" final="false" visibility="public"
  2809. deprecated="not deprecated">
  2810. <doc>
  2811. <![CDATA[Stop decommissioning a node.
  2812. old state.]]>
  2813. </doc>
  2814. </method>
  2815. <method name="isDecommissionInProgress" return="boolean"
  2816. abstract="false" native="false" synchronized="false"
  2817. static="false" final="false" visibility="public"
  2818. deprecated="not deprecated">
  2819. <doc>
  2820. <![CDATA[Returns true if the node is in the process of being decommissioned]]>
  2821. </doc>
  2822. </method>
  2823. <method name="isDecommissioned" return="boolean"
  2824. abstract="false" native="false" synchronized="false"
  2825. static="false" final="false" visibility="public"
  2826. deprecated="not deprecated">
  2827. <doc>
  2828. <![CDATA[Returns true if the node has been decommissioned.]]>
  2829. </doc>
  2830. </method>
  2831. <method name="setDecommissioned"
  2832. abstract="false" native="false" synchronized="false"
  2833. static="false" final="false" visibility="public"
  2834. deprecated="not deprecated">
  2835. <doc>
  2836. <![CDATA[Sets the admin state to indicate that decommision is complete.]]>
  2837. </doc>
  2838. </method>
  2839. <method name="setAdminState"
  2840. abstract="false" native="false" synchronized="false"
  2841. static="false" final="false" visibility="protected"
  2842. deprecated="not deprecated">
  2843. <param name="newState" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates"/>
  2844. <doc>
  2845. <![CDATA[Sets the admin state of this node.]]>
  2846. </doc>
  2847. </method>
  2848. <method name="getParent" return="org.apache.hadoop.net.Node"
  2849. abstract="false" native="false" synchronized="false"
  2850. static="false" final="false" visibility="public"
  2851. deprecated="not deprecated">
  2852. <doc>
  2853. <![CDATA[Return this node's parent]]>
  2854. </doc>
  2855. </method>
  2856. <method name="setParent"
  2857. abstract="false" native="false" synchronized="false"
  2858. static="false" final="false" visibility="public"
  2859. deprecated="not deprecated">
  2860. <param name="parent" type="org.apache.hadoop.net.Node"/>
  2861. </method>
  2862. <method name="getLevel" return="int"
  2863. abstract="false" native="false" synchronized="false"
  2864. static="false" final="false" visibility="public"
  2865. deprecated="not deprecated">
  2866. <doc>
  2867. <![CDATA[Return this node's level in the tree.
  2868. E.g. the root of a tree returns 0 and its children return 1]]>
  2869. </doc>
  2870. </method>
  2871. <method name="setLevel"
  2872. abstract="false" native="false" synchronized="false"
  2873. static="false" final="false" visibility="public"
  2874. deprecated="not deprecated">
  2875. <param name="level" type="int"/>
  2876. </method>
  2877. <method name="write"
  2878. abstract="false" native="false" synchronized="false"
  2879. static="false" final="false" visibility="public"
  2880. deprecated="not deprecated">
  2881. <param name="out" type="java.io.DataOutput"/>
  2882. <exception name="IOException" type="java.io.IOException"/>
  2883. <doc>
  2884. <![CDATA[{@inheritDoc}]]>
  2885. </doc>
  2886. </method>
  2887. <method name="readFields"
  2888. abstract="false" native="false" synchronized="false"
  2889. static="false" final="false" visibility="public"
  2890. deprecated="not deprecated">
  2891. <param name="in" type="java.io.DataInput"/>
  2892. <exception name="IOException" type="java.io.IOException"/>
  2893. <doc>
  2894. <![CDATA[{@inheritDoc}]]>
  2895. </doc>
  2896. </method>
  2897. <field name="capacity" type="long"
  2898. transient="false" volatile="false"
  2899. static="false" final="false" visibility="protected"
  2900. deprecated="not deprecated">
  2901. </field>
  2902. <field name="dfsUsed" type="long"
  2903. transient="false" volatile="false"
  2904. static="false" final="false" visibility="protected"
  2905. deprecated="not deprecated">
  2906. </field>
  2907. <field name="remaining" type="long"
  2908. transient="false" volatile="false"
  2909. static="false" final="false" visibility="protected"
  2910. deprecated="not deprecated">
  2911. </field>
  2912. <field name="lastUpdate" type="long"
  2913. transient="false" volatile="false"
  2914. static="false" final="false" visibility="protected"
  2915. deprecated="not deprecated">
  2916. </field>
  2917. <field name="xceiverCount" type="int"
  2918. transient="false" volatile="false"
  2919. static="false" final="false" visibility="protected"
  2920. deprecated="not deprecated">
  2921. </field>
  2922. <field name="location" type="java.lang.String"
  2923. transient="false" volatile="false"
  2924. static="false" final="false" visibility="protected"
  2925. deprecated="not deprecated">
  2926. </field>
  2927. <field name="hostName" type="java.lang.String"
  2928. transient="false" volatile="false"
  2929. static="false" final="false" visibility="protected"
  2930. deprecated="not deprecated">
  2931. <doc>
  2932. <![CDATA[HostName as suplied by the datanode during registration as its
  2933. name. Namenode uses datanode IP address as the name.]]>
  2934. </doc>
  2935. </field>
  2936. <field name="adminState" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates"
  2937. transient="false" volatile="false"
  2938. static="false" final="false" visibility="protected"
  2939. deprecated="not deprecated">
  2940. </field>
  2941. <doc>
  2942. <![CDATA[DatanodeInfo represents the status of a DataNode.
  2943. This object is used for communication in the
  2944. Datanode Protocol and the Client Protocol.]]>
  2945. </doc>
  2946. </class>
  2947. <!-- end class org.apache.hadoop.hdfs.protocol.DatanodeInfo -->
  2948. <!-- start class org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates -->
  2949. <class name="DatanodeInfo.AdminStates" extends="java.lang.Enum"
  2950. abstract="false"
  2951. static="true" final="true" visibility="public"
  2952. deprecated="not deprecated">
  2953. <method name="values" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates[]"
  2954. abstract="false" native="false" synchronized="false"
  2955. static="true" final="false" visibility="public"
  2956. deprecated="not deprecated">
  2957. </method>
  2958. <method name="valueOf" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates"
  2959. abstract="false" native="false" synchronized="false"
  2960. static="true" final="false" visibility="public"
  2961. deprecated="not deprecated">
  2962. <param name="name" type="java.lang.String"/>
  2963. </method>
  2964. <field name="NORMAL" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates"
  2965. transient="false" volatile="false"
  2966. static="true" final="true" visibility="public"
  2967. deprecated="not deprecated">
  2968. </field>
  2969. <field name="DECOMMISSION_INPROGRESS" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates"
  2970. transient="false" volatile="false"
  2971. static="true" final="true" visibility="public"
  2972. deprecated="not deprecated">
  2973. </field>
  2974. <field name="DECOMMISSIONED" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates"
  2975. transient="false" volatile="false"
  2976. static="true" final="true" visibility="public"
  2977. deprecated="not deprecated">
  2978. </field>
  2979. </class>
  2980. <!-- end class org.apache.hadoop.hdfs.protocol.DatanodeInfo.AdminStates -->
  2981. <!-- start interface org.apache.hadoop.hdfs.protocol.DataTransferProtocol -->
  2982. <interface name="DataTransferProtocol" abstract="true"
  2983. static="false" final="false" visibility="public"
  2984. deprecated="not deprecated">
  2985. <field name="DATA_TRANSFER_VERSION" type="int"
  2986. transient="false" volatile="false"
  2987. static="true" final="true" visibility="public"
  2988. deprecated="not deprecated">
  2989. <doc>
  2990. <![CDATA[Version for data transfers between clients and datanodes
  2991. This should change when serialization of DatanodeInfo, not just
  2992. when protocol changes. It is not very obvious.]]>
  2993. </doc>
  2994. </field>
  2995. <field name="OP_WRITE_BLOCK" type="byte"
  2996. transient="false" volatile="false"
  2997. static="true" final="true" visibility="public"
  2998. deprecated="not deprecated">
  2999. </field>
  3000. <field name="OP_READ_BLOCK" type="byte"
  3001. transient="false" volatile="false"
  3002. static="true" final="true" visibility="public"
  3003. deprecated="not deprecated">
  3004. </field>
  3005. <field name="OP_READ_METADATA" type="byte"
  3006. transient="false" volatile="false"
  3007. static="true" final="true" visibility="public"
  3008. deprecated="not deprecated">
  3009. </field>
  3010. <field name="OP_REPLACE_BLOCK" type="byte"
  3011. transient="false" volatile="false"
  3012. static="true" final="true" visibility="public"
  3013. deprecated="not deprecated">
  3014. </field>
  3015. <field name="OP_COPY_BLOCK" type="byte"
  3016. transient="false" volatile="false"
  3017. static="true" final="true" visibility="public"
  3018. deprecated="not deprecated">
  3019. </field>
  3020. <field name="OP_BLOCK_CHECKSUM" type="byte"
  3021. transient="false" volatile="false"
  3022. static="true" final="true" visibility="public"
  3023. deprecated="not deprecated">
  3024. </field>
  3025. <field name="OP_STATUS_SUCCESS" type="int"
  3026. transient="false" volatile="false"
  3027. static="true" final="true" visibility="public"
  3028. deprecated="not deprecated">
  3029. </field>
  3030. <field name="OP_STATUS_ERROR" type="int"
  3031. transient="false" volatile="false"
  3032. static="true" final="true" visibility="public"
  3033. deprecated="not deprecated">
  3034. </field>
  3035. <field name="OP_STATUS_ERROR_CHECKSUM" type="int"
  3036. transient="false" volatile="false"
  3037. static="true" final="true" visibility="public"
  3038. deprecated="not deprecated">
  3039. </field>
  3040. <field name="OP_STATUS_ERROR_INVALID" type="int"
  3041. transient="false" volatile="false"
  3042. static="true" final="true" visibility="public"
  3043. deprecated="not deprecated">
  3044. </field>
  3045. <field name="OP_STATUS_ERROR_EXISTS" type="int"
  3046. transient="false" volatile="false"
  3047. static="true" final="true" visibility="public"
  3048. deprecated="not deprecated">
  3049. </field>
  3050. <field name="OP_STATUS_CHECKSUM_OK" type="int"
  3051. transient="false" volatile="false"
  3052. static="true" final="true" visibility="public"
  3053. deprecated="not deprecated">
  3054. </field>
  3055. <doc>
  3056. <![CDATA[The Client transfers data to/from datanode using a streaming protocol.]]>
  3057. </doc>
  3058. </interface>
  3059. <!-- end interface org.apache.hadoop.hdfs.protocol.DataTransferProtocol -->
  3060. <!-- start interface org.apache.hadoop.hdfs.protocol.FSConstants -->
  3061. <interface name="FSConstants" abstract="true"
  3062. static="false" final="false" visibility="public"
  3063. deprecated="not deprecated">
  3064. <field name="MIN_BLOCKS_FOR_WRITE" type="int"
  3065. transient="false" volatile="false"
  3066. static="true" final="true" visibility="public"
  3067. deprecated="not deprecated">
  3068. </field>
  3069. <field name="BLOCK_INVALIDATE_CHUNK" type="int"
  3070. transient="false" volatile="false"
  3071. static="true" final="true" visibility="public"
  3072. deprecated="not deprecated">
  3073. </field>
  3074. <field name="QUOTA_DONT_SET" type="long"
  3075. transient="false" volatile="false"
  3076. static="true" final="true" visibility="public"
  3077. deprecated="not deprecated">
  3078. </field>
  3079. <field name="QUOTA_RESET" type="long"
  3080. transient="false" volatile="false"
  3081. static="true" final="true" visibility="public"
  3082. deprecated="not deprecated">
  3083. </field>
  3084. <field name="HEARTBEAT_INTERVAL" type="long"
  3085. transient="false" volatile="false"
  3086. static="true" final="true" visibility="public"
  3087. deprecated="not deprecated">
  3088. </field>
  3089. <field name="BLOCKREPORT_INTERVAL" type="long"
  3090. transient="false" volatile="false"
  3091. static="true" final="true" visibility="public"
  3092. deprecated="not deprecated">
  3093. </field>
  3094. <field name="BLOCKREPORT_INITIAL_DELAY" type="long"
  3095. transient="false" volatile="false"
  3096. static="true" final="true" visibility="public"
  3097. deprecated="not deprecated">
  3098. </field>
  3099. <field name="LEASE_SOFTLIMIT_PERIOD" type="long"
  3100. transient="false" volatile="false"
  3101. static="true" final="true" visibility="public"
  3102. deprecated="not deprecated">
  3103. </field>
  3104. <field name="LEASE_HARDLIMIT_PERIOD" type="long"
  3105. transient="false" volatile="false"
  3106. static="true" final="true" visibility="public"
  3107. deprecated="not deprecated">
  3108. </field>
  3109. <field name="LEASE_RECOVER_PERIOD" type="long"
  3110. transient="false" volatile="false"
  3111. static="true" final="true" visibility="public"
  3112. deprecated="not deprecated">
  3113. </field>
  3114. <field name="MAX_PATH_LENGTH" type="int"
  3115. transient="false" volatile="false"
  3116. static="true" final="true" visibility="public"
  3117. deprecated="not deprecated">
  3118. </field>
  3119. <field name="MAX_PATH_DEPTH" type="int"
  3120. transient="false" volatile="false"
  3121. static="true" final="true" visibility="public"
  3122. deprecated="not deprecated">
  3123. </field>
  3124. <field name="BUFFER_SIZE" type="int"
  3125. transient="false" volatile="false"
  3126. static="true" final="true" visibility="public"
  3127. deprecated="not deprecated">
  3128. </field>
  3129. <field name="SMALL_BUFFER_SIZE" type="int"
  3130. transient="false" volatile="false"
  3131. static="true" final="true" visibility="public"
  3132. deprecated="not deprecated">
  3133. </field>
  3134. <field name="DEFAULT_BLOCK_SIZE" type="long"
  3135. transient="false" volatile="false"
  3136. static="true" final="true" visibility="public"
  3137. deprecated="not deprecated">
  3138. </field>
  3139. <field name="DEFAULT_DATA_SOCKET_SIZE" type="int"
  3140. transient="false" volatile="false"
  3141. static="true" final="true" visibility="public"
  3142. deprecated="not deprecated">
  3143. </field>
  3144. <field name="SIZE_OF_INTEGER" type="int"
  3145. transient="false" volatile="false"
  3146. static="true" final="true" visibility="public"
  3147. deprecated="not deprecated">
  3148. </field>
  3149. <field name="LAYOUT_VERSION" type="int"
  3150. transient="false" volatile="false"
  3151. static="true" final="true" visibility="public"
  3152. deprecated="not deprecated">
  3153. </field>
  3154. <doc>
  3155. <![CDATA[Some handy constants]]>
  3156. </doc>
  3157. </interface>
  3158. <!-- end interface org.apache.hadoop.hdfs.protocol.FSConstants -->
  3159. <!-- start class org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType -->
  3160. <class name="FSConstants.DatanodeReportType" extends="java.lang.Enum"
  3161. abstract="false"
  3162. static="true" final="true" visibility="public"
  3163. deprecated="not deprecated">
  3164. <method name="values" return="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType[]"
  3165. abstract="false" native="false" synchronized="false"
  3166. static="true" final="false" visibility="public"
  3167. deprecated="not deprecated">
  3168. </method>
  3169. <method name="valueOf" return="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType"
  3170. abstract="false" native="false" synchronized="false"
  3171. static="true" final="false" visibility="public"
  3172. deprecated="not deprecated">
  3173. <param name="name" type="java.lang.String"/>
  3174. </method>
  3175. <field name="ALL" type="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType"
  3176. transient="false" volatile="false"
  3177. static="true" final="true" visibility="public"
  3178. deprecated="not deprecated">
  3179. </field>
  3180. <field name="LIVE" type="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType"
  3181. transient="false" volatile="false"
  3182. static="true" final="true" visibility="public"
  3183. deprecated="not deprecated">
  3184. </field>
  3185. <field name="DEAD" type="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType"
  3186. transient="false" volatile="false"
  3187. static="true" final="true" visibility="public"
  3188. deprecated="not deprecated">
  3189. </field>
  3190. </class>
  3191. <!-- end class org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType -->
  3192. <!-- start class org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction -->
  3193. <class name="FSConstants.SafeModeAction" extends="java.lang.Enum"
  3194. abstract="false"
  3195. static="true" final="true" visibility="public"
  3196. deprecated="not deprecated">
  3197. <method name="values" return="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction[]"
  3198. abstract="false" native="false" synchronized="false"
  3199. static="true" final="false" visibility="public"
  3200. deprecated="not deprecated">
  3201. </method>
  3202. <method name="valueOf" return="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"
  3203. abstract="false" native="false" synchronized="false"
  3204. static="true" final="false" visibility="public"
  3205. deprecated="not deprecated">
  3206. <param name="name" type="java.lang.String"/>
  3207. </method>
  3208. <field name="SAFEMODE_LEAVE" type="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"
  3209. transient="false" volatile="false"
  3210. static="true" final="true" visibility="public"
  3211. deprecated="not deprecated">
  3212. </field>
  3213. <field name="SAFEMODE_ENTER" type="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"
  3214. transient="false" volatile="false"
  3215. static="true" final="true" visibility="public"
  3216. deprecated="not deprecated">
  3217. </field>
  3218. <field name="SAFEMODE_GET" type="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"
  3219. transient="false" volatile="false"
  3220. static="true" final="true" visibility="public"
  3221. deprecated="not deprecated">
  3222. </field>
  3223. </class>
  3224. <!-- end class org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction -->
  3225. <!-- start class org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction -->
  3226. <class name="FSConstants.UpgradeAction" extends="java.lang.Enum"
  3227. abstract="false"
  3228. static="true" final="true" visibility="public"
  3229. deprecated="not deprecated">
  3230. <method name="values" return="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction[]"
  3231. abstract="false" native="false" synchronized="false"
  3232. static="true" final="false" visibility="public"
  3233. deprecated="not deprecated">
  3234. </method>
  3235. <method name="valueOf" return="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"
  3236. abstract="false" native="false" synchronized="false"
  3237. static="true" final="false" visibility="public"
  3238. deprecated="not deprecated">
  3239. <param name="name" type="java.lang.String"/>
  3240. </method>
  3241. <field name="GET_STATUS" type="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"
  3242. transient="false" volatile="false"
  3243. static="true" final="true" visibility="public"
  3244. deprecated="not deprecated">
  3245. </field>
  3246. <field name="DETAILED_STATUS" type="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"
  3247. transient="false" volatile="false"
  3248. static="true" final="true" visibility="public"
  3249. deprecated="not deprecated">
  3250. </field>
  3251. <field name="FORCE_PROCEED" type="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"
  3252. transient="false" volatile="false"
  3253. static="true" final="true" visibility="public"
  3254. deprecated="not deprecated">
  3255. </field>
  3256. <doc>
  3257. <![CDATA[Distributed upgrade actions:
  3258. 1. Get upgrade status.
  3259. 2. Get detailed upgrade status.
  3260. 3. Proceed with the upgrade if it is stuck, no matter what the status is.]]>
  3261. </doc>
  3262. </class>
  3263. <!-- end class org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction -->
  3264. <!-- start class org.apache.hadoop.hdfs.protocol.LocatedBlock -->
  3265. <class name="LocatedBlock" extends="java.lang.Object"
  3266. abstract="false"
  3267. static="false" final="false" visibility="public"
  3268. deprecated="not deprecated">
  3269. <implements name="org.apache.hadoop.io.Writable"/>
  3270. <constructor name="LocatedBlock"
  3271. static="false" final="false" visibility="public"
  3272. deprecated="not deprecated">
  3273. </constructor>
  3274. <constructor name="LocatedBlock" type="org.apache.hadoop.hdfs.protocol.Block, org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"
  3275. static="false" final="false" visibility="public"
  3276. deprecated="not deprecated">
  3277. </constructor>
  3278. <constructor name="LocatedBlock" type="org.apache.hadoop.hdfs.protocol.Block, org.apache.hadoop.hdfs.protocol.DatanodeInfo[], long"
  3279. static="false" final="false" visibility="public"
  3280. deprecated="not deprecated">
  3281. </constructor>
  3282. <constructor name="LocatedBlock" type="org.apache.hadoop.hdfs.protocol.Block, org.apache.hadoop.hdfs.protocol.DatanodeInfo[], long, boolean"
  3283. static="false" final="false" visibility="public"
  3284. deprecated="not deprecated">
  3285. </constructor>
  3286. <method name="getBlock" return="org.apache.hadoop.hdfs.protocol.Block"
  3287. abstract="false" native="false" synchronized="false"
  3288. static="false" final="false" visibility="public"
  3289. deprecated="not deprecated">
  3290. </method>
  3291. <method name="getLocations" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"
  3292. abstract="false" native="false" synchronized="false"
  3293. static="false" final="false" visibility="public"
  3294. deprecated="not deprecated">
  3295. </method>
  3296. <method name="getStartOffset" return="long"
  3297. abstract="false" native="false" synchronized="false"
  3298. static="false" final="false" visibility="public"
  3299. deprecated="not deprecated">
  3300. </method>
  3301. <method name="getBlockSize" return="long"
  3302. abstract="false" native="false" synchronized="false"
  3303. static="false" final="false" visibility="public"
  3304. deprecated="not deprecated">
  3305. </method>
  3306. <method name="isCorrupt" return="boolean"
  3307. abstract="false" native="false" synchronized="false"
  3308. static="false" final="false" visibility="public"
  3309. deprecated="not deprecated">
  3310. </method>
  3311. <method name="write"
  3312. abstract="false" native="false" synchronized="false"
  3313. static="false" final="false" visibility="public"
  3314. deprecated="not deprecated">
  3315. <param name="out" type="java.io.DataOutput"/>
  3316. <exception name="IOException" type="java.io.IOException"/>
  3317. </method>
  3318. <method name="readFields"
  3319. abstract="false" native="false" synchronized="false"
  3320. static="false" final="false" visibility="public"
  3321. deprecated="not deprecated">
  3322. <param name="in" type="java.io.DataInput"/>
  3323. <exception name="IOException" type="java.io.IOException"/>
  3324. </method>
  3325. <doc>
  3326. <![CDATA[A LocatedBlock is a pair of Block, DatanodeInfo[]
  3327. objects. It tells where to find a Block.]]>
  3328. </doc>
  3329. </class>
  3330. <!-- end class org.apache.hadoop.hdfs.protocol.LocatedBlock -->
  3331. <!-- start class org.apache.hadoop.hdfs.protocol.LocatedBlocks -->
  3332. <class name="LocatedBlocks" extends="java.lang.Object"
  3333. abstract="false"
  3334. static="false" final="false" visibility="public"
  3335. deprecated="not deprecated">
  3336. <implements name="org.apache.hadoop.io.Writable"/>
  3337. <constructor name="LocatedBlocks" type="long, java.util.List, boolean"
  3338. static="false" final="false" visibility="public"
  3339. deprecated="not deprecated">
  3340. </constructor>
  3341. <method name="getLocatedBlocks" return="java.util.List"
  3342. abstract="false" native="false" synchronized="false"
  3343. static="false" final="false" visibility="public"
  3344. deprecated="not deprecated">
  3345. <doc>
  3346. <![CDATA[Get located blocks.]]>
  3347. </doc>
  3348. </method>
  3349. <method name="get" return="org.apache.hadoop.hdfs.protocol.LocatedBlock"
  3350. abstract="false" native="false" synchronized="false"
  3351. static="false" final="false" visibility="public"
  3352. deprecated="not deprecated">
  3353. <param name="index" type="int"/>
  3354. <doc>
  3355. <![CDATA[Get located block.]]>
  3356. </doc>
  3357. </method>
  3358. <method name="locatedBlockCount" return="int"
  3359. abstract="false" native="false" synchronized="false"
  3360. static="false" final="false" visibility="public"
  3361. deprecated="not deprecated">
  3362. <doc>
  3363. <![CDATA[Get number of located blocks.]]>
  3364. </doc>
  3365. </method>
  3366. <method name="getFileLength" return="long"
  3367. abstract="false" native="false" synchronized="false"
  3368. static="false" final="false" visibility="public"
  3369. deprecated="not deprecated">
  3370. </method>
  3371. <method name="isUnderConstruction" return="boolean"
  3372. abstract="false" native="false" synchronized="false"
  3373. static="false" final="false" visibility="public"
  3374. deprecated="not deprecated">
  3375. <doc>
  3376. <![CDATA[Return ture if file was under construction when
  3377. this LocatedBlocks was constructed, false otherwise.]]>
  3378. </doc>
  3379. </method>
  3380. <method name="findBlock" return="int"
  3381. abstract="false" native="false" synchronized="false"
  3382. static="false" final="false" visibility="public"
  3383. deprecated="not deprecated">
  3384. <param name="offset" type="long"/>
  3385. <doc>
  3386. <![CDATA[Find block containing specified offset.
  3387. @return block if found, or null otherwise.]]>
  3388. </doc>
  3389. </method>
  3390. <method name="insertRange"
  3391. abstract="false" native="false" synchronized="false"
  3392. static="false" final="false" visibility="public"
  3393. deprecated="not deprecated">
  3394. <param name="blockIdx" type="int"/>
  3395. <param name="newBlocks" type="java.util.List"/>
  3396. </method>
  3397. <method name="getInsertIndex" return="int"
  3398. abstract="false" native="false" synchronized="false"
  3399. static="true" final="false" visibility="public"
  3400. deprecated="not deprecated">
  3401. <param name="binSearchResult" type="int"/>
  3402. </method>
  3403. <method name="write"
  3404. abstract="false" native="false" synchronized="false"
  3405. static="false" final="false" visibility="public"
  3406. deprecated="not deprecated">
  3407. <param name="out" type="java.io.DataOutput"/>
  3408. <exception name="IOException" type="java.io.IOException"/>
  3409. </method>
  3410. <method name="readFields"
  3411. abstract="false" native="false" synchronized="false"
  3412. static="false" final="false" visibility="public"
  3413. deprecated="not deprecated">
  3414. <param name="in" type="java.io.DataInput"/>
  3415. <exception name="IOException" type="java.io.IOException"/>
  3416. </method>
  3417. <doc>
  3418. <![CDATA[Collection of blocks with their locations and the file length.]]>
  3419. </doc>
  3420. </class>
  3421. <!-- end class org.apache.hadoop.hdfs.protocol.LocatedBlocks -->
  3422. <!-- start class org.apache.hadoop.hdfs.protocol.QuotaExceededException -->
  3423. <class name="QuotaExceededException" extends="java.io.IOException"
  3424. abstract="false"
  3425. static="false" final="true" visibility="public"
  3426. deprecated="not deprecated">
  3427. <constructor name="QuotaExceededException" type="java.lang.String"
  3428. static="false" final="false" visibility="public"
  3429. deprecated="not deprecated">
  3430. </constructor>
  3431. <constructor name="QuotaExceededException" type="long, long, long, long"
  3432. static="false" final="false" visibility="public"
  3433. deprecated="not deprecated">
  3434. </constructor>
  3435. <method name="setPathName"
  3436. abstract="false" native="false" synchronized="false"
  3437. static="false" final="false" visibility="public"
  3438. deprecated="not deprecated">
  3439. <param name="path" type="java.lang.String"/>
  3440. </method>
  3441. <method name="getMessage" return="java.lang.String"
  3442. abstract="false" native="false" synchronized="false"
  3443. static="false" final="false" visibility="public"
  3444. deprecated="not deprecated">
  3445. </method>
  3446. <doc>
  3447. <![CDATA[This exception is thrown when modification to HDFS results in violation
  3448. of a directory quota. A directory quota might be namespace quota (limit
  3449. on number of files and directories) or a diskspace quota (limit on space
  3450. taken by all the file under the directory tree). <br> <br>
  3451. The message for the exception specifies the directory where the quota
  3452. was violated and actual quotas.]]>
  3453. </doc>
  3454. </class>
  3455. <!-- end class org.apache.hadoop.hdfs.protocol.QuotaExceededException -->
  3456. <!-- start class org.apache.hadoop.hdfs.protocol.UnregisteredDatanodeException -->
  3457. <class name="UnregisteredDatanodeException" extends="java.io.IOException"
  3458. abstract="false"
  3459. static="false" final="false" visibility="public"
  3460. deprecated="not deprecated">
  3461. <constructor name="UnregisteredDatanodeException" type="org.apache.hadoop.hdfs.protocol.DatanodeID"
  3462. static="false" final="false" visibility="public"
  3463. deprecated="not deprecated">
  3464. </constructor>
  3465. <constructor name="UnregisteredDatanodeException" type="org.apache.hadoop.hdfs.protocol.DatanodeID, org.apache.hadoop.hdfs.protocol.DatanodeInfo"
  3466. static="false" final="false" visibility="public"
  3467. deprecated="not deprecated">
  3468. </constructor>
  3469. <doc>
  3470. <![CDATA[This exception is thrown when a datanode that has not previously
  3471. registered is trying to access the name node.]]>
  3472. </doc>
  3473. </class>
  3474. <!-- end class org.apache.hadoop.hdfs.protocol.UnregisteredDatanodeException -->
  3475. </package>
  3476. <package name="org.apache.hadoop.hdfs.server.balancer">
  3477. <!-- start class org.apache.hadoop.hdfs.server.balancer.Balancer -->
  3478. <class name="Balancer" extends="java.lang.Object"
  3479. abstract="false"
  3480. static="false" final="false" visibility="public"
  3481. deprecated="not deprecated">
  3482. <implements name="org.apache.hadoop.util.Tool"/>
  3483. <method name="main"
  3484. abstract="false" native="false" synchronized="false"
  3485. static="true" final="false" visibility="public"
  3486. deprecated="not deprecated">
  3487. <param name="args" type="java.lang.String[]"/>
  3488. <doc>
  3489. <![CDATA[Run a balancer
  3490. @param args]]>
  3491. </doc>
  3492. </method>
  3493. <method name="run" return="int"
  3494. abstract="false" native="false" synchronized="false"
  3495. static="false" final="false" visibility="public"
  3496. deprecated="not deprecated">
  3497. <param name="args" type="java.lang.String[]"/>
  3498. <exception name="Exception" type="java.lang.Exception"/>
  3499. <doc>
  3500. <![CDATA[main method of Balancer
  3501. @param args arguments to a Balancer
  3502. @exception any exception occurs during datanode balancing]]>
  3503. </doc>
  3504. </method>
  3505. <method name="getConf" return="org.apache.hadoop.conf.Configuration"
  3506. abstract="false" native="false" synchronized="false"
  3507. static="false" final="false" visibility="public"
  3508. deprecated="not deprecated">
  3509. <doc>
  3510. <![CDATA[return this balancer's configuration]]>
  3511. </doc>
  3512. </method>
  3513. <method name="setConf"
  3514. abstract="false" native="false" synchronized="false"
  3515. static="false" final="false" visibility="public"
  3516. deprecated="not deprecated">
  3517. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  3518. <doc>
  3519. <![CDATA[set this balancer's configuration]]>
  3520. </doc>
  3521. </method>
  3522. <field name="MAX_NUM_CONCURRENT_MOVES" type="int"
  3523. transient="false" volatile="false"
  3524. static="true" final="true" visibility="public"
  3525. deprecated="not deprecated">
  3526. <doc>
  3527. <![CDATA[The maximum number of concurrent blocks moves for
  3528. balancing purpose at a datanode]]>
  3529. </doc>
  3530. </field>
  3531. <field name="SUCCESS" type="int"
  3532. transient="false" volatile="false"
  3533. static="true" final="true" visibility="public"
  3534. deprecated="not deprecated">
  3535. </field>
  3536. <field name="ALREADY_RUNNING" type="int"
  3537. transient="false" volatile="false"
  3538. static="true" final="true" visibility="public"
  3539. deprecated="not deprecated">
  3540. </field>
  3541. <field name="NO_MOVE_BLOCK" type="int"
  3542. transient="false" volatile="false"
  3543. static="true" final="true" visibility="public"
  3544. deprecated="not deprecated">
  3545. </field>
  3546. <field name="NO_MOVE_PROGRESS" type="int"
  3547. transient="false" volatile="false"
  3548. static="true" final="true" visibility="public"
  3549. deprecated="not deprecated">
  3550. </field>
  3551. <field name="IO_EXCEPTION" type="int"
  3552. transient="false" volatile="false"
  3553. static="true" final="true" visibility="public"
  3554. deprecated="not deprecated">
  3555. </field>
  3556. <field name="ILLEGAL_ARGS" type="int"
  3557. transient="false" volatile="false"
  3558. static="true" final="true" visibility="public"
  3559. deprecated="not deprecated">
  3560. </field>
  3561. <doc>
  3562. <![CDATA[<p>The balancer is a tool that balances disk space usage on an HDFS cluster
  3563. when some datanodes become full or when new empty nodes join the cluster.
  3564. The tool is deployed as an application program that can be run by the
  3565. cluster administrator on a live HDFS cluster while applications
  3566. adding and deleting files.
  3567. <p>SYNOPSIS
  3568. <pre>
  3569. To start:
  3570. bin/start-balancer.sh [-threshold <threshold>]
  3571. Example: bin/ start-balancer.sh
  3572. start the balancer with a default threshold of 10%
  3573. bin/ start-balancer.sh -threshold 5
  3574. start the balancer with a threshold of 5%
  3575. To stop:
  3576. bin/ stop-balancer.sh
  3577. </pre>
  3578. <p>DESCRIPTION
  3579. <p>The threshold parameter is a fraction in the range of (0%, 100%) with a
  3580. default value of 10%. The threshold sets a target for whether the cluster
  3581. is balanced. A cluster is balanced if for each datanode, the utilization
  3582. of the node (ratio of used space at the node to total capacity of the node)
  3583. differs from the utilization of the (ratio of used space in the cluster
  3584. to total capacity of the cluster) by no more than the threshold value.
  3585. The smaller the threshold, the more balanced a cluster will become.
  3586. It takes more time to run the balancer for small threshold values.
  3587. Also for a very small threshold the cluster may not be able to reach the
  3588. balanced state when applications write and delete files concurrently.
  3589. <p>The tool moves blocks from highly utilized datanodes to poorly
  3590. utilized datanodes iteratively. In each iteration a datanode moves or
  3591. receives no more than the lesser of 10G bytes or the threshold fraction
  3592. of its capacity. Each iteration runs no more than 20 minutes.
  3593. At the end of each iteration, the balancer obtains updated datanodes
  3594. information from the namenode.
  3595. <p>A system property that limits the balancer's use of bandwidth is
  3596. defined in the default configuration file:
  3597. <pre>
  3598. <property>
  3599. <name>dfs.balance.bandwidthPerSec</name>
  3600. <value>1048576</value>
  3601. <description> Specifies the maximum bandwidth that each datanode
  3602. can utilize for the balancing purpose in term of the number of bytes
  3603. per second. </description>
  3604. </property>
  3605. </pre>
  3606. <p>This property determines the maximum speed at which a block will be
  3607. moved from one datanode to another. The default value is 1MB/s. The higher
  3608. the bandwidth, the faster a cluster can reach the balanced state,
  3609. but with greater competition with application processes. If an
  3610. administrator changes the value of this property in the configuration
  3611. file, the change is observed when HDFS is next restarted.
  3612. <p>MONITERING BALANCER PROGRESS
  3613. <p>After the balancer is started, an output file name where the balancer
  3614. progress will be recorded is printed on the screen. The administrator
  3615. can monitor the running of the balancer by reading the output file.
  3616. The output shows the balancer's status iteration by iteration. In each
  3617. iteration it prints the starting time, the iteration number, the total
  3618. number of bytes that have been moved in the previous iterations,
  3619. the total number of bytes that are left to move in order for the cluster
  3620. to be balanced, and the number of bytes that are being moved in this
  3621. iteration. Normally "Bytes Already Moved" is increasing while "Bytes Left
  3622. To Move" is decreasing.
  3623. <p>Running multiple instances of the balancer in an HDFS cluster is
  3624. prohibited by the tool.
  3625. <p>The balancer automatically exits when any of the following five
  3626. conditions is satisfied:
  3627. <ol>
  3628. <li>The cluster is balanced;
  3629. <li>No block can be moved;
  3630. <li>No block has been moved for five consecutive iterations;
  3631. <li>An IOException occurs while communicating with the namenode;
  3632. <li>Another balancer is running.
  3633. </ol>
  3634. <p>Upon exit, a balancer returns an exit code and prints one of the
  3635. following messages to the output file in corresponding to the above exit
  3636. reasons:
  3637. <ol>
  3638. <li>The cluster is balanced. Exiting
  3639. <li>No block can be moved. Exiting...
  3640. <li>No block has been moved for 3 iterations. Exiting...
  3641. <li>Received an IO exception: failure reason. Exiting...
  3642. <li>Another balancer is running. Exiting...
  3643. </ol>
  3644. <p>The administrator can interrupt the execution of the balancer at any
  3645. time by running the command "stop-balancer.sh" on the machine where the
  3646. balancer is running.]]>
  3647. </doc>
  3648. </class>
  3649. <!-- end class org.apache.hadoop.hdfs.server.balancer.Balancer -->
  3650. </package>
  3651. <package name="org.apache.hadoop.hdfs.server.common">
  3652. <!-- start class org.apache.hadoop.hdfs.server.common.GenerationStamp -->
  3653. <class name="GenerationStamp" extends="java.lang.Object"
  3654. abstract="false"
  3655. static="false" final="false" visibility="public"
  3656. deprecated="not deprecated">
  3657. <implements name="org.apache.hadoop.io.WritableComparable"/>
  3658. <constructor name="GenerationStamp"
  3659. static="false" final="false" visibility="public"
  3660. deprecated="not deprecated">
  3661. <doc>
  3662. <![CDATA[Create a new instance, initialized to FIRST_VALID_STAMP.]]>
  3663. </doc>
  3664. </constructor>
  3665. <method name="getStamp" return="long"
  3666. abstract="false" native="false" synchronized="false"
  3667. static="false" final="false" visibility="public"
  3668. deprecated="not deprecated">
  3669. <doc>
  3670. <![CDATA[Returns the current generation stamp]]>
  3671. </doc>
  3672. </method>
  3673. <method name="setStamp"
  3674. abstract="false" native="false" synchronized="false"
  3675. static="false" final="false" visibility="public"
  3676. deprecated="not deprecated">
  3677. <param name="stamp" type="long"/>
  3678. <doc>
  3679. <![CDATA[Sets the current generation stamp]]>
  3680. </doc>
  3681. </method>
  3682. <method name="nextStamp" return="long"
  3683. abstract="false" native="false" synchronized="true"
  3684. static="false" final="false" visibility="public"
  3685. deprecated="not deprecated">
  3686. <doc>
  3687. <![CDATA[First increments the counter and then returns the stamp]]>
  3688. </doc>
  3689. </method>
  3690. <method name="write"
  3691. abstract="false" native="false" synchronized="false"
  3692. static="false" final="false" visibility="public"
  3693. deprecated="not deprecated">
  3694. <param name="out" type="java.io.DataOutput"/>
  3695. <exception name="IOException" type="java.io.IOException"/>
  3696. </method>
  3697. <method name="readFields"
  3698. abstract="false" native="false" synchronized="false"
  3699. static="false" final="false" visibility="public"
  3700. deprecated="not deprecated">
  3701. <param name="in" type="java.io.DataInput"/>
  3702. <exception name="IOException" type="java.io.IOException"/>
  3703. </method>
  3704. <method name="compare" return="int"
  3705. abstract="false" native="false" synchronized="false"
  3706. static="true" final="false" visibility="public"
  3707. deprecated="not deprecated">
  3708. <param name="x" type="long"/>
  3709. <param name="y" type="long"/>
  3710. </method>
  3711. <method name="compareTo" return="int"
  3712. abstract="false" native="false" synchronized="false"
  3713. static="false" final="false" visibility="public"
  3714. deprecated="not deprecated">
  3715. <param name="that" type="org.apache.hadoop.hdfs.server.common.GenerationStamp"/>
  3716. <doc>
  3717. <![CDATA[{@inheritDoc}]]>
  3718. </doc>
  3719. </method>
  3720. <method name="equals" return="boolean"
  3721. abstract="false" native="false" synchronized="false"
  3722. static="false" final="false" visibility="public"
  3723. deprecated="not deprecated">
  3724. <param name="o" type="java.lang.Object"/>
  3725. <doc>
  3726. <![CDATA[{@inheritDoc}]]>
  3727. </doc>
  3728. </method>
  3729. <method name="equalsWithWildcard" return="boolean"
  3730. abstract="false" native="false" synchronized="false"
  3731. static="true" final="false" visibility="public"
  3732. deprecated="not deprecated">
  3733. <param name="x" type="long"/>
  3734. <param name="y" type="long"/>
  3735. </method>
  3736. <method name="hashCode" return="int"
  3737. abstract="false" native="false" synchronized="false"
  3738. static="false" final="false" visibility="public"
  3739. deprecated="not deprecated">
  3740. <doc>
  3741. <![CDATA[{@inheritDoc}]]>
  3742. </doc>
  3743. </method>
  3744. <field name="WILDCARD_STAMP" type="long"
  3745. transient="false" volatile="false"
  3746. static="true" final="true" visibility="public"
  3747. deprecated="not deprecated">
  3748. </field>
  3749. <field name="FIRST_VALID_STAMP" type="long"
  3750. transient="false" volatile="false"
  3751. static="true" final="true" visibility="public"
  3752. deprecated="not deprecated">
  3753. </field>
  3754. <doc>
  3755. <![CDATA[A GenerationStamp is a Hadoop FS primitive, identified by a long.]]>
  3756. </doc>
  3757. </class>
  3758. <!-- end class org.apache.hadoop.hdfs.server.common.GenerationStamp -->
  3759. <!-- start interface org.apache.hadoop.hdfs.server.common.HdfsConstants -->
  3760. <interface name="HdfsConstants" abstract="true"
  3761. static="false" final="false" visibility="public"
  3762. deprecated="not deprecated">
  3763. <field name="READ_TIMEOUT" type="int"
  3764. transient="false" volatile="false"
  3765. static="true" final="true" visibility="public"
  3766. deprecated="not deprecated">
  3767. </field>
  3768. <field name="WRITE_TIMEOUT" type="int"
  3769. transient="false" volatile="false"
  3770. static="true" final="true" visibility="public"
  3771. deprecated="not deprecated">
  3772. </field>
  3773. <field name="WRITE_TIMEOUT_EXTENSION" type="int"
  3774. transient="false" volatile="false"
  3775. static="true" final="true" visibility="public"
  3776. deprecated="not deprecated">
  3777. </field>
  3778. <doc>
  3779. <![CDATA[Some handy internal HDFS constants]]>
  3780. </doc>
  3781. </interface>
  3782. <!-- end interface org.apache.hadoop.hdfs.server.common.HdfsConstants -->
  3783. <!-- start class org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType -->
  3784. <class name="HdfsConstants.NodeType" extends="java.lang.Enum"
  3785. abstract="false"
  3786. static="true" final="true" visibility="public"
  3787. deprecated="not deprecated">
  3788. <method name="values" return="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType[]"
  3789. abstract="false" native="false" synchronized="false"
  3790. static="true" final="false" visibility="public"
  3791. deprecated="not deprecated">
  3792. </method>
  3793. <method name="valueOf" return="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"
  3794. abstract="false" native="false" synchronized="false"
  3795. static="true" final="false" visibility="public"
  3796. deprecated="not deprecated">
  3797. <param name="name" type="java.lang.String"/>
  3798. </method>
  3799. <field name="NAME_NODE" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"
  3800. transient="false" volatile="false"
  3801. static="true" final="true" visibility="public"
  3802. deprecated="not deprecated">
  3803. </field>
  3804. <field name="DATA_NODE" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"
  3805. transient="false" volatile="false"
  3806. static="true" final="true" visibility="public"
  3807. deprecated="not deprecated">
  3808. </field>
  3809. <doc>
  3810. <![CDATA[Type of the node]]>
  3811. </doc>
  3812. </class>
  3813. <!-- end class org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType -->
  3814. <!-- start class org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption -->
  3815. <class name="HdfsConstants.StartupOption" extends="java.lang.Enum"
  3816. abstract="false"
  3817. static="true" final="true" visibility="public"
  3818. deprecated="not deprecated">
  3819. <method name="values" return="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption[]"
  3820. abstract="false" native="false" synchronized="false"
  3821. static="true" final="false" visibility="public"
  3822. deprecated="not deprecated">
  3823. </method>
  3824. <method name="valueOf" return="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption"
  3825. abstract="false" native="false" synchronized="false"
  3826. static="true" final="false" visibility="public"
  3827. deprecated="not deprecated">
  3828. <param name="name" type="java.lang.String"/>
  3829. </method>
  3830. <method name="getName" return="java.lang.String"
  3831. abstract="false" native="false" synchronized="false"
  3832. static="false" final="false" visibility="public"
  3833. deprecated="not deprecated">
  3834. </method>
  3835. <field name="FORMAT" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption"
  3836. transient="false" volatile="false"
  3837. static="true" final="true" visibility="public"
  3838. deprecated="not deprecated">
  3839. </field>
  3840. <field name="REGULAR" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption"
  3841. transient="false" volatile="false"
  3842. static="true" final="true" visibility="public"
  3843. deprecated="not deprecated">
  3844. </field>
  3845. <field name="UPGRADE" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption"
  3846. transient="false" volatile="false"
  3847. static="true" final="true" visibility="public"
  3848. deprecated="not deprecated">
  3849. </field>
  3850. <field name="ROLLBACK" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption"
  3851. transient="false" volatile="false"
  3852. static="true" final="true" visibility="public"
  3853. deprecated="not deprecated">
  3854. </field>
  3855. <field name="FINALIZE" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption"
  3856. transient="false" volatile="false"
  3857. static="true" final="true" visibility="public"
  3858. deprecated="not deprecated">
  3859. </field>
  3860. <field name="IMPORT" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption"
  3861. transient="false" volatile="false"
  3862. static="true" final="true" visibility="public"
  3863. deprecated="not deprecated">
  3864. </field>
  3865. </class>
  3866. <!-- end class org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption -->
  3867. <!-- start class org.apache.hadoop.hdfs.server.common.InconsistentFSStateException -->
  3868. <class name="InconsistentFSStateException" extends="java.io.IOException"
  3869. abstract="false"
  3870. static="false" final="false" visibility="public"
  3871. deprecated="not deprecated">
  3872. <constructor name="InconsistentFSStateException" type="java.io.File, java.lang.String"
  3873. static="false" final="false" visibility="public"
  3874. deprecated="not deprecated">
  3875. </constructor>
  3876. <constructor name="InconsistentFSStateException" type="java.io.File, java.lang.String, java.lang.Throwable"
  3877. static="false" final="false" visibility="public"
  3878. deprecated="not deprecated">
  3879. </constructor>
  3880. <doc>
  3881. <![CDATA[The exception is thrown when file system state is inconsistent
  3882. and is not recoverable.]]>
  3883. </doc>
  3884. </class>
  3885. <!-- end class org.apache.hadoop.hdfs.server.common.InconsistentFSStateException -->
  3886. <!-- start class org.apache.hadoop.hdfs.server.common.IncorrectVersionException -->
  3887. <class name="IncorrectVersionException" extends="java.io.IOException"
  3888. abstract="false"
  3889. static="false" final="false" visibility="public"
  3890. deprecated="not deprecated">
  3891. <constructor name="IncorrectVersionException" type="int, java.lang.String"
  3892. static="false" final="false" visibility="public"
  3893. deprecated="not deprecated">
  3894. </constructor>
  3895. <constructor name="IncorrectVersionException" type="int, java.lang.String, int"
  3896. static="false" final="false" visibility="public"
  3897. deprecated="not deprecated">
  3898. </constructor>
  3899. <doc>
  3900. <![CDATA[The exception is thrown when external version does not match
  3901. current version of the appication.]]>
  3902. </doc>
  3903. </class>
  3904. <!-- end class org.apache.hadoop.hdfs.server.common.IncorrectVersionException -->
  3905. <!-- start class org.apache.hadoop.hdfs.server.common.Storage -->
  3906. <class name="Storage" extends="org.apache.hadoop.hdfs.server.common.StorageInfo"
  3907. abstract="true"
  3908. static="false" final="false" visibility="public"
  3909. deprecated="not deprecated">
  3910. <constructor name="Storage" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"
  3911. static="false" final="false" visibility="protected"
  3912. deprecated="not deprecated">
  3913. <doc>
  3914. <![CDATA[Create empty storage info of the specified type]]>
  3915. </doc>
  3916. </constructor>
  3917. <constructor name="Storage" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType, int, long"
  3918. static="false" final="false" visibility="protected"
  3919. deprecated="not deprecated">
  3920. </constructor>
  3921. <constructor name="Storage" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType, org.apache.hadoop.hdfs.server.common.StorageInfo"
  3922. static="false" final="false" visibility="protected"
  3923. deprecated="not deprecated">
  3924. </constructor>
  3925. <method name="dirIterator" return="java.util.Iterator"
  3926. abstract="false" native="false" synchronized="false"
  3927. static="false" final="false" visibility="public"
  3928. deprecated="not deprecated">
  3929. <doc>
  3930. <![CDATA[Return default iterator
  3931. This iterator returns all entires of storageDirs]]>
  3932. </doc>
  3933. </method>
  3934. <method name="dirIterator" return="java.util.Iterator"
  3935. abstract="false" native="false" synchronized="false"
  3936. static="false" final="false" visibility="public"
  3937. deprecated="not deprecated">
  3938. <param name="dirType" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirType"/>
  3939. <doc>
  3940. <![CDATA[Return iterator based on Storage Directory Type
  3941. This iterator selects entires of storageDirs of type dirType and returns
  3942. them via the Iterator]]>
  3943. </doc>
  3944. </method>
  3945. <method name="getNumStorageDirs" return="int"
  3946. abstract="false" native="false" synchronized="false"
  3947. static="false" final="false" visibility="public"
  3948. deprecated="not deprecated">
  3949. </method>
  3950. <method name="getStorageDir" return="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"
  3951. abstract="false" native="false" synchronized="false"
  3952. static="false" final="false" visibility="public"
  3953. deprecated="not deprecated">
  3954. <param name="idx" type="int"/>
  3955. </method>
  3956. <method name="addStorageDir"
  3957. abstract="false" native="false" synchronized="false"
  3958. static="false" final="false" visibility="protected"
  3959. deprecated="not deprecated">
  3960. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  3961. </method>
  3962. <method name="isConversionNeeded" return="boolean"
  3963. abstract="true" native="false" synchronized="false"
  3964. static="false" final="false" visibility="public"
  3965. deprecated="not deprecated">
  3966. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  3967. <exception name="IOException" type="java.io.IOException"/>
  3968. </method>
  3969. <method name="checkVersionUpgradable"
  3970. abstract="false" native="false" synchronized="false"
  3971. static="true" final="false" visibility="protected"
  3972. deprecated="not deprecated">
  3973. <param name="oldVersion" type="int"/>
  3974. <exception name="IOException" type="java.io.IOException"/>
  3975. <doc>
  3976. <![CDATA[Checks if the upgrade from the given old version is supported. If
  3977. no upgrade is supported, it throws IncorrectVersionException.
  3978. @param oldVersion]]>
  3979. </doc>
  3980. </method>
  3981. <method name="getFields"
  3982. abstract="false" native="false" synchronized="false"
  3983. static="false" final="false" visibility="protected"
  3984. deprecated="not deprecated">
  3985. <param name="props" type="java.util.Properties"/>
  3986. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  3987. <exception name="IOException" type="java.io.IOException"/>
  3988. <doc>
  3989. <![CDATA[Get common storage fields.
  3990. Should be overloaded if additional fields need to be get.
  3991. @param props
  3992. @throws IOException]]>
  3993. </doc>
  3994. </method>
  3995. <method name="setFields"
  3996. abstract="false" native="false" synchronized="false"
  3997. static="false" final="false" visibility="protected"
  3998. deprecated="not deprecated">
  3999. <param name="props" type="java.util.Properties"/>
  4000. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  4001. <exception name="IOException" type="java.io.IOException"/>
  4002. <doc>
  4003. <![CDATA[Set common storage fields.
  4004. Should be overloaded if additional fields need to be set.
  4005. @param props
  4006. @throws IOException]]>
  4007. </doc>
  4008. </method>
  4009. <method name="rename"
  4010. abstract="false" native="false" synchronized="false"
  4011. static="true" final="false" visibility="public"
  4012. deprecated="not deprecated">
  4013. <param name="from" type="java.io.File"/>
  4014. <param name="to" type="java.io.File"/>
  4015. <exception name="IOException" type="java.io.IOException"/>
  4016. </method>
  4017. <method name="deleteDir"
  4018. abstract="false" native="false" synchronized="false"
  4019. static="true" final="false" visibility="protected"
  4020. deprecated="not deprecated">
  4021. <param name="dir" type="java.io.File"/>
  4022. <exception name="IOException" type="java.io.IOException"/>
  4023. </method>
  4024. <method name="writeAll"
  4025. abstract="false" native="false" synchronized="false"
  4026. static="false" final="false" visibility="public"
  4027. deprecated="not deprecated">
  4028. <exception name="IOException" type="java.io.IOException"/>
  4029. <doc>
  4030. <![CDATA[Write all data storage files.
  4031. @throws IOException]]>
  4032. </doc>
  4033. </method>
  4034. <method name="unlockAll"
  4035. abstract="false" native="false" synchronized="false"
  4036. static="false" final="false" visibility="public"
  4037. deprecated="not deprecated">
  4038. <exception name="IOException" type="java.io.IOException"/>
  4039. <doc>
  4040. <![CDATA[Unlock all storage directories.
  4041. @throws IOException]]>
  4042. </doc>
  4043. </method>
  4044. <method name="isLockSupported" return="boolean"
  4045. abstract="false" native="false" synchronized="false"
  4046. static="false" final="false" visibility="public"
  4047. deprecated="not deprecated">
  4048. <param name="idx" type="int"/>
  4049. <exception name="IOException" type="java.io.IOException"/>
  4050. <doc>
  4051. <![CDATA[Check whether underlying file system supports file locking.
  4052. @return <code>true</code> if exclusive locks are supported or
  4053. <code>false</code> otherwise.
  4054. @throws IOException
  4055. @see StorageDirectory#lock()]]>
  4056. </doc>
  4057. </method>
  4058. <method name="getBuildVersion" return="java.lang.String"
  4059. abstract="false" native="false" synchronized="false"
  4060. static="true" final="false" visibility="public"
  4061. deprecated="not deprecated">
  4062. </method>
  4063. <method name="getRegistrationID" return="java.lang.String"
  4064. abstract="false" native="false" synchronized="false"
  4065. static="true" final="false" visibility="public"
  4066. deprecated="not deprecated">
  4067. <param name="storage" type="org.apache.hadoop.hdfs.server.common.StorageInfo"/>
  4068. </method>
  4069. <method name="corruptPreUpgradeStorage"
  4070. abstract="true" native="false" synchronized="false"
  4071. static="false" final="false" visibility="protected"
  4072. deprecated="not deprecated">
  4073. <param name="rootDir" type="java.io.File"/>
  4074. <exception name="IOException" type="java.io.IOException"/>
  4075. </method>
  4076. <method name="writeCorruptedData"
  4077. abstract="false" native="false" synchronized="false"
  4078. static="false" final="false" visibility="protected"
  4079. deprecated="not deprecated">
  4080. <param name="file" type="java.io.RandomAccessFile"/>
  4081. <exception name="IOException" type="java.io.IOException"/>
  4082. </method>
  4083. <field name="LOG" type="org.apache.commons.logging.Log"
  4084. transient="false" volatile="false"
  4085. static="true" final="true" visibility="public"
  4086. deprecated="not deprecated">
  4087. </field>
  4088. <field name="LAST_PRE_UPGRADE_LAYOUT_VERSION" type="int"
  4089. transient="false" volatile="false"
  4090. static="true" final="true" visibility="protected"
  4091. deprecated="not deprecated">
  4092. </field>
  4093. <field name="LAST_UPGRADABLE_LAYOUT_VERSION" type="int"
  4094. transient="false" volatile="false"
  4095. static="true" final="true" visibility="public"
  4096. deprecated="not deprecated">
  4097. </field>
  4098. <field name="LAST_UPGRADABLE_HADOOP_VERSION" type="java.lang.String"
  4099. transient="false" volatile="false"
  4100. static="true" final="true" visibility="protected"
  4101. deprecated="not deprecated">
  4102. </field>
  4103. <field name="PRE_GENERATIONSTAMP_LAYOUT_VERSION" type="int"
  4104. transient="false" volatile="false"
  4105. static="true" final="true" visibility="public"
  4106. deprecated="not deprecated">
  4107. </field>
  4108. <field name="STORAGE_FILE_VERSION" type="java.lang.String"
  4109. transient="false" volatile="false"
  4110. static="true" final="true" visibility="protected"
  4111. deprecated="not deprecated">
  4112. </field>
  4113. <field name="STORAGE_DIR_CURRENT" type="java.lang.String"
  4114. transient="false" volatile="false"
  4115. static="true" final="true" visibility="public"
  4116. deprecated="not deprecated">
  4117. </field>
  4118. <field name="storageDirs" type="java.util.List"
  4119. transient="false" volatile="false"
  4120. static="false" final="false" visibility="protected"
  4121. deprecated="not deprecated">
  4122. </field>
  4123. <doc>
  4124. <![CDATA[Storage information file.
  4125. <p>
  4126. Local storage information is stored in a separate file VERSION.
  4127. It contains type of the node,
  4128. the storage layout version, the namespace id, and
  4129. the fs state creation time.
  4130. <p>
  4131. Local storage can reside in multiple directories.
  4132. Each directory should contain the same VERSION file as the others.
  4133. During startup Hadoop servers (name-node and data-nodes) read their local
  4134. storage information from them.
  4135. <p>
  4136. The servers hold a lock for each storage directory while they run so that
  4137. other nodes were not able to startup sharing the same storage.
  4138. The locks are released when the servers stop (normally or abnormally).]]>
  4139. </doc>
  4140. </class>
  4141. <!-- end class org.apache.hadoop.hdfs.server.common.Storage -->
  4142. <!-- start class org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory -->
  4143. <class name="Storage.StorageDirectory" extends="java.lang.Object"
  4144. abstract="false"
  4145. static="false" final="false" visibility="public"
  4146. deprecated="not deprecated">
  4147. <constructor name="Storage.StorageDirectory" type="java.io.File"
  4148. static="false" final="false" visibility="public"
  4149. deprecated="not deprecated">
  4150. </constructor>
  4151. <constructor name="Storage.StorageDirectory" type="java.io.File, org.apache.hadoop.hdfs.server.common.Storage.StorageDirType"
  4152. static="false" final="false" visibility="public"
  4153. deprecated="not deprecated">
  4154. </constructor>
  4155. <method name="getRoot" return="java.io.File"
  4156. abstract="false" native="false" synchronized="false"
  4157. static="false" final="false" visibility="public"
  4158. deprecated="not deprecated">
  4159. <doc>
  4160. <![CDATA[Get root directory of this storage]]>
  4161. </doc>
  4162. </method>
  4163. <method name="getStorageDirType" return="org.apache.hadoop.hdfs.server.common.Storage.StorageDirType"
  4164. abstract="false" native="false" synchronized="false"
  4165. static="false" final="false" visibility="public"
  4166. deprecated="not deprecated">
  4167. <doc>
  4168. <![CDATA[Get storage directory type]]>
  4169. </doc>
  4170. </method>
  4171. <method name="read"
  4172. abstract="false" native="false" synchronized="false"
  4173. static="false" final="false" visibility="public"
  4174. deprecated="not deprecated">
  4175. <exception name="IOException" type="java.io.IOException"/>
  4176. <doc>
  4177. <![CDATA[Read version file.
  4178. @throws IOException if file cannot be read or contains inconsistent data]]>
  4179. </doc>
  4180. </method>
  4181. <method name="read"
  4182. abstract="false" native="false" synchronized="false"
  4183. static="false" final="false" visibility="public"
  4184. deprecated="not deprecated">
  4185. <param name="from" type="java.io.File"/>
  4186. <exception name="IOException" type="java.io.IOException"/>
  4187. </method>
  4188. <method name="write"
  4189. abstract="false" native="false" synchronized="false"
  4190. static="false" final="false" visibility="public"
  4191. deprecated="not deprecated">
  4192. <exception name="IOException" type="java.io.IOException"/>
  4193. <doc>
  4194. <![CDATA[Write version file.
  4195. @throws IOException]]>
  4196. </doc>
  4197. </method>
  4198. <method name="write"
  4199. abstract="false" native="false" synchronized="false"
  4200. static="false" final="false" visibility="public"
  4201. deprecated="not deprecated">
  4202. <param name="to" type="java.io.File"/>
  4203. <exception name="IOException" type="java.io.IOException"/>
  4204. </method>
  4205. <method name="clearDirectory"
  4206. abstract="false" native="false" synchronized="false"
  4207. static="false" final="false" visibility="public"
  4208. deprecated="not deprecated">
  4209. <exception name="IOException" type="java.io.IOException"/>
  4210. <doc>
  4211. <![CDATA[Clear and re-create storage directory.
  4212. <p>
  4213. Removes contents of the current directory and creates an empty directory.
  4214. This does not fully format storage directory.
  4215. It cannot write the version file since it should be written last after
  4216. all other storage type dependent files are written.
  4217. Derived storage is responsible for setting specific storage values and
  4218. writing the version file to disk.
  4219. @throws IOException]]>
  4220. </doc>
  4221. </method>
  4222. <method name="getCurrentDir" return="java.io.File"
  4223. abstract="false" native="false" synchronized="false"
  4224. static="false" final="false" visibility="public"
  4225. deprecated="not deprecated">
  4226. </method>
  4227. <method name="getVersionFile" return="java.io.File"
  4228. abstract="false" native="false" synchronized="false"
  4229. static="false" final="false" visibility="public"
  4230. deprecated="not deprecated">
  4231. </method>
  4232. <method name="getPreviousVersionFile" return="java.io.File"
  4233. abstract="false" native="false" synchronized="false"
  4234. static="false" final="false" visibility="public"
  4235. deprecated="not deprecated">
  4236. </method>
  4237. <method name="getPreviousDir" return="java.io.File"
  4238. abstract="false" native="false" synchronized="false"
  4239. static="false" final="false" visibility="public"
  4240. deprecated="not deprecated">
  4241. </method>
  4242. <method name="getPreviousTmp" return="java.io.File"
  4243. abstract="false" native="false" synchronized="false"
  4244. static="false" final="false" visibility="public"
  4245. deprecated="not deprecated">
  4246. </method>
  4247. <method name="getRemovedTmp" return="java.io.File"
  4248. abstract="false" native="false" synchronized="false"
  4249. static="false" final="false" visibility="public"
  4250. deprecated="not deprecated">
  4251. </method>
  4252. <method name="getFinalizedTmp" return="java.io.File"
  4253. abstract="false" native="false" synchronized="false"
  4254. static="false" final="false" visibility="public"
  4255. deprecated="not deprecated">
  4256. </method>
  4257. <method name="getLastCheckpointTmp" return="java.io.File"
  4258. abstract="false" native="false" synchronized="false"
  4259. static="false" final="false" visibility="public"
  4260. deprecated="not deprecated">
  4261. </method>
  4262. <method name="getPreviousCheckpoint" return="java.io.File"
  4263. abstract="false" native="false" synchronized="false"
  4264. static="false" final="false" visibility="public"
  4265. deprecated="not deprecated">
  4266. </method>
  4267. <method name="analyzeStorage" return="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4268. abstract="false" native="false" synchronized="false"
  4269. static="false" final="false" visibility="public"
  4270. deprecated="not deprecated">
  4271. <param name="startOpt" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.StartupOption"/>
  4272. <exception name="IOException" type="java.io.IOException"/>
  4273. <doc>
  4274. <![CDATA[Check consistency of the storage directory
  4275. @param startOpt a startup option.
  4276. @return state {@link StorageState} of the storage directory
  4277. @throws {@link InconsistentFSStateException} if directory state is not
  4278. consistent and cannot be recovered]]>
  4279. </doc>
  4280. </method>
  4281. <method name="doRecover"
  4282. abstract="false" native="false" synchronized="false"
  4283. static="false" final="false" visibility="public"
  4284. deprecated="not deprecated">
  4285. <param name="curState" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"/>
  4286. <exception name="IOException" type="java.io.IOException"/>
  4287. <doc>
  4288. <![CDATA[Complete or recover storage state from previously failed transition.
  4289. @param curState specifies what/how the state should be recovered
  4290. @throws IOException]]>
  4291. </doc>
  4292. </method>
  4293. <method name="lock"
  4294. abstract="false" native="false" synchronized="false"
  4295. static="false" final="false" visibility="public"
  4296. deprecated="not deprecated">
  4297. <exception name="IOException" type="java.io.IOException"/>
  4298. <doc>
  4299. <![CDATA[Lock storage to provide exclusive access.
  4300. <p> Locking is not supported by all file systems.
  4301. E.g., NFS does not consistently support exclusive locks.
  4302. <p> If locking is supported we guarantee exculsive access to the
  4303. storage directory. Otherwise, no guarantee is given.
  4304. @throws IOException if locking fails]]>
  4305. </doc>
  4306. </method>
  4307. <method name="unlock"
  4308. abstract="false" native="false" synchronized="false"
  4309. static="false" final="false" visibility="public"
  4310. deprecated="not deprecated">
  4311. <exception name="IOException" type="java.io.IOException"/>
  4312. <doc>
  4313. <![CDATA[Unlock storage.
  4314. @throws IOException]]>
  4315. </doc>
  4316. </method>
  4317. <doc>
  4318. <![CDATA[One of the storage directories.]]>
  4319. </doc>
  4320. </class>
  4321. <!-- end class org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory -->
  4322. <!-- start interface org.apache.hadoop.hdfs.server.common.Storage.StorageDirType -->
  4323. <interface name="Storage.StorageDirType" abstract="true"
  4324. static="true" final="false" visibility="public"
  4325. deprecated="not deprecated">
  4326. <method name="getStorageDirType" return="org.apache.hadoop.hdfs.server.common.Storage.StorageDirType"
  4327. abstract="false" native="false" synchronized="false"
  4328. static="false" final="false" visibility="public"
  4329. deprecated="not deprecated">
  4330. </method>
  4331. <method name="isOfType" return="boolean"
  4332. abstract="false" native="false" synchronized="false"
  4333. static="false" final="false" visibility="public"
  4334. deprecated="not deprecated">
  4335. <param name="type" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirType"/>
  4336. </method>
  4337. <doc>
  4338. <![CDATA[An interface to denote storage directory type
  4339. Implementations can define a type for storage directory by implementing
  4340. this interface.]]>
  4341. </doc>
  4342. </interface>
  4343. <!-- end interface org.apache.hadoop.hdfs.server.common.Storage.StorageDirType -->
  4344. <!-- start class org.apache.hadoop.hdfs.server.common.Storage.StorageState -->
  4345. <class name="Storage.StorageState" extends="java.lang.Enum"
  4346. abstract="false"
  4347. static="true" final="true" visibility="public"
  4348. deprecated="not deprecated">
  4349. <method name="values" return="org.apache.hadoop.hdfs.server.common.Storage.StorageState[]"
  4350. abstract="false" native="false" synchronized="false"
  4351. static="true" final="false" visibility="public"
  4352. deprecated="not deprecated">
  4353. </method>
  4354. <method name="valueOf" return="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4355. abstract="false" native="false" synchronized="false"
  4356. static="true" final="false" visibility="public"
  4357. deprecated="not deprecated">
  4358. <param name="name" type="java.lang.String"/>
  4359. </method>
  4360. <field name="NON_EXISTENT" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4361. transient="false" volatile="false"
  4362. static="true" final="true" visibility="public"
  4363. deprecated="not deprecated">
  4364. </field>
  4365. <field name="NOT_FORMATTED" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4366. transient="false" volatile="false"
  4367. static="true" final="true" visibility="public"
  4368. deprecated="not deprecated">
  4369. </field>
  4370. <field name="COMPLETE_UPGRADE" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4371. transient="false" volatile="false"
  4372. static="true" final="true" visibility="public"
  4373. deprecated="not deprecated">
  4374. </field>
  4375. <field name="RECOVER_UPGRADE" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4376. transient="false" volatile="false"
  4377. static="true" final="true" visibility="public"
  4378. deprecated="not deprecated">
  4379. </field>
  4380. <field name="COMPLETE_FINALIZE" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4381. transient="false" volatile="false"
  4382. static="true" final="true" visibility="public"
  4383. deprecated="not deprecated">
  4384. </field>
  4385. <field name="COMPLETE_ROLLBACK" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4386. transient="false" volatile="false"
  4387. static="true" final="true" visibility="public"
  4388. deprecated="not deprecated">
  4389. </field>
  4390. <field name="RECOVER_ROLLBACK" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4391. transient="false" volatile="false"
  4392. static="true" final="true" visibility="public"
  4393. deprecated="not deprecated">
  4394. </field>
  4395. <field name="COMPLETE_CHECKPOINT" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4396. transient="false" volatile="false"
  4397. static="true" final="true" visibility="public"
  4398. deprecated="not deprecated">
  4399. </field>
  4400. <field name="RECOVER_CHECKPOINT" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4401. transient="false" volatile="false"
  4402. static="true" final="true" visibility="public"
  4403. deprecated="not deprecated">
  4404. </field>
  4405. <field name="NORMAL" type="org.apache.hadoop.hdfs.server.common.Storage.StorageState"
  4406. transient="false" volatile="false"
  4407. static="true" final="true" visibility="public"
  4408. deprecated="not deprecated">
  4409. </field>
  4410. </class>
  4411. <!-- end class org.apache.hadoop.hdfs.server.common.Storage.StorageState -->
  4412. <!-- start class org.apache.hadoop.hdfs.server.common.StorageInfo -->
  4413. <class name="StorageInfo" extends="java.lang.Object"
  4414. abstract="false"
  4415. static="false" final="false" visibility="public"
  4416. deprecated="not deprecated">
  4417. <constructor name="StorageInfo"
  4418. static="false" final="false" visibility="public"
  4419. deprecated="not deprecated">
  4420. </constructor>
  4421. <constructor name="StorageInfo" type="int, int, long"
  4422. static="false" final="false" visibility="public"
  4423. deprecated="not deprecated">
  4424. </constructor>
  4425. <constructor name="StorageInfo" type="org.apache.hadoop.hdfs.server.common.StorageInfo"
  4426. static="false" final="false" visibility="public"
  4427. deprecated="not deprecated">
  4428. </constructor>
  4429. <method name="getLayoutVersion" return="int"
  4430. abstract="false" native="false" synchronized="false"
  4431. static="false" final="false" visibility="public"
  4432. deprecated="not deprecated">
  4433. </method>
  4434. <method name="getNamespaceID" return="int"
  4435. abstract="false" native="false" synchronized="false"
  4436. static="false" final="false" visibility="public"
  4437. deprecated="not deprecated">
  4438. </method>
  4439. <method name="getCTime" return="long"
  4440. abstract="false" native="false" synchronized="false"
  4441. static="false" final="false" visibility="public"
  4442. deprecated="not deprecated">
  4443. </method>
  4444. <method name="setStorageInfo"
  4445. abstract="false" native="false" synchronized="false"
  4446. static="false" final="false" visibility="public"
  4447. deprecated="not deprecated">
  4448. <param name="from" type="org.apache.hadoop.hdfs.server.common.StorageInfo"/>
  4449. </method>
  4450. <field name="layoutVersion" type="int"
  4451. transient="false" volatile="false"
  4452. static="false" final="false" visibility="public"
  4453. deprecated="not deprecated">
  4454. </field>
  4455. <field name="namespaceID" type="int"
  4456. transient="false" volatile="false"
  4457. static="false" final="false" visibility="public"
  4458. deprecated="not deprecated">
  4459. </field>
  4460. <field name="cTime" type="long"
  4461. transient="false" volatile="false"
  4462. static="false" final="false" visibility="public"
  4463. deprecated="not deprecated">
  4464. </field>
  4465. <doc>
  4466. <![CDATA[Common class for storage information.
  4467. TODO namespaceID should be long and computed as hash(address + port)]]>
  4468. </doc>
  4469. </class>
  4470. <!-- end class org.apache.hadoop.hdfs.server.common.StorageInfo -->
  4471. <!-- start interface org.apache.hadoop.hdfs.server.common.Upgradeable -->
  4472. <interface name="Upgradeable" abstract="true"
  4473. static="false" final="false" visibility="public"
  4474. deprecated="not deprecated">
  4475. <implements name="java.lang.Comparable"/>
  4476. <method name="getVersion" return="int"
  4477. abstract="false" native="false" synchronized="false"
  4478. static="false" final="false" visibility="public"
  4479. deprecated="not deprecated">
  4480. <doc>
  4481. <![CDATA[Get the layout version of the upgrade object.
  4482. @return layout version]]>
  4483. </doc>
  4484. </method>
  4485. <method name="getType" return="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"
  4486. abstract="false" native="false" synchronized="false"
  4487. static="false" final="false" visibility="public"
  4488. deprecated="not deprecated">
  4489. <doc>
  4490. <![CDATA[Get the type of the software component, which this object is upgrading.
  4491. @return type]]>
  4492. </doc>
  4493. </method>
  4494. <method name="getDescription" return="java.lang.String"
  4495. abstract="false" native="false" synchronized="false"
  4496. static="false" final="false" visibility="public"
  4497. deprecated="not deprecated">
  4498. <doc>
  4499. <![CDATA[Description of the upgrade object for displaying.
  4500. @return description]]>
  4501. </doc>
  4502. </method>
  4503. <method name="getUpgradeStatus" return="short"
  4504. abstract="false" native="false" synchronized="false"
  4505. static="false" final="false" visibility="public"
  4506. deprecated="not deprecated">
  4507. <doc>
  4508. <![CDATA[Upgrade status determines a percentage of the work done out of the total
  4509. amount required by the upgrade.
  4510. 100% means that the upgrade is completed.
  4511. Any value < 100 means it is not complete.
  4512. The return value should provide at least 2 values, e.g. 0 and 100.
  4513. @return integer value in the range [0, 100].]]>
  4514. </doc>
  4515. </method>
  4516. <method name="startUpgrade" return="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  4517. abstract="false" native="false" synchronized="false"
  4518. static="false" final="false" visibility="public"
  4519. deprecated="not deprecated">
  4520. <exception name="IOException" type="java.io.IOException"/>
  4521. <doc>
  4522. <![CDATA[Prepare for the upgrade.
  4523. E.g. initialize upgrade data structures and set status to 0.
  4524. Returns an upgrade command that is used for broadcasting to other cluster
  4525. components.
  4526. E.g. name-node informs data-nodes that they must perform a distributed upgrade.
  4527. @return an UpgradeCommand for broadcasting.
  4528. @throws IOException]]>
  4529. </doc>
  4530. </method>
  4531. <method name="completeUpgrade" return="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  4532. abstract="false" native="false" synchronized="false"
  4533. static="false" final="false" visibility="public"
  4534. deprecated="not deprecated">
  4535. <exception name="IOException" type="java.io.IOException"/>
  4536. <doc>
  4537. <![CDATA[Complete upgrade.
  4538. E.g. cleanup upgrade data structures or write metadata to disk.
  4539. Returns an upgrade command that is used for broadcasting to other cluster
  4540. components.
  4541. E.g. data-nodes inform the name-node that they completed the upgrade
  4542. while other data-nodes are still upgrading.
  4543. @throws IOException]]>
  4544. </doc>
  4545. </method>
  4546. <method name="getUpgradeStatusReport" return="org.apache.hadoop.hdfs.server.common.UpgradeStatusReport"
  4547. abstract="false" native="false" synchronized="false"
  4548. static="false" final="false" visibility="public"
  4549. deprecated="not deprecated">
  4550. <param name="details" type="boolean"/>
  4551. <exception name="IOException" type="java.io.IOException"/>
  4552. <doc>
  4553. <![CDATA[Get status report for the upgrade.
  4554. @param details true if upgradeStatus details need to be included,
  4555. false otherwise
  4556. @return {@link UpgradeStatusReport}
  4557. @throws IOException]]>
  4558. </doc>
  4559. </method>
  4560. <doc>
  4561. <![CDATA[Common interface for distributed upgrade objects.
  4562. Each upgrade object corresponds to a layout version,
  4563. which is the latest version that should be upgraded using this object.
  4564. That is all components whose layout version is greater or equal to the
  4565. one returned by {@link #getVersion()} must be upgraded with this object.]]>
  4566. </doc>
  4567. </interface>
  4568. <!-- end interface org.apache.hadoop.hdfs.server.common.Upgradeable -->
  4569. <!-- start class org.apache.hadoop.hdfs.server.common.UpgradeManager -->
  4570. <class name="UpgradeManager" extends="java.lang.Object"
  4571. abstract="true"
  4572. static="false" final="false" visibility="public"
  4573. deprecated="not deprecated">
  4574. <constructor name="UpgradeManager"
  4575. static="false" final="false" visibility="public"
  4576. deprecated="not deprecated">
  4577. </constructor>
  4578. <method name="getBroadcastCommand" return="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  4579. abstract="false" native="false" synchronized="true"
  4580. static="false" final="false" visibility="public"
  4581. deprecated="not deprecated">
  4582. </method>
  4583. <method name="getUpgradeState" return="boolean"
  4584. abstract="false" native="false" synchronized="false"
  4585. static="false" final="false" visibility="public"
  4586. deprecated="not deprecated">
  4587. </method>
  4588. <method name="getUpgradeVersion" return="int"
  4589. abstract="false" native="false" synchronized="false"
  4590. static="false" final="false" visibility="public"
  4591. deprecated="not deprecated">
  4592. </method>
  4593. <method name="setUpgradeState"
  4594. abstract="false" native="false" synchronized="false"
  4595. static="false" final="false" visibility="public"
  4596. deprecated="not deprecated">
  4597. <param name="uState" type="boolean"/>
  4598. <param name="uVersion" type="int"/>
  4599. </method>
  4600. <method name="getDistributedUpgrades" return="java.util.SortedSet"
  4601. abstract="false" native="false" synchronized="false"
  4602. static="false" final="false" visibility="public"
  4603. deprecated="not deprecated">
  4604. <exception name="IOException" type="java.io.IOException"/>
  4605. </method>
  4606. <method name="getUpgradeStatus" return="short"
  4607. abstract="false" native="false" synchronized="false"
  4608. static="false" final="false" visibility="public"
  4609. deprecated="not deprecated">
  4610. </method>
  4611. <method name="initializeUpgrade" return="boolean"
  4612. abstract="false" native="false" synchronized="false"
  4613. static="false" final="false" visibility="public"
  4614. deprecated="not deprecated">
  4615. <exception name="IOException" type="java.io.IOException"/>
  4616. </method>
  4617. <method name="isUpgradeCompleted" return="boolean"
  4618. abstract="false" native="false" synchronized="false"
  4619. static="false" final="false" visibility="public"
  4620. deprecated="not deprecated">
  4621. </method>
  4622. <method name="getType" return="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"
  4623. abstract="true" native="false" synchronized="false"
  4624. static="false" final="false" visibility="public"
  4625. deprecated="not deprecated">
  4626. </method>
  4627. <method name="startUpgrade" return="boolean"
  4628. abstract="true" native="false" synchronized="false"
  4629. static="false" final="false" visibility="public"
  4630. deprecated="not deprecated">
  4631. <exception name="IOException" type="java.io.IOException"/>
  4632. </method>
  4633. <method name="completeUpgrade"
  4634. abstract="true" native="false" synchronized="false"
  4635. static="false" final="false" visibility="public"
  4636. deprecated="not deprecated">
  4637. <exception name="IOException" type="java.io.IOException"/>
  4638. </method>
  4639. <field name="currentUpgrades" type="java.util.SortedSet"
  4640. transient="false" volatile="false"
  4641. static="false" final="false" visibility="protected"
  4642. deprecated="not deprecated">
  4643. </field>
  4644. <field name="upgradeState" type="boolean"
  4645. transient="false" volatile="false"
  4646. static="false" final="false" visibility="protected"
  4647. deprecated="not deprecated">
  4648. </field>
  4649. <field name="upgradeVersion" type="int"
  4650. transient="false" volatile="false"
  4651. static="false" final="false" visibility="protected"
  4652. deprecated="not deprecated">
  4653. </field>
  4654. <field name="broadcastCommand" type="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  4655. transient="false" volatile="false"
  4656. static="false" final="false" visibility="protected"
  4657. deprecated="not deprecated">
  4658. </field>
  4659. <doc>
  4660. <![CDATA[Generic upgrade manager.
  4661. {@link #broadcastCommand} is the command that should be]]>
  4662. </doc>
  4663. </class>
  4664. <!-- end class org.apache.hadoop.hdfs.server.common.UpgradeManager -->
  4665. <!-- start class org.apache.hadoop.hdfs.server.common.UpgradeObject -->
  4666. <class name="UpgradeObject" extends="java.lang.Object"
  4667. abstract="true"
  4668. static="false" final="false" visibility="public"
  4669. deprecated="not deprecated">
  4670. <implements name="org.apache.hadoop.hdfs.server.common.Upgradeable"/>
  4671. <constructor name="UpgradeObject"
  4672. static="false" final="false" visibility="public"
  4673. deprecated="not deprecated">
  4674. </constructor>
  4675. <method name="getUpgradeStatus" return="short"
  4676. abstract="false" native="false" synchronized="false"
  4677. static="false" final="false" visibility="public"
  4678. deprecated="not deprecated">
  4679. </method>
  4680. <method name="getDescription" return="java.lang.String"
  4681. abstract="false" native="false" synchronized="false"
  4682. static="false" final="false" visibility="public"
  4683. deprecated="not deprecated">
  4684. </method>
  4685. <method name="getUpgradeStatusReport" return="org.apache.hadoop.hdfs.server.common.UpgradeStatusReport"
  4686. abstract="false" native="false" synchronized="false"
  4687. static="false" final="false" visibility="public"
  4688. deprecated="not deprecated">
  4689. <param name="details" type="boolean"/>
  4690. <exception name="IOException" type="java.io.IOException"/>
  4691. </method>
  4692. <method name="compareTo" return="int"
  4693. abstract="false" native="false" synchronized="false"
  4694. static="false" final="false" visibility="public"
  4695. deprecated="not deprecated">
  4696. <param name="o" type="org.apache.hadoop.hdfs.server.common.Upgradeable"/>
  4697. </method>
  4698. <method name="equals" return="boolean"
  4699. abstract="false" native="false" synchronized="false"
  4700. static="false" final="false" visibility="public"
  4701. deprecated="not deprecated">
  4702. <param name="o" type="java.lang.Object"/>
  4703. </method>
  4704. <method name="hashCode" return="int"
  4705. abstract="false" native="false" synchronized="false"
  4706. static="false" final="false" visibility="public"
  4707. deprecated="not deprecated">
  4708. </method>
  4709. <field name="status" type="short"
  4710. transient="false" volatile="false"
  4711. static="false" final="false" visibility="protected"
  4712. deprecated="not deprecated">
  4713. </field>
  4714. <doc>
  4715. <![CDATA[Abstract upgrade object.
  4716. Contains default implementation of common methods of {@link Upgradeable}
  4717. interface.]]>
  4718. </doc>
  4719. </class>
  4720. <!-- end class org.apache.hadoop.hdfs.server.common.UpgradeObject -->
  4721. <!-- start class org.apache.hadoop.hdfs.server.common.UpgradeObjectCollection -->
  4722. <class name="UpgradeObjectCollection" extends="java.lang.Object"
  4723. abstract="false"
  4724. static="false" final="false" visibility="public"
  4725. deprecated="not deprecated">
  4726. <constructor name="UpgradeObjectCollection"
  4727. static="false" final="false" visibility="public"
  4728. deprecated="not deprecated">
  4729. </constructor>
  4730. <method name="getDistributedUpgrades" return="java.util.SortedSet"
  4731. abstract="false" native="false" synchronized="false"
  4732. static="true" final="false" visibility="public"
  4733. deprecated="not deprecated">
  4734. <param name="versionFrom" type="int"/>
  4735. <param name="type" type="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"/>
  4736. <exception name="IOException" type="java.io.IOException"/>
  4737. </method>
  4738. <doc>
  4739. <![CDATA[Collection of upgrade objects.
  4740. Upgrade objects should be registered here before they can be used.]]>
  4741. </doc>
  4742. </class>
  4743. <!-- end class org.apache.hadoop.hdfs.server.common.UpgradeObjectCollection -->
  4744. <!-- start class org.apache.hadoop.hdfs.server.common.UpgradeStatusReport -->
  4745. <class name="UpgradeStatusReport" extends="java.lang.Object"
  4746. abstract="false"
  4747. static="false" final="false" visibility="public"
  4748. deprecated="not deprecated">
  4749. <implements name="org.apache.hadoop.io.Writable"/>
  4750. <constructor name="UpgradeStatusReport"
  4751. static="false" final="false" visibility="public"
  4752. deprecated="not deprecated">
  4753. </constructor>
  4754. <constructor name="UpgradeStatusReport" type="int, short, boolean"
  4755. static="false" final="false" visibility="public"
  4756. deprecated="not deprecated">
  4757. </constructor>
  4758. <method name="getVersion" return="int"
  4759. abstract="false" native="false" synchronized="false"
  4760. static="false" final="false" visibility="public"
  4761. deprecated="not deprecated">
  4762. <doc>
  4763. <![CDATA[Get the layout version of the currently running upgrade.
  4764. @return layout version]]>
  4765. </doc>
  4766. </method>
  4767. <method name="getUpgradeStatus" return="short"
  4768. abstract="false" native="false" synchronized="false"
  4769. static="false" final="false" visibility="public"
  4770. deprecated="not deprecated">
  4771. <doc>
  4772. <![CDATA[Get upgrade upgradeStatus as a percentage of the total upgrade done.
  4773. @see Upgradeable#getUpgradeStatus()]]>
  4774. </doc>
  4775. </method>
  4776. <method name="isFinalized" return="boolean"
  4777. abstract="false" native="false" synchronized="false"
  4778. static="false" final="false" visibility="public"
  4779. deprecated="not deprecated">
  4780. <doc>
  4781. <![CDATA[Is current upgrade finalized.
  4782. @return true if finalized or false otherwise.]]>
  4783. </doc>
  4784. </method>
  4785. <method name="getStatusText" return="java.lang.String"
  4786. abstract="false" native="false" synchronized="false"
  4787. static="false" final="false" visibility="public"
  4788. deprecated="not deprecated">
  4789. <param name="details" type="boolean"/>
  4790. <doc>
  4791. <![CDATA[Get upgradeStatus data as a text for reporting.
  4792. Should be overloaded for a particular upgrade specific upgradeStatus data.
  4793. @param details true if upgradeStatus details need to be included,
  4794. false otherwise
  4795. @return text]]>
  4796. </doc>
  4797. </method>
  4798. <method name="toString" return="java.lang.String"
  4799. abstract="false" native="false" synchronized="false"
  4800. static="false" final="false" visibility="public"
  4801. deprecated="not deprecated">
  4802. <doc>
  4803. <![CDATA[Print basic upgradeStatus details.]]>
  4804. </doc>
  4805. </method>
  4806. <method name="write"
  4807. abstract="false" native="false" synchronized="false"
  4808. static="false" final="false" visibility="public"
  4809. deprecated="not deprecated">
  4810. <param name="out" type="java.io.DataOutput"/>
  4811. <exception name="IOException" type="java.io.IOException"/>
  4812. </method>
  4813. <method name="readFields"
  4814. abstract="false" native="false" synchronized="false"
  4815. static="false" final="false" visibility="public"
  4816. deprecated="not deprecated">
  4817. <param name="in" type="java.io.DataInput"/>
  4818. <exception name="IOException" type="java.io.IOException"/>
  4819. </method>
  4820. <field name="version" type="int"
  4821. transient="false" volatile="false"
  4822. static="false" final="false" visibility="protected"
  4823. deprecated="not deprecated">
  4824. </field>
  4825. <field name="upgradeStatus" type="short"
  4826. transient="false" volatile="false"
  4827. static="false" final="false" visibility="protected"
  4828. deprecated="not deprecated">
  4829. </field>
  4830. <field name="finalized" type="boolean"
  4831. transient="false" volatile="false"
  4832. static="false" final="false" visibility="protected"
  4833. deprecated="not deprecated">
  4834. </field>
  4835. <doc>
  4836. <![CDATA[Base upgrade upgradeStatus class.
  4837. Overload this class if specific status fields need to be reported.
  4838. Describes status of current upgrade.]]>
  4839. </doc>
  4840. </class>
  4841. <!-- end class org.apache.hadoop.hdfs.server.common.UpgradeStatusReport -->
  4842. <!-- start class org.apache.hadoop.hdfs.server.common.Util -->
  4843. <class name="Util" extends="java.lang.Object"
  4844. abstract="false"
  4845. static="false" final="true" visibility="public"
  4846. deprecated="not deprecated">
  4847. <constructor name="Util"
  4848. static="false" final="false" visibility="public"
  4849. deprecated="not deprecated">
  4850. </constructor>
  4851. <method name="now" return="long"
  4852. abstract="false" native="false" synchronized="false"
  4853. static="true" final="false" visibility="public"
  4854. deprecated="not deprecated">
  4855. <doc>
  4856. <![CDATA[Current system time.
  4857. @return current time in msec.]]>
  4858. </doc>
  4859. </method>
  4860. </class>
  4861. <!-- end class org.apache.hadoop.hdfs.server.common.Util -->
  4862. </package>
  4863. <package name="org.apache.hadoop.hdfs.server.datanode">
  4864. <!-- start class org.apache.hadoop.hdfs.server.datanode.DataNode -->
  4865. <class name="DataNode" extends="org.apache.hadoop.conf.Configured"
  4866. abstract="false"
  4867. static="false" final="false" visibility="public"
  4868. deprecated="not deprecated">
  4869. <implements name="org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol"/>
  4870. <implements name="org.apache.hadoop.hdfs.protocol.ClientDatanodeProtocol"/>
  4871. <implements name="org.apache.hadoop.hdfs.protocol.FSConstants"/>
  4872. <implements name="java.lang.Runnable"/>
  4873. <method name="createSocketAddr" return="java.net.InetSocketAddress"
  4874. abstract="false" native="false" synchronized="false"
  4875. static="true" final="false" visibility="public"
  4876. deprecated="not deprecated">
  4877. <param name="target" type="java.lang.String"/>
  4878. <exception name="IOException" type="java.io.IOException"/>
  4879. <doc>
  4880. <![CDATA[Use {@link NetUtils#createSocketAddr(String)} instead.]]>
  4881. </doc>
  4882. </method>
  4883. <method name="newSocket" return="java.net.Socket"
  4884. abstract="false" native="false" synchronized="false"
  4885. static="false" final="false" visibility="protected"
  4886. deprecated="not deprecated">
  4887. <exception name="IOException" type="java.io.IOException"/>
  4888. <doc>
  4889. <![CDATA[Creates either NIO or regular depending on socketWriteTimeout.]]>
  4890. </doc>
  4891. </method>
  4892. <method name="getDataNode" return="org.apache.hadoop.hdfs.server.datanode.DataNode"
  4893. abstract="false" native="false" synchronized="false"
  4894. static="true" final="false" visibility="public"
  4895. deprecated="not deprecated">
  4896. <doc>
  4897. <![CDATA[Return the DataNode object]]>
  4898. </doc>
  4899. </method>
  4900. <method name="createInterDataNodeProtocolProxy" return="org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol"
  4901. abstract="false" native="false" synchronized="false"
  4902. static="true" final="false" visibility="public"
  4903. deprecated="not deprecated">
  4904. <param name="datanodeid" type="org.apache.hadoop.hdfs.protocol.DatanodeID"/>
  4905. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  4906. <exception name="IOException" type="java.io.IOException"/>
  4907. </method>
  4908. <method name="getNameNodeAddr" return="java.net.InetSocketAddress"
  4909. abstract="false" native="false" synchronized="false"
  4910. static="false" final="false" visibility="public"
  4911. deprecated="not deprecated">
  4912. </method>
  4913. <method name="getSelfAddr" return="java.net.InetSocketAddress"
  4914. abstract="false" native="false" synchronized="false"
  4915. static="false" final="false" visibility="public"
  4916. deprecated="not deprecated">
  4917. </method>
  4918. <method name="getNamenode" return="java.lang.String"
  4919. abstract="false" native="false" synchronized="false"
  4920. static="false" final="false" visibility="public"
  4921. deprecated="not deprecated">
  4922. <doc>
  4923. <![CDATA[Return the namenode's identifier]]>
  4924. </doc>
  4925. </method>
  4926. <method name="setNewStorageID"
  4927. abstract="false" native="false" synchronized="false"
  4928. static="true" final="false" visibility="public"
  4929. deprecated="not deprecated">
  4930. <param name="dnReg" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  4931. </method>
  4932. <method name="shutdown"
  4933. abstract="false" native="false" synchronized="false"
  4934. static="false" final="false" visibility="public"
  4935. deprecated="not deprecated">
  4936. <doc>
  4937. <![CDATA[Shut down this instance of the datanode.
  4938. Returns only after shutdown is complete.
  4939. This method can only be called by the offerService thread.
  4940. Otherwise, deadlock might occur.]]>
  4941. </doc>
  4942. </method>
  4943. <method name="checkDiskError"
  4944. abstract="false" native="false" synchronized="false"
  4945. static="false" final="false" visibility="protected"
  4946. deprecated="not deprecated">
  4947. <param name="e" type="java.io.IOException"/>
  4948. <exception name="IOException" type="java.io.IOException"/>
  4949. </method>
  4950. <method name="checkDiskError"
  4951. abstract="false" native="false" synchronized="false"
  4952. static="false" final="false" visibility="protected"
  4953. deprecated="not deprecated">
  4954. <exception name="IOException" type="java.io.IOException"/>
  4955. </method>
  4956. <method name="offerService"
  4957. abstract="false" native="false" synchronized="false"
  4958. static="false" final="false" visibility="public"
  4959. deprecated="not deprecated">
  4960. <exception name="Exception" type="java.lang.Exception"/>
  4961. <doc>
  4962. <![CDATA[Main loop for the DataNode. Runs until shutdown,
  4963. forever calling remote NameNode functions.]]>
  4964. </doc>
  4965. </method>
  4966. <method name="notifyNamenodeReceivedBlock"
  4967. abstract="false" native="false" synchronized="false"
  4968. static="false" final="false" visibility="protected"
  4969. deprecated="not deprecated">
  4970. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  4971. <param name="delHint" type="java.lang.String"/>
  4972. </method>
  4973. <method name="run"
  4974. abstract="false" native="false" synchronized="false"
  4975. static="false" final="false" visibility="public"
  4976. deprecated="not deprecated">
  4977. <doc>
  4978. <![CDATA[No matter what kind of exception we get, keep retrying to offerService().
  4979. That's the loop that connects to the NameNode and provides basic DataNode
  4980. functionality.
  4981. Only stop when "shouldRun" is turned off (which can only happen at shutdown).]]>
  4982. </doc>
  4983. </method>
  4984. <method name="runDatanodeDaemon"
  4985. abstract="false" native="false" synchronized="false"
  4986. static="true" final="false" visibility="public"
  4987. deprecated="not deprecated">
  4988. <param name="dn" type="org.apache.hadoop.hdfs.server.datanode.DataNode"/>
  4989. <exception name="IOException" type="java.io.IOException"/>
  4990. <doc>
  4991. <![CDATA[Start a single datanode daemon and wait for it to finish.
  4992. If this thread is specifically interrupted, it will stop waiting.]]>
  4993. </doc>
  4994. </method>
  4995. <method name="instantiateDataNode" return="org.apache.hadoop.hdfs.server.datanode.DataNode"
  4996. abstract="false" native="false" synchronized="false"
  4997. static="true" final="false" visibility="public"
  4998. deprecated="not deprecated">
  4999. <param name="args" type="java.lang.String[]"/>
  5000. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5001. <exception name="IOException" type="java.io.IOException"/>
  5002. <doc>
  5003. <![CDATA[Instantiate a single datanode object. This must be run by invoking
  5004. {@link DataNode#runDatanodeDaemon(DataNode)} subsequently.]]>
  5005. </doc>
  5006. </method>
  5007. <method name="createDataNode" return="org.apache.hadoop.hdfs.server.datanode.DataNode"
  5008. abstract="false" native="false" synchronized="false"
  5009. static="true" final="false" visibility="public"
  5010. deprecated="not deprecated">
  5011. <param name="args" type="java.lang.String[]"/>
  5012. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5013. <exception name="IOException" type="java.io.IOException"/>
  5014. <doc>
  5015. <![CDATA[Instantiate & Start a single datanode daemon and wait for it to finish.
  5016. If this thread is specifically interrupted, it will stop waiting.]]>
  5017. </doc>
  5018. </method>
  5019. <method name="makeInstance" return="org.apache.hadoop.hdfs.server.datanode.DataNode"
  5020. abstract="false" native="false" synchronized="false"
  5021. static="true" final="false" visibility="public"
  5022. deprecated="not deprecated">
  5023. <param name="dataDirs" type="java.lang.String[]"/>
  5024. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  5025. <exception name="IOException" type="java.io.IOException"/>
  5026. <doc>
  5027. <![CDATA[Make an instance of DataNode after ensuring that at least one of the
  5028. given data directories (and their parent directories, if necessary)
  5029. can be created.
  5030. @param dataDirs List of directories, where the new DataNode instance should
  5031. keep its files.
  5032. @param conf Configuration instance to use.
  5033. @return DataNode instance for given list of data dirs and conf, or null if
  5034. no directory from this directory list can be created.
  5035. @throws IOException]]>
  5036. </doc>
  5037. </method>
  5038. <method name="toString" return="java.lang.String"
  5039. abstract="false" native="false" synchronized="false"
  5040. static="false" final="false" visibility="public"
  5041. deprecated="not deprecated">
  5042. </method>
  5043. <method name="scheduleBlockReport"
  5044. abstract="false" native="false" synchronized="false"
  5045. static="false" final="false" visibility="public"
  5046. deprecated="not deprecated">
  5047. <param name="delay" type="long"/>
  5048. <doc>
  5049. <![CDATA[This methods arranges for the data node to send the block report at the next heartbeat.]]>
  5050. </doc>
  5051. </method>
  5052. <method name="getFSDataset" return="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface"
  5053. abstract="false" native="false" synchronized="false"
  5054. static="false" final="false" visibility="public"
  5055. deprecated="not deprecated">
  5056. <doc>
  5057. <![CDATA[This method is used for testing.
  5058. Examples are adding and deleting blocks directly.
  5059. The most common usage will be when the data node's storage is similated.
  5060. @return the fsdataset that stores the blocks]]>
  5061. </doc>
  5062. </method>
  5063. <method name="main"
  5064. abstract="false" native="false" synchronized="false"
  5065. static="true" final="false" visibility="public"
  5066. deprecated="not deprecated">
  5067. <param name="args" type="java.lang.String[]"/>
  5068. </method>
  5069. <method name="getBlockMetaDataInfo" return="org.apache.hadoop.hdfs.server.protocol.BlockMetaDataInfo"
  5070. abstract="false" native="false" synchronized="false"
  5071. static="false" final="false" visibility="public"
  5072. deprecated="not deprecated">
  5073. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5074. <exception name="IOException" type="java.io.IOException"/>
  5075. <doc>
  5076. <![CDATA[{@inheritDoc}]]>
  5077. </doc>
  5078. </method>
  5079. <method name="recoverBlocks" return="org.apache.hadoop.util.Daemon"
  5080. abstract="false" native="false" synchronized="false"
  5081. static="false" final="false" visibility="public"
  5082. deprecated="not deprecated">
  5083. <param name="blocks" type="org.apache.hadoop.hdfs.protocol.Block[]"/>
  5084. <param name="targets" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo[][]"/>
  5085. </method>
  5086. <method name="updateBlock"
  5087. abstract="false" native="false" synchronized="false"
  5088. static="false" final="false" visibility="public"
  5089. deprecated="not deprecated">
  5090. <param name="oldblock" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5091. <param name="newblock" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5092. <param name="finalize" type="boolean"/>
  5093. <exception name="IOException" type="java.io.IOException"/>
  5094. <doc>
  5095. <![CDATA[{@inheritDoc}]]>
  5096. </doc>
  5097. </method>
  5098. <method name="getProtocolVersion" return="long"
  5099. abstract="false" native="false" synchronized="false"
  5100. static="false" final="false" visibility="public"
  5101. deprecated="not deprecated">
  5102. <param name="protocol" type="java.lang.String"/>
  5103. <param name="clientVersion" type="long"/>
  5104. <exception name="IOException" type="java.io.IOException"/>
  5105. <doc>
  5106. <![CDATA[{@inheritDoc}]]>
  5107. </doc>
  5108. </method>
  5109. <method name="recoverBlock" return="org.apache.hadoop.hdfs.protocol.LocatedBlock"
  5110. abstract="false" native="false" synchronized="false"
  5111. static="false" final="false" visibility="public"
  5112. deprecated="not deprecated">
  5113. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5114. <param name="keepLength" type="boolean"/>
  5115. <param name="targets" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"/>
  5116. <exception name="IOException" type="java.io.IOException"/>
  5117. <doc>
  5118. <![CDATA[{@inheritDoc}]]>
  5119. </doc>
  5120. </method>
  5121. <field name="LOG" type="org.apache.commons.logging.Log"
  5122. transient="false" volatile="false"
  5123. static="true" final="true" visibility="public"
  5124. deprecated="not deprecated">
  5125. </field>
  5126. <field name="DN_CLIENTTRACE_FORMAT" type="java.lang.String"
  5127. transient="false" volatile="false"
  5128. static="true" final="true" visibility="public"
  5129. deprecated="not deprecated">
  5130. </field>
  5131. <field name="namenode" type="org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol"
  5132. transient="false" volatile="false"
  5133. static="false" final="false" visibility="public"
  5134. deprecated="not deprecated">
  5135. </field>
  5136. <field name="data" type="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface"
  5137. transient="false" volatile="false"
  5138. static="false" final="false" visibility="public"
  5139. deprecated="not deprecated">
  5140. </field>
  5141. <field name="dnRegistration" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"
  5142. transient="false" volatile="false"
  5143. static="false" final="false" visibility="public"
  5144. deprecated="not deprecated">
  5145. </field>
  5146. <field name="EMPTY_DEL_HINT" type="java.lang.String"
  5147. transient="false" volatile="false"
  5148. static="true" final="true" visibility="public"
  5149. deprecated="not deprecated">
  5150. </field>
  5151. <field name="blockScanner" type="org.apache.hadoop.hdfs.server.datanode.DataBlockScanner"
  5152. transient="false" volatile="false"
  5153. static="false" final="false" visibility="public"
  5154. deprecated="not deprecated">
  5155. </field>
  5156. <field name="blockScannerThread" type="org.apache.hadoop.util.Daemon"
  5157. transient="false" volatile="false"
  5158. static="false" final="false" visibility="public"
  5159. deprecated="not deprecated">
  5160. </field>
  5161. <field name="ipcServer" type="org.apache.hadoop.ipc.Server"
  5162. transient="false" volatile="false"
  5163. static="false" final="false" visibility="public"
  5164. deprecated="not deprecated">
  5165. </field>
  5166. <field name="PKT_HEADER_LEN" type="int"
  5167. transient="false" volatile="false"
  5168. static="true" final="true" visibility="public"
  5169. deprecated="not deprecated">
  5170. <doc>
  5171. <![CDATA[Header size for a packet]]>
  5172. </doc>
  5173. </field>
  5174. <doc>
  5175. <![CDATA[DataNode is a class (and program) that stores a set of
  5176. blocks for a DFS deployment. A single deployment can
  5177. have one or many DataNodes. Each DataNode communicates
  5178. regularly with a single NameNode. It also communicates
  5179. with client code and other DataNodes from time to time.
  5180. DataNodes store a series of named blocks. The DataNode
  5181. allows client code to read these blocks, or to write new
  5182. block data. The DataNode may also, in response to instructions
  5183. from its NameNode, delete blocks or copy blocks to/from other
  5184. DataNodes.
  5185. The DataNode maintains just one critical table:
  5186. block-> stream of bytes (of BLOCK_SIZE or less)
  5187. This info is stored on a local disk. The DataNode
  5188. reports the table's contents to the NameNode upon startup
  5189. and every so often afterwards.
  5190. DataNodes spend their lives in an endless loop of asking
  5191. the NameNode for something to do. A NameNode cannot connect
  5192. to a DataNode directly; a NameNode simply returns values from
  5193. functions invoked by a DataNode.
  5194. DataNodes maintain an open server socket so that client code
  5195. or other DataNodes can read/write data. The host/port for
  5196. this server is reported to the NameNode, which then sends that
  5197. information to clients or other DataNodes that might be interested.]]>
  5198. </doc>
  5199. </class>
  5200. <!-- end class org.apache.hadoop.hdfs.server.datanode.DataNode -->
  5201. <!-- start class org.apache.hadoop.hdfs.server.datanode.DataStorage -->
  5202. <class name="DataStorage" extends="org.apache.hadoop.hdfs.server.common.Storage"
  5203. abstract="false"
  5204. static="false" final="false" visibility="public"
  5205. deprecated="not deprecated">
  5206. <constructor name="DataStorage" type="org.apache.hadoop.hdfs.server.common.StorageInfo, java.lang.String"
  5207. static="false" final="false" visibility="public"
  5208. deprecated="not deprecated">
  5209. </constructor>
  5210. <method name="getStorageID" return="java.lang.String"
  5211. abstract="false" native="false" synchronized="false"
  5212. static="false" final="false" visibility="public"
  5213. deprecated="not deprecated">
  5214. </method>
  5215. <method name="setFields"
  5216. abstract="false" native="false" synchronized="false"
  5217. static="false" final="false" visibility="protected"
  5218. deprecated="not deprecated">
  5219. <param name="props" type="java.util.Properties"/>
  5220. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  5221. <exception name="IOException" type="java.io.IOException"/>
  5222. </method>
  5223. <method name="getFields"
  5224. abstract="false" native="false" synchronized="false"
  5225. static="false" final="false" visibility="protected"
  5226. deprecated="not deprecated">
  5227. <param name="props" type="java.util.Properties"/>
  5228. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  5229. <exception name="IOException" type="java.io.IOException"/>
  5230. </method>
  5231. <method name="isConversionNeeded" return="boolean"
  5232. abstract="false" native="false" synchronized="false"
  5233. static="false" final="false" visibility="public"
  5234. deprecated="not deprecated">
  5235. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  5236. <exception name="IOException" type="java.io.IOException"/>
  5237. </method>
  5238. <method name="corruptPreUpgradeStorage"
  5239. abstract="false" native="false" synchronized="false"
  5240. static="false" final="false" visibility="protected"
  5241. deprecated="not deprecated">
  5242. <param name="rootDir" type="java.io.File"/>
  5243. <exception name="IOException" type="java.io.IOException"/>
  5244. </method>
  5245. <doc>
  5246. <![CDATA[Data storage information file.
  5247. <p>
  5248. @see Storage]]>
  5249. </doc>
  5250. </class>
  5251. <!-- end class org.apache.hadoop.hdfs.server.datanode.DataStorage -->
  5252. <!-- start class org.apache.hadoop.hdfs.server.datanode.FSDataset -->
  5253. <class name="FSDataset" extends="java.lang.Object"
  5254. abstract="false"
  5255. static="false" final="false" visibility="public"
  5256. deprecated="not deprecated">
  5257. <implements name="org.apache.hadoop.hdfs.protocol.FSConstants"/>
  5258. <implements name="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface"/>
  5259. <constructor name="FSDataset" type="org.apache.hadoop.hdfs.server.datanode.DataStorage, org.apache.hadoop.conf.Configuration"
  5260. static="false" final="false" visibility="public"
  5261. deprecated="not deprecated">
  5262. <exception name="IOException" type="java.io.IOException"/>
  5263. <doc>
  5264. <![CDATA[An FSDataset has a directory where it loads its data files.]]>
  5265. </doc>
  5266. </constructor>
  5267. <method name="getMetaFile" return="java.io.File"
  5268. abstract="false" native="false" synchronized="false"
  5269. static="false" final="false" visibility="protected"
  5270. deprecated="not deprecated">
  5271. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5272. <exception name="IOException" type="java.io.IOException"/>
  5273. </method>
  5274. <method name="findBlockFile" return="java.io.File"
  5275. abstract="false" native="false" synchronized="false"
  5276. static="false" final="false" visibility="public"
  5277. deprecated="not deprecated">
  5278. <param name="blockId" type="long"/>
  5279. <doc>
  5280. <![CDATA[Return the block file for the given ID]]>
  5281. </doc>
  5282. </method>
  5283. <method name="getStoredBlock" return="org.apache.hadoop.hdfs.protocol.Block"
  5284. abstract="false" native="false" synchronized="true"
  5285. static="false" final="false" visibility="public"
  5286. deprecated="not deprecated">
  5287. <param name="blkid" type="long"/>
  5288. <exception name="IOException" type="java.io.IOException"/>
  5289. <doc>
  5290. <![CDATA[{@inheritDoc}]]>
  5291. </doc>
  5292. </method>
  5293. <method name="metaFileExists" return="boolean"
  5294. abstract="false" native="false" synchronized="false"
  5295. static="false" final="false" visibility="public"
  5296. deprecated="not deprecated">
  5297. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5298. <exception name="IOException" type="java.io.IOException"/>
  5299. </method>
  5300. <method name="getMetaDataLength" return="long"
  5301. abstract="false" native="false" synchronized="false"
  5302. static="false" final="false" visibility="public"
  5303. deprecated="not deprecated">
  5304. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5305. <exception name="IOException" type="java.io.IOException"/>
  5306. </method>
  5307. <method name="getMetaDataInputStream" return="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.MetaDataInputStream"
  5308. abstract="false" native="false" synchronized="false"
  5309. static="false" final="false" visibility="public"
  5310. deprecated="not deprecated">
  5311. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5312. <exception name="IOException" type="java.io.IOException"/>
  5313. </method>
  5314. <method name="getDfsUsed" return="long"
  5315. abstract="false" native="false" synchronized="false"
  5316. static="false" final="false" visibility="public"
  5317. deprecated="not deprecated">
  5318. <exception name="IOException" type="java.io.IOException"/>
  5319. <doc>
  5320. <![CDATA[Return the total space used by dfs datanode]]>
  5321. </doc>
  5322. </method>
  5323. <method name="getCapacity" return="long"
  5324. abstract="false" native="false" synchronized="false"
  5325. static="false" final="false" visibility="public"
  5326. deprecated="not deprecated">
  5327. <exception name="IOException" type="java.io.IOException"/>
  5328. <doc>
  5329. <![CDATA[Return total capacity, used and unused]]>
  5330. </doc>
  5331. </method>
  5332. <method name="getRemaining" return="long"
  5333. abstract="false" native="false" synchronized="false"
  5334. static="false" final="false" visibility="public"
  5335. deprecated="not deprecated">
  5336. <exception name="IOException" type="java.io.IOException"/>
  5337. <doc>
  5338. <![CDATA[Return how many bytes can still be stored in the FSDataset]]>
  5339. </doc>
  5340. </method>
  5341. <method name="getLength" return="long"
  5342. abstract="false" native="false" synchronized="false"
  5343. static="false" final="false" visibility="public"
  5344. deprecated="not deprecated">
  5345. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5346. <exception name="IOException" type="java.io.IOException"/>
  5347. <doc>
  5348. <![CDATA[Find the block's on-disk length]]>
  5349. </doc>
  5350. </method>
  5351. <method name="getBlockFile" return="java.io.File"
  5352. abstract="false" native="false" synchronized="true"
  5353. static="false" final="false" visibility="public"
  5354. deprecated="not deprecated">
  5355. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5356. <exception name="IOException" type="java.io.IOException"/>
  5357. <doc>
  5358. <![CDATA[Get File name for a given block.]]>
  5359. </doc>
  5360. </method>
  5361. <method name="getBlockInputStream" return="java.io.InputStream"
  5362. abstract="false" native="false" synchronized="true"
  5363. static="false" final="false" visibility="public"
  5364. deprecated="not deprecated">
  5365. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5366. <exception name="IOException" type="java.io.IOException"/>
  5367. </method>
  5368. <method name="getBlockInputStream" return="java.io.InputStream"
  5369. abstract="false" native="false" synchronized="true"
  5370. static="false" final="false" visibility="public"
  5371. deprecated="not deprecated">
  5372. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5373. <param name="seekOffset" type="long"/>
  5374. <exception name="IOException" type="java.io.IOException"/>
  5375. </method>
  5376. <method name="getTmpInputStreams" return="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockInputStreams"
  5377. abstract="false" native="false" synchronized="true"
  5378. static="false" final="false" visibility="public"
  5379. deprecated="not deprecated">
  5380. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5381. <param name="blkOffset" type="long"/>
  5382. <param name="ckoff" type="long"/>
  5383. <exception name="IOException" type="java.io.IOException"/>
  5384. <doc>
  5385. <![CDATA[Returns handles to the block file and its metadata file]]>
  5386. </doc>
  5387. </method>
  5388. <method name="detachBlock" return="boolean"
  5389. abstract="false" native="false" synchronized="false"
  5390. static="false" final="false" visibility="public"
  5391. deprecated="not deprecated">
  5392. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5393. <param name="numLinks" type="int"/>
  5394. <exception name="IOException" type="java.io.IOException"/>
  5395. <doc>
  5396. <![CDATA[Make a copy of the block if this block is linked to an existing
  5397. snapshot. This ensures that modifying this block does not modify
  5398. data in any existing snapshots.
  5399. @param block Block
  5400. @param numLinks Detach if the number of links exceed this value
  5401. @throws IOException
  5402. @return - true if the specified block was detached]]>
  5403. </doc>
  5404. </method>
  5405. <method name="updateBlock"
  5406. abstract="false" native="false" synchronized="false"
  5407. static="false" final="false" visibility="public"
  5408. deprecated="not deprecated">
  5409. <param name="oldblock" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5410. <param name="newblock" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5411. <exception name="IOException" type="java.io.IOException"/>
  5412. <doc>
  5413. <![CDATA[{@inheritDoc}]]>
  5414. </doc>
  5415. </method>
  5416. <method name="writeToBlock" return="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockWriteStreams"
  5417. abstract="false" native="false" synchronized="false"
  5418. static="false" final="false" visibility="public"
  5419. deprecated="not deprecated">
  5420. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5421. <param name="isRecovery" type="boolean"/>
  5422. <exception name="IOException" type="java.io.IOException"/>
  5423. <doc>
  5424. <![CDATA[Start writing to a block file
  5425. If isRecovery is true and the block pre-exists, then we kill all
  5426. volumeMap.put(b, v);
  5427. volumeMap.put(b, v);
  5428. other threads that might be writing to this block, and then reopen the file.]]>
  5429. </doc>
  5430. </method>
  5431. <method name="getChannelPosition" return="long"
  5432. abstract="false" native="false" synchronized="false"
  5433. static="false" final="false" visibility="public"
  5434. deprecated="not deprecated">
  5435. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5436. <param name="streams" type="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockWriteStreams"/>
  5437. <exception name="IOException" type="java.io.IOException"/>
  5438. <doc>
  5439. <![CDATA[Retrieves the offset in the block to which the
  5440. the next write will write data to.]]>
  5441. </doc>
  5442. </method>
  5443. <method name="setChannelPosition"
  5444. abstract="false" native="false" synchronized="false"
  5445. static="false" final="false" visibility="public"
  5446. deprecated="not deprecated">
  5447. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5448. <param name="streams" type="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockWriteStreams"/>
  5449. <param name="dataOffset" type="long"/>
  5450. <param name="ckOffset" type="long"/>
  5451. <exception name="IOException" type="java.io.IOException"/>
  5452. <doc>
  5453. <![CDATA[Sets the offset in the block to which the
  5454. the next write will write data to.]]>
  5455. </doc>
  5456. </method>
  5457. <method name="finalizeBlock"
  5458. abstract="false" native="false" synchronized="true"
  5459. static="false" final="false" visibility="public"
  5460. deprecated="not deprecated">
  5461. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5462. <exception name="IOException" type="java.io.IOException"/>
  5463. <doc>
  5464. <![CDATA[Complete the block write!]]>
  5465. </doc>
  5466. </method>
  5467. <method name="unfinalizeBlock"
  5468. abstract="false" native="false" synchronized="true"
  5469. static="false" final="false" visibility="public"
  5470. deprecated="not deprecated">
  5471. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5472. <exception name="IOException" type="java.io.IOException"/>
  5473. <doc>
  5474. <![CDATA[Remove the temporary block file (if any)]]>
  5475. </doc>
  5476. </method>
  5477. <method name="getBlockReport" return="org.apache.hadoop.hdfs.protocol.Block[]"
  5478. abstract="false" native="false" synchronized="false"
  5479. static="false" final="false" visibility="public"
  5480. deprecated="not deprecated">
  5481. <doc>
  5482. <![CDATA[Return a table of block data]]>
  5483. </doc>
  5484. </method>
  5485. <method name="isValidBlock" return="boolean"
  5486. abstract="false" native="false" synchronized="false"
  5487. static="false" final="false" visibility="public"
  5488. deprecated="not deprecated">
  5489. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5490. <doc>
  5491. <![CDATA[Check whether the given block is a valid one.]]>
  5492. </doc>
  5493. </method>
  5494. <method name="validateBlockMetadata"
  5495. abstract="false" native="false" synchronized="false"
  5496. static="false" final="false" visibility="public"
  5497. deprecated="not deprecated">
  5498. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5499. <exception name="IOException" type="java.io.IOException"/>
  5500. <doc>
  5501. <![CDATA[{@inheritDoc}]]>
  5502. </doc>
  5503. </method>
  5504. <method name="invalidate"
  5505. abstract="false" native="false" synchronized="false"
  5506. static="false" final="false" visibility="public"
  5507. deprecated="not deprecated">
  5508. <param name="invalidBlks" type="org.apache.hadoop.hdfs.protocol.Block[]"/>
  5509. <exception name="IOException" type="java.io.IOException"/>
  5510. <doc>
  5511. <![CDATA[We're informed that a block is no longer valid. We
  5512. could lazily garbage-collect the block, but why bother?
  5513. just get rid of it.]]>
  5514. </doc>
  5515. </method>
  5516. <method name="getFile" return="java.io.File"
  5517. abstract="false" native="false" synchronized="true"
  5518. static="false" final="false" visibility="public"
  5519. deprecated="not deprecated">
  5520. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5521. <doc>
  5522. <![CDATA[Turn the block identifier into a filename.]]>
  5523. </doc>
  5524. </method>
  5525. <method name="checkDataDir"
  5526. abstract="false" native="false" synchronized="false"
  5527. static="false" final="false" visibility="public"
  5528. deprecated="not deprecated">
  5529. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  5530. <doc>
  5531. <![CDATA[check if a data directory is healthy
  5532. @throws DiskErrorException]]>
  5533. </doc>
  5534. </method>
  5535. <method name="toString" return="java.lang.String"
  5536. abstract="false" native="false" synchronized="false"
  5537. static="false" final="false" visibility="public"
  5538. deprecated="not deprecated">
  5539. </method>
  5540. <method name="shutdown"
  5541. abstract="false" native="false" synchronized="false"
  5542. static="false" final="false" visibility="public"
  5543. deprecated="not deprecated">
  5544. </method>
  5545. <method name="getStorageInfo" return="java.lang.String"
  5546. abstract="false" native="false" synchronized="false"
  5547. static="false" final="false" visibility="public"
  5548. deprecated="not deprecated">
  5549. </method>
  5550. <field name="METADATA_EXTENSION" type="java.lang.String"
  5551. transient="false" volatile="false"
  5552. static="true" final="true" visibility="public"
  5553. deprecated="not deprecated">
  5554. </field>
  5555. <field name="METADATA_VERSION" type="short"
  5556. transient="false" volatile="false"
  5557. static="true" final="true" visibility="public"
  5558. deprecated="not deprecated">
  5559. </field>
  5560. <doc>
  5561. <![CDATA[FSDataset manages a set of data blocks. Each block
  5562. has a unique name and an extent on disk.]]>
  5563. </doc>
  5564. </class>
  5565. <!-- end class org.apache.hadoop.hdfs.server.datanode.FSDataset -->
  5566. <!-- start interface org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface -->
  5567. <interface name="FSDatasetInterface" abstract="true"
  5568. static="false" final="false" visibility="public"
  5569. deprecated="not deprecated">
  5570. <implements name="org.apache.hadoop.hdfs.server.datanode.metrics.FSDatasetMBean"/>
  5571. <method name="getMetaDataLength" return="long"
  5572. abstract="false" native="false" synchronized="false"
  5573. static="false" final="false" visibility="public"
  5574. deprecated="not deprecated">
  5575. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5576. <exception name="IOException" type="java.io.IOException"/>
  5577. <doc>
  5578. <![CDATA[Returns the length of the metadata file of the specified block
  5579. @param b - the block for which the metadata length is desired
  5580. @return the length of the metadata file for the specified block.
  5581. @throws IOException]]>
  5582. </doc>
  5583. </method>
  5584. <method name="getMetaDataInputStream" return="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.MetaDataInputStream"
  5585. abstract="false" native="false" synchronized="false"
  5586. static="false" final="false" visibility="public"
  5587. deprecated="not deprecated">
  5588. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5589. <exception name="IOException" type="java.io.IOException"/>
  5590. <doc>
  5591. <![CDATA[Returns metaData of block b as an input stream (and its length)
  5592. @param b - the block
  5593. @return the metadata input stream;
  5594. @throws IOException]]>
  5595. </doc>
  5596. </method>
  5597. <method name="metaFileExists" return="boolean"
  5598. abstract="false" native="false" synchronized="false"
  5599. static="false" final="false" visibility="public"
  5600. deprecated="not deprecated">
  5601. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5602. <exception name="IOException" type="java.io.IOException"/>
  5603. <doc>
  5604. <![CDATA[Does the meta file exist for this block?
  5605. @param b - the block
  5606. @return true of the metafile for specified block exits
  5607. @throws IOException]]>
  5608. </doc>
  5609. </method>
  5610. <method name="getLength" return="long"
  5611. abstract="false" native="false" synchronized="false"
  5612. static="false" final="false" visibility="public"
  5613. deprecated="not deprecated">
  5614. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5615. <exception name="IOException" type="java.io.IOException"/>
  5616. <doc>
  5617. <![CDATA[Returns the specified block's on-disk length (excluding metadata)
  5618. @param b
  5619. @return the specified block's on-disk length (excluding metadta)
  5620. @throws IOException]]>
  5621. </doc>
  5622. </method>
  5623. <method name="getStoredBlock" return="org.apache.hadoop.hdfs.protocol.Block"
  5624. abstract="false" native="false" synchronized="false"
  5625. static="false" final="false" visibility="public"
  5626. deprecated="not deprecated">
  5627. <param name="blkid" type="long"/>
  5628. <exception name="IOException" type="java.io.IOException"/>
  5629. <doc>
  5630. <![CDATA[@return the generation stamp stored with the block.]]>
  5631. </doc>
  5632. </method>
  5633. <method name="getBlockInputStream" return="java.io.InputStream"
  5634. abstract="false" native="false" synchronized="false"
  5635. static="false" final="false" visibility="public"
  5636. deprecated="not deprecated">
  5637. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5638. <exception name="IOException" type="java.io.IOException"/>
  5639. <doc>
  5640. <![CDATA[Returns an input stream to read the contents of the specified block
  5641. @param b
  5642. @return an input stream to read the contents of the specified block
  5643. @throws IOException]]>
  5644. </doc>
  5645. </method>
  5646. <method name="getBlockInputStream" return="java.io.InputStream"
  5647. abstract="false" native="false" synchronized="false"
  5648. static="false" final="false" visibility="public"
  5649. deprecated="not deprecated">
  5650. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5651. <param name="seekOffset" type="long"/>
  5652. <exception name="IOException" type="java.io.IOException"/>
  5653. <doc>
  5654. <![CDATA[Returns an input stream at specified offset of the specified block
  5655. @param b
  5656. @param seekOffset
  5657. @return an input stream to read the contents of the specified block,
  5658. starting at the offset
  5659. @throws IOException]]>
  5660. </doc>
  5661. </method>
  5662. <method name="getTmpInputStreams" return="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockInputStreams"
  5663. abstract="false" native="false" synchronized="false"
  5664. static="false" final="false" visibility="public"
  5665. deprecated="not deprecated">
  5666. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5667. <param name="blkoff" type="long"/>
  5668. <param name="ckoff" type="long"/>
  5669. <exception name="IOException" type="java.io.IOException"/>
  5670. <doc>
  5671. <![CDATA[Returns an input stream at specified offset of the specified block
  5672. The block is still in the tmp directory and is not finalized
  5673. @param b
  5674. @param blkoff
  5675. @param ckoff
  5676. @return an input stream to read the contents of the specified block,
  5677. starting at the offset
  5678. @throws IOException]]>
  5679. </doc>
  5680. </method>
  5681. <method name="writeToBlock" return="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockWriteStreams"
  5682. abstract="false" native="false" synchronized="false"
  5683. static="false" final="false" visibility="public"
  5684. deprecated="not deprecated">
  5685. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5686. <param name="isRecovery" type="boolean"/>
  5687. <exception name="IOException" type="java.io.IOException"/>
  5688. <doc>
  5689. <![CDATA[Creates the block and returns output streams to write data and CRC
  5690. @param b
  5691. @param isRecovery True if this is part of erro recovery, otherwise false
  5692. @return a BlockWriteStreams object to allow writing the block data
  5693. and CRC
  5694. @throws IOException]]>
  5695. </doc>
  5696. </method>
  5697. <method name="updateBlock"
  5698. abstract="false" native="false" synchronized="false"
  5699. static="false" final="false" visibility="public"
  5700. deprecated="not deprecated">
  5701. <param name="oldblock" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5702. <param name="newblock" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5703. <exception name="IOException" type="java.io.IOException"/>
  5704. <doc>
  5705. <![CDATA[Update the block to the new generation stamp and length.]]>
  5706. </doc>
  5707. </method>
  5708. <method name="finalizeBlock"
  5709. abstract="false" native="false" synchronized="false"
  5710. static="false" final="false" visibility="public"
  5711. deprecated="not deprecated">
  5712. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5713. <exception name="IOException" type="java.io.IOException"/>
  5714. <doc>
  5715. <![CDATA[Finalizes the block previously opened for writing using writeToBlock.
  5716. The block size is what is in the parameter b and it must match the amount
  5717. of data written
  5718. @param b
  5719. @throws IOException]]>
  5720. </doc>
  5721. </method>
  5722. <method name="unfinalizeBlock"
  5723. abstract="false" native="false" synchronized="false"
  5724. static="false" final="false" visibility="public"
  5725. deprecated="not deprecated">
  5726. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5727. <exception name="IOException" type="java.io.IOException"/>
  5728. <doc>
  5729. <![CDATA[Unfinalizes the block previously opened for writing using writeToBlock.
  5730. The temporary file associated with this block is deleted.
  5731. @param b
  5732. @throws IOException]]>
  5733. </doc>
  5734. </method>
  5735. <method name="getBlockReport" return="org.apache.hadoop.hdfs.protocol.Block[]"
  5736. abstract="false" native="false" synchronized="false"
  5737. static="false" final="false" visibility="public"
  5738. deprecated="not deprecated">
  5739. <doc>
  5740. <![CDATA[Returns the block report - the full list of blocks stored
  5741. @return - the block report - the full list of blocks stored]]>
  5742. </doc>
  5743. </method>
  5744. <method name="isValidBlock" return="boolean"
  5745. abstract="false" native="false" synchronized="false"
  5746. static="false" final="false" visibility="public"
  5747. deprecated="not deprecated">
  5748. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5749. <doc>
  5750. <![CDATA[Is the block valid?
  5751. @param b
  5752. @return - true if the specified block is valid]]>
  5753. </doc>
  5754. </method>
  5755. <method name="invalidate"
  5756. abstract="false" native="false" synchronized="false"
  5757. static="false" final="false" visibility="public"
  5758. deprecated="not deprecated">
  5759. <param name="invalidBlks" type="org.apache.hadoop.hdfs.protocol.Block[]"/>
  5760. <exception name="IOException" type="java.io.IOException"/>
  5761. <doc>
  5762. <![CDATA[Invalidates the specified blocks
  5763. @param invalidBlks - the blocks to be invalidated
  5764. @throws IOException]]>
  5765. </doc>
  5766. </method>
  5767. <method name="checkDataDir"
  5768. abstract="false" native="false" synchronized="false"
  5769. static="false" final="false" visibility="public"
  5770. deprecated="not deprecated">
  5771. <exception name="DiskChecker.DiskErrorException" type="org.apache.hadoop.util.DiskChecker.DiskErrorException"/>
  5772. <doc>
  5773. <![CDATA[Check if all the data directories are healthy
  5774. @throws DiskErrorException]]>
  5775. </doc>
  5776. </method>
  5777. <method name="toString" return="java.lang.String"
  5778. abstract="false" native="false" synchronized="false"
  5779. static="false" final="false" visibility="public"
  5780. deprecated="not deprecated">
  5781. <doc>
  5782. <![CDATA[Stringifies the name of the storage]]>
  5783. </doc>
  5784. </method>
  5785. <method name="shutdown"
  5786. abstract="false" native="false" synchronized="false"
  5787. static="false" final="false" visibility="public"
  5788. deprecated="not deprecated">
  5789. <doc>
  5790. <![CDATA[Shutdown the FSDataset]]>
  5791. </doc>
  5792. </method>
  5793. <method name="getChannelPosition" return="long"
  5794. abstract="false" native="false" synchronized="false"
  5795. static="false" final="false" visibility="public"
  5796. deprecated="not deprecated">
  5797. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5798. <param name="stream" type="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockWriteStreams"/>
  5799. <exception name="IOException" type="java.io.IOException"/>
  5800. <doc>
  5801. <![CDATA[Returns the current offset in the data stream.
  5802. @param b
  5803. @param stream The stream to the data file and checksum file
  5804. @return the position of the file pointer in the data stream
  5805. @throws IOException]]>
  5806. </doc>
  5807. </method>
  5808. <method name="setChannelPosition"
  5809. abstract="false" native="false" synchronized="false"
  5810. static="false" final="false" visibility="public"
  5811. deprecated="not deprecated">
  5812. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5813. <param name="stream" type="org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockWriteStreams"/>
  5814. <param name="dataOffset" type="long"/>
  5815. <param name="ckOffset" type="long"/>
  5816. <exception name="IOException" type="java.io.IOException"/>
  5817. <doc>
  5818. <![CDATA[Sets the file pointer of the data stream and checksum stream to
  5819. the specified values.
  5820. @param b
  5821. @param stream The stream for the data file and checksum file
  5822. @param dataOffset The position to which the file pointre for the data stream
  5823. should be set
  5824. @param ckOffset The position to which the file pointre for the checksum stream
  5825. should be set
  5826. @throws IOException]]>
  5827. </doc>
  5828. </method>
  5829. <method name="validateBlockMetadata"
  5830. abstract="false" native="false" synchronized="false"
  5831. static="false" final="false" visibility="public"
  5832. deprecated="not deprecated">
  5833. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  5834. <exception name="IOException" type="java.io.IOException"/>
  5835. <doc>
  5836. <![CDATA[Validate that the contents in the Block matches
  5837. the file on disk. Returns true if everything is fine.
  5838. @param b The block to be verified.
  5839. @throws IOException]]>
  5840. </doc>
  5841. </method>
  5842. <doc>
  5843. <![CDATA[This is an interface for the underlying storage that stores blocks for
  5844. a data node.
  5845. Examples are the FSDataset (which stores blocks on dirs) and
  5846. SimulatedFSDataset (which simulates data).]]>
  5847. </doc>
  5848. </interface>
  5849. <!-- end interface org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface -->
  5850. <!-- start class org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockInputStreams -->
  5851. <class name="FSDatasetInterface.BlockInputStreams" extends="java.lang.Object"
  5852. abstract="false"
  5853. static="true" final="false" visibility="public"
  5854. deprecated="not deprecated">
  5855. <implements name="java.io.Closeable"/>
  5856. <method name="close"
  5857. abstract="false" native="false" synchronized="false"
  5858. static="false" final="false" visibility="public"
  5859. deprecated="not deprecated">
  5860. <doc>
  5861. <![CDATA[{@inheritDoc}]]>
  5862. </doc>
  5863. </method>
  5864. <doc>
  5865. <![CDATA[This class contains the input streams for the data and checksum
  5866. of a block]]>
  5867. </doc>
  5868. </class>
  5869. <!-- end class org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockInputStreams -->
  5870. <!-- start class org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockWriteStreams -->
  5871. <class name="FSDatasetInterface.BlockWriteStreams" extends="java.lang.Object"
  5872. abstract="false"
  5873. static="true" final="false" visibility="public"
  5874. deprecated="not deprecated">
  5875. <doc>
  5876. <![CDATA[This class contains the output streams for the data and checksum
  5877. of a block]]>
  5878. </doc>
  5879. </class>
  5880. <!-- end class org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.BlockWriteStreams -->
  5881. <!-- start class org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.MetaDataInputStream -->
  5882. <class name="FSDatasetInterface.MetaDataInputStream" extends="java.io.FilterInputStream"
  5883. abstract="false"
  5884. static="true" final="false" visibility="public"
  5885. deprecated="not deprecated">
  5886. <method name="getLength" return="long"
  5887. abstract="false" native="false" synchronized="false"
  5888. static="false" final="false" visibility="public"
  5889. deprecated="not deprecated">
  5890. </method>
  5891. <doc>
  5892. <![CDATA[This class provides the input stream and length of the metadata
  5893. of a block]]>
  5894. </doc>
  5895. </class>
  5896. <!-- end class org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.MetaDataInputStream -->
  5897. <!-- start class org.apache.hadoop.hdfs.server.datanode.UpgradeObjectDatanode -->
  5898. <class name="UpgradeObjectDatanode" extends="org.apache.hadoop.hdfs.server.common.UpgradeObject"
  5899. abstract="true"
  5900. static="false" final="false" visibility="public"
  5901. deprecated="not deprecated">
  5902. <implements name="java.lang.Runnable"/>
  5903. <constructor name="UpgradeObjectDatanode"
  5904. static="false" final="false" visibility="public"
  5905. deprecated="not deprecated">
  5906. </constructor>
  5907. <method name="getType" return="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"
  5908. abstract="false" native="false" synchronized="false"
  5909. static="false" final="false" visibility="public"
  5910. deprecated="not deprecated">
  5911. </method>
  5912. <method name="getDatanode" return="org.apache.hadoop.hdfs.server.datanode.DataNode"
  5913. abstract="false" native="false" synchronized="false"
  5914. static="false" final="false" visibility="protected"
  5915. deprecated="not deprecated">
  5916. </method>
  5917. <method name="doUpgrade"
  5918. abstract="true" native="false" synchronized="false"
  5919. static="false" final="false" visibility="public"
  5920. deprecated="not deprecated">
  5921. <exception name="IOException" type="java.io.IOException"/>
  5922. <doc>
  5923. <![CDATA[Specifies how the upgrade is performed.
  5924. @throws IOException]]>
  5925. </doc>
  5926. </method>
  5927. <method name="run"
  5928. abstract="false" native="false" synchronized="false"
  5929. static="false" final="false" visibility="public"
  5930. deprecated="not deprecated">
  5931. </method>
  5932. <method name="completeUpgrade" return="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  5933. abstract="false" native="false" synchronized="false"
  5934. static="false" final="false" visibility="public"
  5935. deprecated="not deprecated">
  5936. <exception name="IOException" type="java.io.IOException"/>
  5937. <doc>
  5938. <![CDATA[Complete upgrade and return a status complete command for broadcasting.
  5939. Data-nodes finish upgrade at different times.
  5940. The data-node needs to re-confirm with the name-node that the upgrade
  5941. is complete while other nodes are still upgrading.]]>
  5942. </doc>
  5943. </method>
  5944. <doc>
  5945. <![CDATA[Base class for data-node upgrade objects.
  5946. Data-node upgrades are run in separate threads.]]>
  5947. </doc>
  5948. </class>
  5949. <!-- end class org.apache.hadoop.hdfs.server.datanode.UpgradeObjectDatanode -->
  5950. </package>
  5951. <package name="org.apache.hadoop.hdfs.server.datanode.metrics">
  5952. <!-- start class org.apache.hadoop.hdfs.server.datanode.metrics.DataNodeActivityMBean -->
  5953. <class name="DataNodeActivityMBean" extends="org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase"
  5954. abstract="false"
  5955. static="false" final="false" visibility="public"
  5956. deprecated="not deprecated">
  5957. <constructor name="DataNodeActivityMBean" type="org.apache.hadoop.metrics.util.MetricsRegistry, java.lang.String"
  5958. static="false" final="false" visibility="public"
  5959. deprecated="not deprecated">
  5960. </constructor>
  5961. <method name="shutdown"
  5962. abstract="false" native="false" synchronized="false"
  5963. static="false" final="false" visibility="public"
  5964. deprecated="not deprecated">
  5965. </method>
  5966. <doc>
  5967. <![CDATA[This is the JMX MBean for reporting the DataNode Activity.
  5968. The MBean is register using the name
  5969. "hadoop:service=DataNode,name=DataNodeActivity-<storageid>"
  5970. Many of the activity metrics are sampled and averaged on an interval
  5971. which can be specified in the metrics config file.
  5972. <p>
  5973. For the metrics that are sampled and averaged, one must specify
  5974. a metrics context that does periodic update calls. Most metrics contexts do.
  5975. The default Null metrics context however does NOT. So if you aren't
  5976. using any other metrics context then you can turn on the viewing and averaging
  5977. of sampled metrics by specifying the following two lines
  5978. in the hadoop-meterics.properties file:
  5979. <pre>
  5980. dfs.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  5981. dfs.period=10
  5982. </pre>
  5983. <p>
  5984. Note that the metrics are collected regardless of the context used.
  5985. The context with the update thread is used to average the data periodically
  5986. Impl details: We use a dynamic mbean that gets the list of the metrics
  5987. from the metrics registry passed as an argument to the constructor]]>
  5988. </doc>
  5989. </class>
  5990. <!-- end class org.apache.hadoop.hdfs.server.datanode.metrics.DataNodeActivityMBean -->
  5991. <!-- start class org.apache.hadoop.hdfs.server.datanode.metrics.DataNodeMetrics -->
  5992. <class name="DataNodeMetrics" extends="java.lang.Object"
  5993. abstract="false"
  5994. static="false" final="false" visibility="public"
  5995. deprecated="not deprecated">
  5996. <implements name="org.apache.hadoop.metrics.Updater"/>
  5997. <constructor name="DataNodeMetrics" type="org.apache.hadoop.conf.Configuration, java.lang.String"
  5998. static="false" final="false" visibility="public"
  5999. deprecated="not deprecated">
  6000. </constructor>
  6001. <method name="shutdown"
  6002. abstract="false" native="false" synchronized="false"
  6003. static="false" final="false" visibility="public"
  6004. deprecated="not deprecated">
  6005. </method>
  6006. <method name="doUpdates"
  6007. abstract="false" native="false" synchronized="false"
  6008. static="false" final="false" visibility="public"
  6009. deprecated="not deprecated">
  6010. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  6011. <doc>
  6012. <![CDATA[Since this object is a registered updater, this method will be called
  6013. periodically, e.g. every 5 seconds.]]>
  6014. </doc>
  6015. </method>
  6016. <method name="resetAllMinMax"
  6017. abstract="false" native="false" synchronized="false"
  6018. static="false" final="false" visibility="public"
  6019. deprecated="not deprecated">
  6020. </method>
  6021. <field name="registry" type="org.apache.hadoop.metrics.util.MetricsRegistry"
  6022. transient="false" volatile="false"
  6023. static="false" final="false" visibility="public"
  6024. deprecated="not deprecated">
  6025. </field>
  6026. <field name="bytesWritten" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingLong"
  6027. transient="false" volatile="false"
  6028. static="false" final="false" visibility="public"
  6029. deprecated="not deprecated">
  6030. </field>
  6031. <field name="bytesRead" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingLong"
  6032. transient="false" volatile="false"
  6033. static="false" final="false" visibility="public"
  6034. deprecated="not deprecated">
  6035. </field>
  6036. <field name="blocksWritten" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6037. transient="false" volatile="false"
  6038. static="false" final="false" visibility="public"
  6039. deprecated="not deprecated">
  6040. </field>
  6041. <field name="blocksRead" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6042. transient="false" volatile="false"
  6043. static="false" final="false" visibility="public"
  6044. deprecated="not deprecated">
  6045. </field>
  6046. <field name="blocksReplicated" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6047. transient="false" volatile="false"
  6048. static="false" final="false" visibility="public"
  6049. deprecated="not deprecated">
  6050. </field>
  6051. <field name="blocksRemoved" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6052. transient="false" volatile="false"
  6053. static="false" final="false" visibility="public"
  6054. deprecated="not deprecated">
  6055. </field>
  6056. <field name="blocksVerified" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6057. transient="false" volatile="false"
  6058. static="false" final="false" visibility="public"
  6059. deprecated="not deprecated">
  6060. </field>
  6061. <field name="blockVerificationFailures" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6062. transient="false" volatile="false"
  6063. static="false" final="false" visibility="public"
  6064. deprecated="not deprecated">
  6065. </field>
  6066. <field name="readsFromLocalClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6067. transient="false" volatile="false"
  6068. static="false" final="false" visibility="public"
  6069. deprecated="not deprecated">
  6070. </field>
  6071. <field name="readsFromRemoteClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6072. transient="false" volatile="false"
  6073. static="false" final="false" visibility="public"
  6074. deprecated="not deprecated">
  6075. </field>
  6076. <field name="writesFromLocalClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6077. transient="false" volatile="false"
  6078. static="false" final="false" visibility="public"
  6079. deprecated="not deprecated">
  6080. </field>
  6081. <field name="writesFromRemoteClient" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  6082. transient="false" volatile="false"
  6083. static="false" final="false" visibility="public"
  6084. deprecated="not deprecated">
  6085. </field>
  6086. <field name="readBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  6087. transient="false" volatile="false"
  6088. static="false" final="false" visibility="public"
  6089. deprecated="not deprecated">
  6090. </field>
  6091. <field name="writeBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  6092. transient="false" volatile="false"
  6093. static="false" final="false" visibility="public"
  6094. deprecated="not deprecated">
  6095. </field>
  6096. <field name="readMetadataOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  6097. transient="false" volatile="false"
  6098. static="false" final="false" visibility="public"
  6099. deprecated="not deprecated">
  6100. </field>
  6101. <field name="blockChecksumOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  6102. transient="false" volatile="false"
  6103. static="false" final="false" visibility="public"
  6104. deprecated="not deprecated">
  6105. </field>
  6106. <field name="copyBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  6107. transient="false" volatile="false"
  6108. static="false" final="false" visibility="public"
  6109. deprecated="not deprecated">
  6110. </field>
  6111. <field name="replaceBlockOp" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  6112. transient="false" volatile="false"
  6113. static="false" final="false" visibility="public"
  6114. deprecated="not deprecated">
  6115. </field>
  6116. <field name="heartbeats" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  6117. transient="false" volatile="false"
  6118. static="false" final="false" visibility="public"
  6119. deprecated="not deprecated">
  6120. </field>
  6121. <field name="blockReports" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  6122. transient="false" volatile="false"
  6123. static="false" final="false" visibility="public"
  6124. deprecated="not deprecated">
  6125. </field>
  6126. <doc>
  6127. <![CDATA[This class is for maintaining the various DataNode statistics
  6128. and publishing them through the metrics interfaces.
  6129. This also registers the JMX MBean for RPC.
  6130. <p>
  6131. This class has a number of metrics variables that are publicly accessible;
  6132. these variables (objects) have methods to update their values;
  6133. for example:
  6134. <p> {@link #blocksRead}.inc()]]>
  6135. </doc>
  6136. </class>
  6137. <!-- end class org.apache.hadoop.hdfs.server.datanode.metrics.DataNodeMetrics -->
  6138. <!-- start interface org.apache.hadoop.hdfs.server.datanode.metrics.FSDatasetMBean -->
  6139. <interface name="FSDatasetMBean" abstract="true"
  6140. static="false" final="false" visibility="public"
  6141. deprecated="not deprecated">
  6142. <method name="getDfsUsed" return="long"
  6143. abstract="false" native="false" synchronized="false"
  6144. static="false" final="false" visibility="public"
  6145. deprecated="not deprecated">
  6146. <exception name="IOException" type="java.io.IOException"/>
  6147. <doc>
  6148. <![CDATA[Returns the total space (in bytes) used by dfs datanode
  6149. @return the total space used by dfs datanode
  6150. @throws IOException]]>
  6151. </doc>
  6152. </method>
  6153. <method name="getCapacity" return="long"
  6154. abstract="false" native="false" synchronized="false"
  6155. static="false" final="false" visibility="public"
  6156. deprecated="not deprecated">
  6157. <exception name="IOException" type="java.io.IOException"/>
  6158. <doc>
  6159. <![CDATA[Returns total capacity (in bytes) of storage (used and unused)
  6160. @return total capacity of storage (used and unused)
  6161. @throws IOException]]>
  6162. </doc>
  6163. </method>
  6164. <method name="getRemaining" return="long"
  6165. abstract="false" native="false" synchronized="false"
  6166. static="false" final="false" visibility="public"
  6167. deprecated="not deprecated">
  6168. <exception name="IOException" type="java.io.IOException"/>
  6169. <doc>
  6170. <![CDATA[Returns the amount of free storage space (in bytes)
  6171. @return The amount of free storage space
  6172. @throws IOException]]>
  6173. </doc>
  6174. </method>
  6175. <method name="getStorageInfo" return="java.lang.String"
  6176. abstract="false" native="false" synchronized="false"
  6177. static="false" final="false" visibility="public"
  6178. deprecated="not deprecated">
  6179. <doc>
  6180. <![CDATA[Returns the storage id of the underlying storage]]>
  6181. </doc>
  6182. </method>
  6183. <doc>
  6184. <![CDATA[This Interface defines the methods to get the status of a the FSDataset of
  6185. a data node.
  6186. It is also used for publishing via JMX (hence we follow the JMX naming
  6187. convention.)
  6188. * Note we have not used the MetricsDynamicMBeanBase to implement this
  6189. because the interface for the FSDatasetMBean is stable and should
  6190. be published as an interface.
  6191. <p>
  6192. Data Node runtime statistic info is report in another MBean
  6193. @see org.apache.hadoop.hdfs.server.datanode.metrics.DataNodeStatisticsMBean]]>
  6194. </doc>
  6195. </interface>
  6196. <!-- end interface org.apache.hadoop.hdfs.server.datanode.metrics.FSDatasetMBean -->
  6197. </package>
  6198. <package name="org.apache.hadoop.hdfs.server.namenode">
  6199. <!-- start class org.apache.hadoop.hdfs.server.namenode.CheckpointSignature -->
  6200. <class name="CheckpointSignature" extends="org.apache.hadoop.hdfs.server.common.StorageInfo"
  6201. abstract="false"
  6202. static="false" final="false" visibility="public"
  6203. deprecated="not deprecated">
  6204. <implements name="org.apache.hadoop.io.WritableComparable"/>
  6205. <method name="toString" return="java.lang.String"
  6206. abstract="false" native="false" synchronized="false"
  6207. static="false" final="false" visibility="public"
  6208. deprecated="not deprecated">
  6209. </method>
  6210. <method name="compareTo" return="int"
  6211. abstract="false" native="false" synchronized="false"
  6212. static="false" final="false" visibility="public"
  6213. deprecated="not deprecated">
  6214. <param name="o" type="org.apache.hadoop.hdfs.server.namenode.CheckpointSignature"/>
  6215. </method>
  6216. <method name="equals" return="boolean"
  6217. abstract="false" native="false" synchronized="false"
  6218. static="false" final="false" visibility="public"
  6219. deprecated="not deprecated">
  6220. <param name="o" type="java.lang.Object"/>
  6221. </method>
  6222. <method name="hashCode" return="int"
  6223. abstract="false" native="false" synchronized="false"
  6224. static="false" final="false" visibility="public"
  6225. deprecated="not deprecated">
  6226. </method>
  6227. <method name="write"
  6228. abstract="false" native="false" synchronized="false"
  6229. static="false" final="false" visibility="public"
  6230. deprecated="not deprecated">
  6231. <param name="out" type="java.io.DataOutput"/>
  6232. <exception name="IOException" type="java.io.IOException"/>
  6233. </method>
  6234. <method name="readFields"
  6235. abstract="false" native="false" synchronized="false"
  6236. static="false" final="false" visibility="public"
  6237. deprecated="not deprecated">
  6238. <param name="in" type="java.io.DataInput"/>
  6239. <exception name="IOException" type="java.io.IOException"/>
  6240. </method>
  6241. <doc>
  6242. <![CDATA[A unique signature intended to identify checkpoint transactions.]]>
  6243. </doc>
  6244. </class>
  6245. <!-- end class org.apache.hadoop.hdfs.server.namenode.CheckpointSignature -->
  6246. <!-- start class org.apache.hadoop.hdfs.server.namenode.CorruptReplicasMap -->
  6247. <class name="CorruptReplicasMap" extends="java.lang.Object"
  6248. abstract="false"
  6249. static="false" final="false" visibility="public"
  6250. deprecated="not deprecated">
  6251. <constructor name="CorruptReplicasMap"
  6252. static="false" final="false" visibility="public"
  6253. deprecated="not deprecated">
  6254. </constructor>
  6255. <method name="addToCorruptReplicasMap"
  6256. abstract="false" native="false" synchronized="false"
  6257. static="false" final="false" visibility="public"
  6258. deprecated="not deprecated">
  6259. <param name="blk" type="org.apache.hadoop.hdfs.protocol.Block"/>
  6260. <param name="dn" type="org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor"/>
  6261. <doc>
  6262. <![CDATA[Mark the block belonging to datanode as corrupt.
  6263. @param blk Block to be added to CorruptReplicasMap
  6264. @param dn DatanodeDescriptor which holds the corrupt replica]]>
  6265. </doc>
  6266. </method>
  6267. <method name="numCorruptReplicas" return="int"
  6268. abstract="false" native="false" synchronized="false"
  6269. static="false" final="false" visibility="public"
  6270. deprecated="not deprecated">
  6271. <param name="blk" type="org.apache.hadoop.hdfs.protocol.Block"/>
  6272. </method>
  6273. <method name="size" return="int"
  6274. abstract="false" native="false" synchronized="false"
  6275. static="false" final="false" visibility="public"
  6276. deprecated="not deprecated">
  6277. </method>
  6278. <doc>
  6279. <![CDATA[Stores information about all corrupt blocks in the File System.
  6280. A Block is considered corrupt only if all of its replicas are
  6281. corrupt. While reporting replicas of a Block, we hide any corrupt
  6282. copies. These copies are removed once Block is found to have
  6283. expected number of good replicas.
  6284. Mapping: Block -> TreeSet<DatanodeDescriptor>]]>
  6285. </doc>
  6286. </class>
  6287. <!-- end class org.apache.hadoop.hdfs.server.namenode.CorruptReplicasMap -->
  6288. <!-- start class org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor -->
  6289. <class name="DatanodeDescriptor" extends="org.apache.hadoop.hdfs.protocol.DatanodeInfo"
  6290. abstract="false"
  6291. static="false" final="false" visibility="public"
  6292. deprecated="not deprecated">
  6293. <constructor name="DatanodeDescriptor"
  6294. static="false" final="false" visibility="public"
  6295. deprecated="not deprecated">
  6296. <doc>
  6297. <![CDATA[Default constructor]]>
  6298. </doc>
  6299. </constructor>
  6300. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.hdfs.protocol.DatanodeID"
  6301. static="false" final="false" visibility="public"
  6302. deprecated="not deprecated">
  6303. <doc>
  6304. <![CDATA[DatanodeDescriptor constructor
  6305. @param nodeID id of the data node]]>
  6306. </doc>
  6307. </constructor>
  6308. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.hdfs.protocol.DatanodeID, java.lang.String"
  6309. static="false" final="false" visibility="public"
  6310. deprecated="not deprecated">
  6311. <doc>
  6312. <![CDATA[DatanodeDescriptor constructor
  6313. @param nodeID id of the data node
  6314. @param networkLocation location of the data node in network]]>
  6315. </doc>
  6316. </constructor>
  6317. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.hdfs.protocol.DatanodeID, java.lang.String, java.lang.String"
  6318. static="false" final="false" visibility="public"
  6319. deprecated="not deprecated">
  6320. <doc>
  6321. <![CDATA[DatanodeDescriptor constructor
  6322. @param nodeID id of the data node
  6323. @param networkLocation location of the data node in network
  6324. @param hostName it could be different from host specified for DatanodeID]]>
  6325. </doc>
  6326. </constructor>
  6327. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.hdfs.protocol.DatanodeID, long, long, long, int"
  6328. static="false" final="false" visibility="public"
  6329. deprecated="not deprecated">
  6330. <doc>
  6331. <![CDATA[DatanodeDescriptor constructor
  6332. @param nodeID id of the data node
  6333. @param capacity capacity of the data node
  6334. @param dfsUsed space used by the data node
  6335. @param remaining remaing capacity of the data node
  6336. @param xceiverCount # of data transfers at the data node]]>
  6337. </doc>
  6338. </constructor>
  6339. <constructor name="DatanodeDescriptor" type="org.apache.hadoop.hdfs.protocol.DatanodeID, java.lang.String, java.lang.String, long, long, long, int"
  6340. static="false" final="false" visibility="public"
  6341. deprecated="not deprecated">
  6342. <doc>
  6343. <![CDATA[DatanodeDescriptor constructor
  6344. @param nodeID id of the data node
  6345. @param networkLocation location of the data node in network
  6346. @param capacity capacity of the data node, including space used by non-dfs
  6347. @param dfsUsed the used space by dfs datanode
  6348. @param remaining remaing capacity of the data node
  6349. @param xceiverCount # of data transfers at the data node]]>
  6350. </doc>
  6351. </constructor>
  6352. <method name="numBlocks" return="int"
  6353. abstract="false" native="false" synchronized="false"
  6354. static="false" final="false" visibility="public"
  6355. deprecated="not deprecated">
  6356. </method>
  6357. <method name="getBlocksScheduled" return="int"
  6358. abstract="false" native="false" synchronized="false"
  6359. static="false" final="false" visibility="public"
  6360. deprecated="not deprecated">
  6361. <doc>
  6362. <![CDATA[@return Approximate number of blocks currently scheduled to be written
  6363. to this datanode.]]>
  6364. </doc>
  6365. </method>
  6366. <field name="isAlive" type="boolean"
  6367. transient="false" volatile="false"
  6368. static="false" final="false" visibility="protected"
  6369. deprecated="not deprecated">
  6370. </field>
  6371. <doc>
  6372. <![CDATA[DatanodeDescriptor tracks stats on a given DataNode,
  6373. such as available storage capacity, last update time, etc.,
  6374. and maintains a set of blocks stored on the datanode.
  6375. This data structure is a data structure that is internal
  6376. to the namenode. It is *not* sent over-the-wire to the Client
  6377. or the Datnodes. Neither is it stored persistently in the
  6378. fsImage.]]>
  6379. </doc>
  6380. </class>
  6381. <!-- end class org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor -->
  6382. <!-- start class org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor.BlockTargetPair -->
  6383. <class name="DatanodeDescriptor.BlockTargetPair" extends="java.lang.Object"
  6384. abstract="false"
  6385. static="true" final="false" visibility="public"
  6386. deprecated="not deprecated">
  6387. <field name="block" type="org.apache.hadoop.hdfs.protocol.Block"
  6388. transient="false" volatile="false"
  6389. static="false" final="true" visibility="public"
  6390. deprecated="not deprecated">
  6391. </field>
  6392. <field name="targets" type="org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor[]"
  6393. transient="false" volatile="false"
  6394. static="false" final="true" visibility="public"
  6395. deprecated="not deprecated">
  6396. </field>
  6397. <doc>
  6398. <![CDATA[Block and targets pair]]>
  6399. </doc>
  6400. </class>
  6401. <!-- end class org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor.BlockTargetPair -->
  6402. <!-- start class org.apache.hadoop.hdfs.server.namenode.FileChecksumServlets -->
  6403. <class name="FileChecksumServlets" extends="java.lang.Object"
  6404. abstract="false"
  6405. static="false" final="false" visibility="public"
  6406. deprecated="not deprecated">
  6407. <constructor name="FileChecksumServlets"
  6408. static="false" final="false" visibility="public"
  6409. deprecated="not deprecated">
  6410. </constructor>
  6411. <doc>
  6412. <![CDATA[Servlets for file checksum]]>
  6413. </doc>
  6414. </class>
  6415. <!-- end class org.apache.hadoop.hdfs.server.namenode.FileChecksumServlets -->
  6416. <!-- start class org.apache.hadoop.hdfs.server.namenode.FileChecksumServlets.GetServlet -->
  6417. <class name="FileChecksumServlets.GetServlet" extends="org.apache.hadoop.hdfs.server.namenode.DfsServlet"
  6418. abstract="false"
  6419. static="true" final="false" visibility="public"
  6420. deprecated="not deprecated">
  6421. <constructor name="FileChecksumServlets.GetServlet"
  6422. static="false" final="false" visibility="public"
  6423. deprecated="not deprecated">
  6424. </constructor>
  6425. <method name="doGet"
  6426. abstract="false" native="false" synchronized="false"
  6427. static="false" final="false" visibility="public"
  6428. deprecated="not deprecated">
  6429. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  6430. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  6431. <exception name="ServletException" type="javax.servlet.ServletException"/>
  6432. <exception name="IOException" type="java.io.IOException"/>
  6433. <doc>
  6434. <![CDATA[{@inheritDoc}]]>
  6435. </doc>
  6436. </method>
  6437. <doc>
  6438. <![CDATA[Get FileChecksum]]>
  6439. </doc>
  6440. </class>
  6441. <!-- end class org.apache.hadoop.hdfs.server.namenode.FileChecksumServlets.GetServlet -->
  6442. <!-- start class org.apache.hadoop.hdfs.server.namenode.FileChecksumServlets.RedirectServlet -->
  6443. <class name="FileChecksumServlets.RedirectServlet" extends="org.apache.hadoop.hdfs.server.namenode.DfsServlet"
  6444. abstract="false"
  6445. static="true" final="false" visibility="public"
  6446. deprecated="not deprecated">
  6447. <constructor name="FileChecksumServlets.RedirectServlet"
  6448. static="false" final="false" visibility="public"
  6449. deprecated="not deprecated">
  6450. </constructor>
  6451. <method name="doGet"
  6452. abstract="false" native="false" synchronized="false"
  6453. static="false" final="false" visibility="public"
  6454. deprecated="not deprecated">
  6455. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  6456. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  6457. <exception name="ServletException" type="javax.servlet.ServletException"/>
  6458. <exception name="IOException" type="java.io.IOException"/>
  6459. <doc>
  6460. <![CDATA[{@inheritDoc}]]>
  6461. </doc>
  6462. </method>
  6463. <doc>
  6464. <![CDATA[Redirect file checksum queries to an appropriate datanode.]]>
  6465. </doc>
  6466. </class>
  6467. <!-- end class org.apache.hadoop.hdfs.server.namenode.FileChecksumServlets.RedirectServlet -->
  6468. <!-- start class org.apache.hadoop.hdfs.server.namenode.FileDataServlet -->
  6469. <class name="FileDataServlet" extends="org.apache.hadoop.hdfs.server.namenode.DfsServlet"
  6470. abstract="false"
  6471. static="false" final="false" visibility="public"
  6472. deprecated="not deprecated">
  6473. <constructor name="FileDataServlet"
  6474. static="false" final="false" visibility="public"
  6475. deprecated="not deprecated">
  6476. </constructor>
  6477. <method name="createUri" return="java.net.URI"
  6478. abstract="false" native="false" synchronized="false"
  6479. static="false" final="false" visibility="protected"
  6480. deprecated="not deprecated">
  6481. <param name="i" type="org.apache.hadoop.fs.FileStatus"/>
  6482. <param name="ugi" type="org.apache.hadoop.security.UnixUserGroupInformation"/>
  6483. <param name="nnproxy" type="org.apache.hadoop.hdfs.protocol.ClientProtocol"/>
  6484. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  6485. <exception name="IOException" type="java.io.IOException"/>
  6486. <exception name="URISyntaxException" type="java.net.URISyntaxException"/>
  6487. <doc>
  6488. <![CDATA[Create a redirection URI]]>
  6489. </doc>
  6490. </method>
  6491. <method name="doGet"
  6492. abstract="false" native="false" synchronized="false"
  6493. static="false" final="false" visibility="public"
  6494. deprecated="not deprecated">
  6495. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  6496. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  6497. <exception name="IOException" type="java.io.IOException"/>
  6498. <doc>
  6499. <![CDATA[Service a GET request as described below.
  6500. Request:
  6501. {@code
  6502. GET http://<nn>:<port>/data[/<path>] HTTP/1.1
  6503. }]]>
  6504. </doc>
  6505. </method>
  6506. <doc>
  6507. <![CDATA[Redirect queries about the hosted filesystem to an appropriate datanode.
  6508. @see org.apache.hadoop.hdfs.HftpFileSystem]]>
  6509. </doc>
  6510. </class>
  6511. <!-- end class org.apache.hadoop.hdfs.server.namenode.FileDataServlet -->
  6512. <!-- start class org.apache.hadoop.hdfs.server.namenode.FsckServlet -->
  6513. <class name="FsckServlet" extends="javax.servlet.http.HttpServlet"
  6514. abstract="false"
  6515. static="false" final="false" visibility="public"
  6516. deprecated="not deprecated">
  6517. <constructor name="FsckServlet"
  6518. static="false" final="false" visibility="public"
  6519. deprecated="not deprecated">
  6520. </constructor>
  6521. <method name="doGet"
  6522. abstract="false" native="false" synchronized="false"
  6523. static="false" final="false" visibility="public"
  6524. deprecated="not deprecated">
  6525. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  6526. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  6527. <exception name="ServletException" type="javax.servlet.ServletException"/>
  6528. <exception name="IOException" type="java.io.IOException"/>
  6529. </method>
  6530. <doc>
  6531. <![CDATA[This class is used in Namesystem's jetty to do fsck on namenode.]]>
  6532. </doc>
  6533. </class>
  6534. <!-- end class org.apache.hadoop.hdfs.server.namenode.FsckServlet -->
  6535. <!-- start class org.apache.hadoop.hdfs.server.namenode.FSEditLog -->
  6536. <class name="FSEditLog" extends="java.lang.Object"
  6537. abstract="false"
  6538. static="false" final="false" visibility="public"
  6539. deprecated="not deprecated">
  6540. <method name="open"
  6541. abstract="false" native="false" synchronized="true"
  6542. static="false" final="false" visibility="public"
  6543. deprecated="not deprecated">
  6544. <exception name="IOException" type="java.io.IOException"/>
  6545. <doc>
  6546. <![CDATA[Create empty edit log files.
  6547. Initialize the output stream for logging.
  6548. @throws IOException]]>
  6549. </doc>
  6550. </method>
  6551. <method name="createEditLogFile"
  6552. abstract="false" native="false" synchronized="true"
  6553. static="false" final="false" visibility="public"
  6554. deprecated="not deprecated">
  6555. <param name="name" type="java.io.File"/>
  6556. <exception name="IOException" type="java.io.IOException"/>
  6557. </method>
  6558. <method name="close"
  6559. abstract="false" native="false" synchronized="true"
  6560. static="false" final="false" visibility="public"
  6561. deprecated="not deprecated">
  6562. <exception name="IOException" type="java.io.IOException"/>
  6563. <doc>
  6564. <![CDATA[Shutdown the file store.]]>
  6565. </doc>
  6566. </method>
  6567. <method name="logSync"
  6568. abstract="false" native="false" synchronized="false"
  6569. static="false" final="false" visibility="public"
  6570. deprecated="not deprecated">
  6571. <exception name="IOException" type="java.io.IOException"/>
  6572. </method>
  6573. <method name="logOpenFile"
  6574. abstract="false" native="false" synchronized="false"
  6575. static="false" final="false" visibility="public"
  6576. deprecated="not deprecated">
  6577. <param name="path" type="java.lang.String"/>
  6578. <param name="newNode" type="org.apache.hadoop.hdfs.server.namenode.INodeFileUnderConstruction"/>
  6579. <exception name="IOException" type="java.io.IOException"/>
  6580. <doc>
  6581. <![CDATA[Add open lease record to edit log.
  6582. Records the block locations of the last block.]]>
  6583. </doc>
  6584. </method>
  6585. <method name="logCloseFile"
  6586. abstract="false" native="false" synchronized="false"
  6587. static="false" final="false" visibility="public"
  6588. deprecated="not deprecated">
  6589. <param name="path" type="java.lang.String"/>
  6590. <param name="newNode" type="org.apache.hadoop.hdfs.server.namenode.INodeFile"/>
  6591. <doc>
  6592. <![CDATA[Add close lease record to edit log.]]>
  6593. </doc>
  6594. </method>
  6595. <method name="logMkDir"
  6596. abstract="false" native="false" synchronized="false"
  6597. static="false" final="false" visibility="public"
  6598. deprecated="not deprecated">
  6599. <param name="path" type="java.lang.String"/>
  6600. <param name="newNode" type="org.apache.hadoop.hdfs.server.namenode.INode"/>
  6601. <doc>
  6602. <![CDATA[Add create directory record to edit log]]>
  6603. </doc>
  6604. </method>
  6605. <doc>
  6606. <![CDATA[FSEditLog maintains a log of the namespace modifications.]]>
  6607. </doc>
  6608. </class>
  6609. <!-- end class org.apache.hadoop.hdfs.server.namenode.FSEditLog -->
  6610. <!-- start class org.apache.hadoop.hdfs.server.namenode.FSImage -->
  6611. <class name="FSImage" extends="org.apache.hadoop.hdfs.server.common.Storage"
  6612. abstract="false"
  6613. static="false" final="false" visibility="public"
  6614. deprecated="not deprecated">
  6615. <constructor name="FSImage" type="org.apache.hadoop.hdfs.server.common.StorageInfo"
  6616. static="false" final="false" visibility="public"
  6617. deprecated="not deprecated">
  6618. </constructor>
  6619. <constructor name="FSImage" type="java.io.File"
  6620. static="false" final="false" visibility="public"
  6621. deprecated="not deprecated">
  6622. <exception name="IOException" type="java.io.IOException"/>
  6623. <doc>
  6624. <![CDATA[Represents an Image (image and edit file).]]>
  6625. </doc>
  6626. </constructor>
  6627. <method name="getFields"
  6628. abstract="false" native="false" synchronized="false"
  6629. static="false" final="false" visibility="protected"
  6630. deprecated="not deprecated">
  6631. <param name="props" type="java.util.Properties"/>
  6632. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  6633. <exception name="IOException" type="java.io.IOException"/>
  6634. </method>
  6635. <method name="setFields"
  6636. abstract="false" native="false" synchronized="false"
  6637. static="false" final="false" visibility="protected"
  6638. deprecated="not deprecated">
  6639. <param name="props" type="java.util.Properties"/>
  6640. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  6641. <exception name="IOException" type="java.io.IOException"/>
  6642. <doc>
  6643. <![CDATA[Write last checkpoint time and version file into the storage directory.
  6644. The version file should always be written last.
  6645. Missing or corrupted version file indicates that
  6646. the checkpoint is not valid.
  6647. @param sd storage directory
  6648. @throws IOException]]>
  6649. </doc>
  6650. </method>
  6651. <method name="getEditLog" return="org.apache.hadoop.hdfs.server.namenode.FSEditLog"
  6652. abstract="false" native="false" synchronized="false"
  6653. static="false" final="false" visibility="public"
  6654. deprecated="not deprecated">
  6655. </method>
  6656. <method name="isConversionNeeded" return="boolean"
  6657. abstract="false" native="false" synchronized="false"
  6658. static="false" final="false" visibility="public"
  6659. deprecated="not deprecated">
  6660. <param name="sd" type="org.apache.hadoop.hdfs.server.common.Storage.StorageDirectory"/>
  6661. <exception name="IOException" type="java.io.IOException"/>
  6662. </method>
  6663. <method name="saveFSImage"
  6664. abstract="false" native="false" synchronized="false"
  6665. static="false" final="false" visibility="public"
  6666. deprecated="not deprecated">
  6667. <exception name="IOException" type="java.io.IOException"/>
  6668. <doc>
  6669. <![CDATA[Save the contents of the FS image
  6670. and create empty edits.]]>
  6671. </doc>
  6672. </method>
  6673. <method name="format"
  6674. abstract="false" native="false" synchronized="false"
  6675. static="false" final="false" visibility="public"
  6676. deprecated="not deprecated">
  6677. <exception name="IOException" type="java.io.IOException"/>
  6678. </method>
  6679. <method name="getFsEditName" return="java.io.File"
  6680. abstract="false" native="false" synchronized="false"
  6681. static="false" final="false" visibility="public"
  6682. deprecated="not deprecated">
  6683. <exception name="IOException" type="java.io.IOException"/>
  6684. </method>
  6685. <method name="corruptPreUpgradeStorage"
  6686. abstract="false" native="false" synchronized="false"
  6687. static="false" final="false" visibility="protected"
  6688. deprecated="not deprecated">
  6689. <param name="rootDir" type="java.io.File"/>
  6690. <exception name="IOException" type="java.io.IOException"/>
  6691. </method>
  6692. <field name="checkpointTime" type="long"
  6693. transient="false" volatile="false"
  6694. static="false" final="false" visibility="protected"
  6695. deprecated="not deprecated">
  6696. </field>
  6697. <field name="removedStorageDirs" type="java.util.List"
  6698. transient="false" volatile="false"
  6699. static="false" final="false" visibility="protected"
  6700. deprecated="not deprecated">
  6701. <doc>
  6702. <![CDATA[list of failed (and thus removed) storages]]>
  6703. </doc>
  6704. </field>
  6705. <doc>
  6706. <![CDATA[FSImage handles checkpointing and logging of the namespace edits.]]>
  6707. </doc>
  6708. </class>
  6709. <!-- end class org.apache.hadoop.hdfs.server.namenode.FSImage -->
  6710. <!-- start class org.apache.hadoop.hdfs.server.namenode.FSNamesystem -->
  6711. <class name="FSNamesystem" extends="java.lang.Object"
  6712. abstract="false"
  6713. static="false" final="false" visibility="public"
  6714. deprecated="not deprecated">
  6715. <implements name="org.apache.hadoop.hdfs.protocol.FSConstants"/>
  6716. <implements name="org.apache.hadoop.hdfs.server.namenode.metrics.FSNamesystemMBean"/>
  6717. <method name="getNamespaceDirs" return="java.util.Collection"
  6718. abstract="false" native="false" synchronized="false"
  6719. static="true" final="false" visibility="public"
  6720. deprecated="not deprecated">
  6721. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6722. </method>
  6723. <method name="getNamespaceEditsDirs" return="java.util.Collection"
  6724. abstract="false" native="false" synchronized="false"
  6725. static="true" final="false" visibility="public"
  6726. deprecated="not deprecated">
  6727. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  6728. </method>
  6729. <method name="getUpgradePermission" return="org.apache.hadoop.fs.permission.PermissionStatus"
  6730. abstract="false" native="false" synchronized="false"
  6731. static="false" final="false" visibility="protected"
  6732. deprecated="not deprecated">
  6733. <doc>
  6734. <![CDATA[Return the default path permission when upgrading from releases with no
  6735. permissions (<=0.15) to releases with permissions (>=0.16)]]>
  6736. </doc>
  6737. </method>
  6738. <method name="getFSNamesystem" return="org.apache.hadoop.hdfs.server.namenode.FSNamesystem"
  6739. abstract="false" native="false" synchronized="false"
  6740. static="true" final="false" visibility="public"
  6741. deprecated="not deprecated">
  6742. <doc>
  6743. <![CDATA[Return the FSNamesystem object]]>
  6744. </doc>
  6745. </method>
  6746. <method name="close"
  6747. abstract="false" native="false" synchronized="false"
  6748. static="false" final="false" visibility="public"
  6749. deprecated="not deprecated">
  6750. <doc>
  6751. <![CDATA[Close down this file system manager.
  6752. Causes heartbeat and lease daemons to stop; waits briefly for
  6753. them to finish, but a short timeout returns control back to caller.]]>
  6754. </doc>
  6755. </method>
  6756. <method name="setPermission"
  6757. abstract="false" native="false" synchronized="true"
  6758. static="false" final="false" visibility="public"
  6759. deprecated="not deprecated">
  6760. <param name="src" type="java.lang.String"/>
  6761. <param name="permission" type="org.apache.hadoop.fs.permission.FsPermission"/>
  6762. <exception name="IOException" type="java.io.IOException"/>
  6763. <doc>
  6764. <![CDATA[Set permissions for an existing file.
  6765. @throws IOException]]>
  6766. </doc>
  6767. </method>
  6768. <method name="setOwner"
  6769. abstract="false" native="false" synchronized="true"
  6770. static="false" final="false" visibility="public"
  6771. deprecated="not deprecated">
  6772. <param name="src" type="java.lang.String"/>
  6773. <param name="username" type="java.lang.String"/>
  6774. <param name="group" type="java.lang.String"/>
  6775. <exception name="IOException" type="java.io.IOException"/>
  6776. <doc>
  6777. <![CDATA[Set owner for an existing file.
  6778. @throws IOException]]>
  6779. </doc>
  6780. </method>
  6781. <method name="getBlockLocations" return="org.apache.hadoop.hdfs.protocol.LocatedBlocks"
  6782. abstract="false" native="false" synchronized="false"
  6783. static="false" final="false" visibility="public"
  6784. deprecated="not deprecated">
  6785. <param name="src" type="java.lang.String"/>
  6786. <param name="offset" type="long"/>
  6787. <param name="length" type="long"/>
  6788. <exception name="IOException" type="java.io.IOException"/>
  6789. <doc>
  6790. <![CDATA[Get block locations within the specified range.
  6791. @see ClientProtocol#getBlockLocations(String, long, long)]]>
  6792. </doc>
  6793. </method>
  6794. <method name="getBlockLocations" return="org.apache.hadoop.hdfs.protocol.LocatedBlocks"
  6795. abstract="false" native="false" synchronized="false"
  6796. static="false" final="false" visibility="public"
  6797. deprecated="not deprecated">
  6798. <param name="src" type="java.lang.String"/>
  6799. <param name="offset" type="long"/>
  6800. <param name="length" type="long"/>
  6801. <param name="doAccessTime" type="boolean"/>
  6802. <exception name="IOException" type="java.io.IOException"/>
  6803. <doc>
  6804. <![CDATA[Get block locations within the specified range.
  6805. @see ClientProtocol#getBlockLocations(String, long, long)]]>
  6806. </doc>
  6807. </method>
  6808. <method name="setTimes"
  6809. abstract="false" native="false" synchronized="true"
  6810. static="false" final="false" visibility="public"
  6811. deprecated="not deprecated">
  6812. <param name="src" type="java.lang.String"/>
  6813. <param name="mtime" type="long"/>
  6814. <param name="atime" type="long"/>
  6815. <exception name="IOException" type="java.io.IOException"/>
  6816. <doc>
  6817. <![CDATA[stores the modification and access time for this inode.
  6818. The access time is precise upto an hour. The transaction, if needed, is
  6819. written to the edits log but is not flushed.]]>
  6820. </doc>
  6821. </method>
  6822. <method name="setReplication" return="boolean"
  6823. abstract="false" native="false" synchronized="false"
  6824. static="false" final="false" visibility="public"
  6825. deprecated="not deprecated">
  6826. <param name="src" type="java.lang.String"/>
  6827. <param name="replication" type="short"/>
  6828. <exception name="IOException" type="java.io.IOException"/>
  6829. <doc>
  6830. <![CDATA[Set replication for an existing file.
  6831. The NameNode sets new replication and schedules either replication of
  6832. under-replicated data blocks or removal of the eccessive block copies
  6833. if the blocks are over-replicated.
  6834. @see ClientProtocol#setReplication(String, short)
  6835. @param src file name
  6836. @param replication new replication
  6837. @return true if successful;
  6838. false if file does not exist or is a directory]]>
  6839. </doc>
  6840. </method>
  6841. <method name="getAdditionalBlock" return="org.apache.hadoop.hdfs.protocol.LocatedBlock"
  6842. abstract="false" native="false" synchronized="false"
  6843. static="false" final="false" visibility="public"
  6844. deprecated="not deprecated">
  6845. <param name="src" type="java.lang.String"/>
  6846. <param name="clientName" type="java.lang.String"/>
  6847. <exception name="IOException" type="java.io.IOException"/>
  6848. <doc>
  6849. <![CDATA[The client would like to obtain an additional block for the indicated
  6850. filename (which is being written-to). Return an array that consists
  6851. of the block, plus a set of machines. The first on this list should
  6852. be where the client writes data. Subsequent items in the list must
  6853. be provided in the connection to the first datanode.
  6854. Make sure the previous blocks have been reported by datanodes and
  6855. are replicated. Will return an empty 2-elt array if we want the
  6856. client to "try again later".]]>
  6857. </doc>
  6858. </method>
  6859. <method name="abandonBlock" return="boolean"
  6860. abstract="false" native="false" synchronized="true"
  6861. static="false" final="false" visibility="public"
  6862. deprecated="not deprecated">
  6863. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  6864. <param name="src" type="java.lang.String"/>
  6865. <param name="holder" type="java.lang.String"/>
  6866. <exception name="IOException" type="java.io.IOException"/>
  6867. <doc>
  6868. <![CDATA[The client would like to let go of the given block]]>
  6869. </doc>
  6870. </method>
  6871. <method name="completeFile" return="org.apache.hadoop.hdfs.server.namenode.FSNamesystem.CompleteFileStatus"
  6872. abstract="false" native="false" synchronized="false"
  6873. static="false" final="false" visibility="public"
  6874. deprecated="not deprecated">
  6875. <param name="src" type="java.lang.String"/>
  6876. <param name="holder" type="java.lang.String"/>
  6877. <exception name="IOException" type="java.io.IOException"/>
  6878. </method>
  6879. <method name="markBlockAsCorrupt"
  6880. abstract="false" native="false" synchronized="true"
  6881. static="false" final="false" visibility="public"
  6882. deprecated="not deprecated">
  6883. <param name="blk" type="org.apache.hadoop.hdfs.protocol.Block"/>
  6884. <param name="dn" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo"/>
  6885. <exception name="IOException" type="java.io.IOException"/>
  6886. <doc>
  6887. <![CDATA[Mark the block belonging to datanode as corrupt
  6888. @param blk Block to be marked as corrupt
  6889. @param dn Datanode which holds the corrupt replica]]>
  6890. </doc>
  6891. </method>
  6892. <method name="invalidateBlock"
  6893. abstract="false" native="false" synchronized="true"
  6894. static="false" final="false" visibility="public"
  6895. deprecated="not deprecated">
  6896. <param name="blk" type="org.apache.hadoop.hdfs.protocol.Block"/>
  6897. <param name="dn" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo"/>
  6898. <exception name="IOException" type="java.io.IOException"/>
  6899. <doc>
  6900. <![CDATA[Invalidates the given block on the given datanode.]]>
  6901. </doc>
  6902. </method>
  6903. <method name="renameTo" return="boolean"
  6904. abstract="false" native="false" synchronized="false"
  6905. static="false" final="false" visibility="public"
  6906. deprecated="not deprecated">
  6907. <param name="src" type="java.lang.String"/>
  6908. <param name="dst" type="java.lang.String"/>
  6909. <exception name="IOException" type="java.io.IOException"/>
  6910. <doc>
  6911. <![CDATA[Change the indicated filename.]]>
  6912. </doc>
  6913. </method>
  6914. <method name="delete" return="boolean"
  6915. abstract="false" native="false" synchronized="false"
  6916. static="false" final="false" visibility="public"
  6917. deprecated="not deprecated">
  6918. <param name="src" type="java.lang.String"/>
  6919. <param name="recursive" type="boolean"/>
  6920. <exception name="IOException" type="java.io.IOException"/>
  6921. <doc>
  6922. <![CDATA[Remove the indicated filename from namespace. If the filename
  6923. is a directory (non empty) and recursive is set to false then throw exception.]]>
  6924. </doc>
  6925. </method>
  6926. <method name="mkdirs" return="boolean"
  6927. abstract="false" native="false" synchronized="false"
  6928. static="false" final="false" visibility="public"
  6929. deprecated="not deprecated">
  6930. <param name="src" type="java.lang.String"/>
  6931. <param name="permissions" type="org.apache.hadoop.fs.permission.PermissionStatus"/>
  6932. <exception name="IOException" type="java.io.IOException"/>
  6933. <doc>
  6934. <![CDATA[Create all the necessary directories]]>
  6935. </doc>
  6936. </method>
  6937. <method name="getListing" return="org.apache.hadoop.fs.FileStatus[]"
  6938. abstract="false" native="false" synchronized="false"
  6939. static="false" final="false" visibility="public"
  6940. deprecated="not deprecated">
  6941. <param name="src" type="java.lang.String"/>
  6942. <exception name="IOException" type="java.io.IOException"/>
  6943. <doc>
  6944. <![CDATA[Get a listing of all files at 'src'. The Object[] array
  6945. exists so we can return file attributes (soon to be implemented)]]>
  6946. </doc>
  6947. </method>
  6948. <method name="registerDatanode"
  6949. abstract="false" native="false" synchronized="true"
  6950. static="false" final="false" visibility="public"
  6951. deprecated="not deprecated">
  6952. <param name="nodeReg" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  6953. <exception name="IOException" type="java.io.IOException"/>
  6954. <doc>
  6955. <![CDATA[Register Datanode.
  6956. <p>
  6957. The purpose of registration is to identify whether the new datanode
  6958. serves a new data storage, and will report new data block copies,
  6959. which the namenode was not aware of; or the datanode is a replacement
  6960. node for the data storage that was previously served by a different
  6961. or the same (in terms of host:port) datanode.
  6962. The data storages are distinguished by their storageIDs. When a new
  6963. data storage is reported the namenode issues a new unique storageID.
  6964. <p>
  6965. Finally, the namenode returns its namespaceID as the registrationID
  6966. for the datanodes.
  6967. namespaceID is a persistent attribute of the name space.
  6968. The registrationID is checked every time the datanode is communicating
  6969. with the namenode.
  6970. Datanodes with inappropriate registrationID are rejected.
  6971. If the namenode stops, and then restarts it can restore its
  6972. namespaceID and will continue serving the datanodes that has previously
  6973. registered with the namenode without restarting the whole cluster.
  6974. @see org.apache.hadoop.hdfs.server.datanode.DataNode#register()]]>
  6975. </doc>
  6976. </method>
  6977. <method name="getRegistrationID" return="java.lang.String"
  6978. abstract="false" native="false" synchronized="false"
  6979. static="false" final="false" visibility="public"
  6980. deprecated="not deprecated">
  6981. <doc>
  6982. <![CDATA[Get registrationID for datanodes based on the namespaceID.
  6983. @see #registerDatanode(DatanodeRegistration)
  6984. @see FSImage#newNamespaceID()
  6985. @return registration ID]]>
  6986. </doc>
  6987. </method>
  6988. <method name="computeDatanodeWork" return="int"
  6989. abstract="false" native="false" synchronized="false"
  6990. static="false" final="false" visibility="public"
  6991. deprecated="not deprecated">
  6992. <exception name="IOException" type="java.io.IOException"/>
  6993. <doc>
  6994. <![CDATA[Compute block replication and block invalidation work
  6995. that can be scheduled on data-nodes.
  6996. The datanode will be informed of this work at the next heartbeat.
  6997. @return number of blocks scheduled for replication or removal.]]>
  6998. </doc>
  6999. </method>
  7000. <method name="setNodeReplicationLimit"
  7001. abstract="false" native="false" synchronized="false"
  7002. static="false" final="false" visibility="public"
  7003. deprecated="not deprecated">
  7004. <param name="limit" type="int"/>
  7005. </method>
  7006. <method name="removeDatanode"
  7007. abstract="false" native="false" synchronized="true"
  7008. static="false" final="false" visibility="public"
  7009. deprecated="not deprecated">
  7010. <param name="nodeID" type="org.apache.hadoop.hdfs.protocol.DatanodeID"/>
  7011. <exception name="IOException" type="java.io.IOException"/>
  7012. <doc>
  7013. <![CDATA[remove a datanode descriptor
  7014. @param nodeID datanode ID]]>
  7015. </doc>
  7016. </method>
  7017. <method name="processReport"
  7018. abstract="false" native="false" synchronized="true"
  7019. static="false" final="false" visibility="public"
  7020. deprecated="not deprecated">
  7021. <param name="nodeID" type="org.apache.hadoop.hdfs.protocol.DatanodeID"/>
  7022. <param name="newReport" type="org.apache.hadoop.hdfs.protocol.BlockListAsLongs"/>
  7023. <exception name="IOException" type="java.io.IOException"/>
  7024. <doc>
  7025. <![CDATA[The given node is reporting all its blocks. Use this info to
  7026. update the (machine-->blocklist) and (block-->machinelist) tables.]]>
  7027. </doc>
  7028. </method>
  7029. <method name="blockReceived"
  7030. abstract="false" native="false" synchronized="true"
  7031. static="false" final="false" visibility="public"
  7032. deprecated="not deprecated">
  7033. <param name="nodeID" type="org.apache.hadoop.hdfs.protocol.DatanodeID"/>
  7034. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  7035. <param name="delHint" type="java.lang.String"/>
  7036. <exception name="IOException" type="java.io.IOException"/>
  7037. <doc>
  7038. <![CDATA[The given node is reporting that it received a certain block.]]>
  7039. </doc>
  7040. </method>
  7041. <method name="getMissingBlocksCount" return="long"
  7042. abstract="false" native="false" synchronized="false"
  7043. static="false" final="false" visibility="public"
  7044. deprecated="not deprecated">
  7045. </method>
  7046. <method name="getCapacityTotal" return="long"
  7047. abstract="false" native="false" synchronized="false"
  7048. static="false" final="false" visibility="public"
  7049. deprecated="not deprecated">
  7050. <doc>
  7051. <![CDATA[Total raw bytes including non-dfs used space.]]>
  7052. </doc>
  7053. </method>
  7054. <method name="getCapacityUsed" return="long"
  7055. abstract="false" native="false" synchronized="false"
  7056. static="false" final="false" visibility="public"
  7057. deprecated="not deprecated">
  7058. <doc>
  7059. <![CDATA[Total used space by data nodes]]>
  7060. </doc>
  7061. </method>
  7062. <method name="getCapacityUsedPercent" return="float"
  7063. abstract="false" native="false" synchronized="false"
  7064. static="false" final="false" visibility="public"
  7065. deprecated="not deprecated">
  7066. <doc>
  7067. <![CDATA[Total used space by data nodes as percentage of total capacity]]>
  7068. </doc>
  7069. </method>
  7070. <method name="getCapacityUsedNonDFS" return="long"
  7071. abstract="false" native="false" synchronized="false"
  7072. static="false" final="false" visibility="public"
  7073. deprecated="not deprecated">
  7074. <doc>
  7075. <![CDATA[Total used space by data nodes for non DFS purposes such
  7076. as storing temporary files on the local file system]]>
  7077. </doc>
  7078. </method>
  7079. <method name="getCapacityRemaining" return="long"
  7080. abstract="false" native="false" synchronized="false"
  7081. static="false" final="false" visibility="public"
  7082. deprecated="not deprecated">
  7083. <doc>
  7084. <![CDATA[Total non-used raw bytes.]]>
  7085. </doc>
  7086. </method>
  7087. <method name="getCapacityRemainingPercent" return="float"
  7088. abstract="false" native="false" synchronized="false"
  7089. static="false" final="false" visibility="public"
  7090. deprecated="not deprecated">
  7091. <doc>
  7092. <![CDATA[Total remaining space by data nodes as percentage of total capacity]]>
  7093. </doc>
  7094. </method>
  7095. <method name="getTotalLoad" return="int"
  7096. abstract="false" native="false" synchronized="false"
  7097. static="false" final="false" visibility="public"
  7098. deprecated="not deprecated">
  7099. <doc>
  7100. <![CDATA[Total number of connections.]]>
  7101. </doc>
  7102. </method>
  7103. <method name="datanodeReport" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"
  7104. abstract="false" native="false" synchronized="true"
  7105. static="false" final="false" visibility="public"
  7106. deprecated="not deprecated">
  7107. <param name="type" type="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType"/>
  7108. <exception name="AccessControlException" type="org.apache.hadoop.security.AccessControlException"/>
  7109. </method>
  7110. <method name="DFSNodesStatus"
  7111. abstract="false" native="false" synchronized="true"
  7112. static="false" final="false" visibility="public"
  7113. deprecated="not deprecated">
  7114. <param name="live" type="java.util.ArrayList"/>
  7115. <param name="dead" type="java.util.ArrayList"/>
  7116. </method>
  7117. <method name="stopDecommission"
  7118. abstract="false" native="false" synchronized="false"
  7119. static="false" final="false" visibility="public"
  7120. deprecated="not deprecated">
  7121. <param name="node" type="org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor"/>
  7122. <exception name="IOException" type="java.io.IOException"/>
  7123. <doc>
  7124. <![CDATA[Stop decommissioning the specified datanodes.]]>
  7125. </doc>
  7126. </method>
  7127. <method name="getDataNodeInfo" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo"
  7128. abstract="false" native="false" synchronized="false"
  7129. static="false" final="false" visibility="public"
  7130. deprecated="not deprecated">
  7131. <param name="name" type="java.lang.String"/>
  7132. </method>
  7133. <method name="getDFSNameNodeAddress" return="java.net.InetSocketAddress"
  7134. abstract="false" native="false" synchronized="false"
  7135. static="false" final="false" visibility="public"
  7136. deprecated="use {@link NameNode#getNameNodeAddress()} instead.">
  7137. <doc>
  7138. <![CDATA[@deprecated use {@link NameNode#getNameNodeAddress()} instead.]]>
  7139. </doc>
  7140. </method>
  7141. <method name="getStartTime" return="java.util.Date"
  7142. abstract="false" native="false" synchronized="false"
  7143. static="false" final="false" visibility="public"
  7144. deprecated="not deprecated">
  7145. </method>
  7146. <method name="refreshNodes"
  7147. abstract="false" native="false" synchronized="false"
  7148. static="false" final="false" visibility="public"
  7149. deprecated="not deprecated">
  7150. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7151. <exception name="IOException" type="java.io.IOException"/>
  7152. <doc>
  7153. <![CDATA[Rereads the config to get hosts and exclude list file names.
  7154. Rereads the files to update the hosts and exclude lists. It
  7155. checks if any of the hosts have changed states:
  7156. 1. Added to hosts --> no further work needed here.
  7157. 2. Removed from hosts --> mark AdminState as decommissioned.
  7158. 3. Added to exclude --> start decommission.
  7159. 4. Removed from exclude --> stop decommission.]]>
  7160. </doc>
  7161. </method>
  7162. <method name="getDatanode" return="org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor"
  7163. abstract="false" native="false" synchronized="false"
  7164. static="false" final="false" visibility="public"
  7165. deprecated="not deprecated">
  7166. <param name="nodeID" type="org.apache.hadoop.hdfs.protocol.DatanodeID"/>
  7167. <exception name="IOException" type="java.io.IOException"/>
  7168. <doc>
  7169. <![CDATA[Get data node by storage ID.
  7170. @param nodeID
  7171. @return DatanodeDescriptor or null if the node is not found.
  7172. @throws IOException]]>
  7173. </doc>
  7174. </method>
  7175. <method name="randomDataNode" return="java.lang.String"
  7176. abstract="false" native="false" synchronized="false"
  7177. static="false" final="false" visibility="public"
  7178. deprecated="not deprecated">
  7179. </method>
  7180. <method name="getRandomDatanode" return="org.apache.hadoop.hdfs.server.namenode.DatanodeDescriptor"
  7181. abstract="false" native="false" synchronized="false"
  7182. static="false" final="false" visibility="public"
  7183. deprecated="not deprecated">
  7184. </method>
  7185. <method name="getBlocksTotal" return="long"
  7186. abstract="false" native="false" synchronized="false"
  7187. static="false" final="false" visibility="public"
  7188. deprecated="not deprecated">
  7189. <doc>
  7190. <![CDATA[Get the total number of blocks in the system.]]>
  7191. </doc>
  7192. </method>
  7193. <method name="getFilesTotal" return="long"
  7194. abstract="false" native="false" synchronized="false"
  7195. static="false" final="false" visibility="public"
  7196. deprecated="not deprecated">
  7197. </method>
  7198. <method name="getPendingReplicationBlocks" return="long"
  7199. abstract="false" native="false" synchronized="false"
  7200. static="false" final="false" visibility="public"
  7201. deprecated="not deprecated">
  7202. </method>
  7203. <method name="getUnderReplicatedBlocks" return="long"
  7204. abstract="false" native="false" synchronized="false"
  7205. static="false" final="false" visibility="public"
  7206. deprecated="not deprecated">
  7207. </method>
  7208. <method name="getCorruptReplicaBlocksCount" return="long"
  7209. abstract="false" native="false" synchronized="false"
  7210. static="false" final="false" visibility="public"
  7211. deprecated="not deprecated">
  7212. <doc>
  7213. <![CDATA[Returns number of blocks with corrupt replicas]]>
  7214. </doc>
  7215. </method>
  7216. <method name="getScheduledReplicationBlocks" return="long"
  7217. abstract="false" native="false" synchronized="false"
  7218. static="false" final="false" visibility="public"
  7219. deprecated="not deprecated">
  7220. </method>
  7221. <method name="getFSState" return="java.lang.String"
  7222. abstract="false" native="false" synchronized="false"
  7223. static="false" final="false" visibility="public"
  7224. deprecated="not deprecated">
  7225. </method>
  7226. <method name="getFSNamesystemMetrics" return="org.apache.hadoop.hdfs.server.namenode.metrics.FSNamesystemMetrics"
  7227. abstract="false" native="false" synchronized="false"
  7228. static="false" final="false" visibility="public"
  7229. deprecated="not deprecated">
  7230. <doc>
  7231. <![CDATA[get FSNamesystemMetrics]]>
  7232. </doc>
  7233. </method>
  7234. <method name="shutdown"
  7235. abstract="false" native="false" synchronized="false"
  7236. static="false" final="false" visibility="public"
  7237. deprecated="not deprecated">
  7238. <doc>
  7239. <![CDATA[shutdown FSNamesystem]]>
  7240. </doc>
  7241. </method>
  7242. <method name="numLiveDataNodes" return="int"
  7243. abstract="false" native="false" synchronized="false"
  7244. static="false" final="false" visibility="public"
  7245. deprecated="not deprecated">
  7246. <doc>
  7247. <![CDATA[Number of live data nodes
  7248. @return Number of live data nodes]]>
  7249. </doc>
  7250. </method>
  7251. <method name="numDeadDataNodes" return="int"
  7252. abstract="false" native="false" synchronized="false"
  7253. static="false" final="false" visibility="public"
  7254. deprecated="not deprecated">
  7255. <doc>
  7256. <![CDATA[Number of dead data nodes
  7257. @return Number of dead data nodes]]>
  7258. </doc>
  7259. </method>
  7260. <method name="setGenerationStamp"
  7261. abstract="false" native="false" synchronized="false"
  7262. static="false" final="false" visibility="public"
  7263. deprecated="not deprecated">
  7264. <param name="stamp" type="long"/>
  7265. <doc>
  7266. <![CDATA[Sets the generation stamp for this filesystem]]>
  7267. </doc>
  7268. </method>
  7269. <method name="getGenerationStamp" return="long"
  7270. abstract="false" native="false" synchronized="false"
  7271. static="false" final="false" visibility="public"
  7272. deprecated="not deprecated">
  7273. <doc>
  7274. <![CDATA[Gets the generation stamp for this filesystem]]>
  7275. </doc>
  7276. </method>
  7277. <field name="LOG" type="org.apache.commons.logging.Log"
  7278. transient="false" volatile="false"
  7279. static="true" final="true" visibility="public"
  7280. deprecated="not deprecated">
  7281. </field>
  7282. <field name="AUDIT_FORMAT" type="java.lang.String"
  7283. transient="false" volatile="false"
  7284. static="true" final="true" visibility="public"
  7285. deprecated="not deprecated">
  7286. </field>
  7287. <field name="auditLog" type="org.apache.commons.logging.Log"
  7288. transient="false" volatile="false"
  7289. static="true" final="true" visibility="public"
  7290. deprecated="not deprecated">
  7291. </field>
  7292. <field name="dir" type="org.apache.hadoop.hdfs.server.namenode.FSDirectory"
  7293. transient="false" volatile="false"
  7294. static="false" final="false" visibility="public"
  7295. deprecated="not deprecated">
  7296. </field>
  7297. <field name="corruptReplicas" type="org.apache.hadoop.hdfs.server.namenode.CorruptReplicasMap"
  7298. transient="false" volatile="false"
  7299. static="false" final="false" visibility="public"
  7300. deprecated="not deprecated">
  7301. </field>
  7302. <field name="leaseManager" type="org.apache.hadoop.hdfs.server.namenode.LeaseManager"
  7303. transient="false" volatile="false"
  7304. static="false" final="false" visibility="public"
  7305. deprecated="not deprecated">
  7306. </field>
  7307. <field name="lmthread" type="org.apache.hadoop.util.Daemon"
  7308. transient="false" volatile="false"
  7309. static="false" final="false" visibility="public"
  7310. deprecated="not deprecated">
  7311. </field>
  7312. <field name="replthread" type="org.apache.hadoop.util.Daemon"
  7313. transient="false" volatile="false"
  7314. static="false" final="false" visibility="public"
  7315. deprecated="not deprecated">
  7316. </field>
  7317. <field name="fsNamesystemObject" type="org.apache.hadoop.hdfs.server.namenode.FSNamesystem"
  7318. transient="false" volatile="false"
  7319. static="true" final="false" visibility="public"
  7320. deprecated="not deprecated">
  7321. </field>
  7322. <doc>
  7323. <![CDATA[FSNamesystem does the actual bookkeeping work for the
  7324. DataNode.
  7325. It tracks several important tables.
  7326. 1) valid fsname --> blocklist (kept on disk, logged)
  7327. 2) Set of all valid blocks (inverted #1)
  7328. 3) block --> machinelist (kept in memory, rebuilt dynamically from reports)
  7329. 4) machine --> blocklist (inverted #2)
  7330. 5) LRU cache of updated-heartbeat machines]]>
  7331. </doc>
  7332. </class>
  7333. <!-- end class org.apache.hadoop.hdfs.server.namenode.FSNamesystem -->
  7334. <!-- start class org.apache.hadoop.hdfs.server.namenode.GetImageServlet -->
  7335. <class name="GetImageServlet" extends="javax.servlet.http.HttpServlet"
  7336. abstract="false"
  7337. static="false" final="false" visibility="public"
  7338. deprecated="not deprecated">
  7339. <constructor name="GetImageServlet"
  7340. static="false" final="false" visibility="public"
  7341. deprecated="not deprecated">
  7342. </constructor>
  7343. <method name="doGet"
  7344. abstract="false" native="false" synchronized="false"
  7345. static="false" final="false" visibility="public"
  7346. deprecated="not deprecated">
  7347. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  7348. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  7349. <exception name="ServletException" type="javax.servlet.ServletException"/>
  7350. <exception name="IOException" type="java.io.IOException"/>
  7351. </method>
  7352. <doc>
  7353. <![CDATA[This class is used in Namesystem's jetty to retrieve a file.
  7354. Typically used by the Secondary NameNode to retrieve image and
  7355. edit file for periodic checkpointing.]]>
  7356. </doc>
  7357. </class>
  7358. <!-- end class org.apache.hadoop.hdfs.server.namenode.GetImageServlet -->
  7359. <!-- start class org.apache.hadoop.hdfs.server.namenode.JspHelper -->
  7360. <class name="JspHelper" extends="java.lang.Object"
  7361. abstract="false"
  7362. static="false" final="false" visibility="public"
  7363. deprecated="not deprecated">
  7364. <constructor name="JspHelper"
  7365. static="false" final="false" visibility="public"
  7366. deprecated="not deprecated">
  7367. </constructor>
  7368. <method name="randomNode" return="org.apache.hadoop.hdfs.protocol.DatanodeID"
  7369. abstract="false" native="false" synchronized="false"
  7370. static="false" final="false" visibility="public"
  7371. deprecated="not deprecated">
  7372. <exception name="IOException" type="java.io.IOException"/>
  7373. </method>
  7374. <method name="bestNode" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo"
  7375. abstract="false" native="false" synchronized="false"
  7376. static="false" final="false" visibility="public"
  7377. deprecated="not deprecated">
  7378. <param name="blk" type="org.apache.hadoop.hdfs.protocol.LocatedBlock"/>
  7379. <exception name="IOException" type="java.io.IOException"/>
  7380. </method>
  7381. <method name="streamBlockInAscii"
  7382. abstract="false" native="false" synchronized="false"
  7383. static="false" final="false" visibility="public"
  7384. deprecated="not deprecated">
  7385. <param name="addr" type="java.net.InetSocketAddress"/>
  7386. <param name="blockId" type="long"/>
  7387. <param name="genStamp" type="long"/>
  7388. <param name="blockSize" type="long"/>
  7389. <param name="offsetIntoBlock" type="long"/>
  7390. <param name="chunkSizeToView" type="long"/>
  7391. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  7392. <exception name="IOException" type="java.io.IOException"/>
  7393. </method>
  7394. <method name="DFSNodesStatus"
  7395. abstract="false" native="false" synchronized="false"
  7396. static="false" final="false" visibility="public"
  7397. deprecated="not deprecated">
  7398. <param name="live" type="java.util.ArrayList"/>
  7399. <param name="dead" type="java.util.ArrayList"/>
  7400. </method>
  7401. <method name="addTableHeader"
  7402. abstract="false" native="false" synchronized="false"
  7403. static="false" final="false" visibility="public"
  7404. deprecated="not deprecated">
  7405. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  7406. <exception name="IOException" type="java.io.IOException"/>
  7407. </method>
  7408. <method name="addTableRow"
  7409. abstract="false" native="false" synchronized="false"
  7410. static="false" final="false" visibility="public"
  7411. deprecated="not deprecated">
  7412. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  7413. <param name="columns" type="java.lang.String[]"/>
  7414. <exception name="IOException" type="java.io.IOException"/>
  7415. </method>
  7416. <method name="addTableRow"
  7417. abstract="false" native="false" synchronized="false"
  7418. static="false" final="false" visibility="public"
  7419. deprecated="not deprecated">
  7420. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  7421. <param name="columns" type="java.lang.String[]"/>
  7422. <param name="row" type="int"/>
  7423. <exception name="IOException" type="java.io.IOException"/>
  7424. </method>
  7425. <method name="addTableFooter"
  7426. abstract="false" native="false" synchronized="false"
  7427. static="false" final="false" visibility="public"
  7428. deprecated="not deprecated">
  7429. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  7430. <exception name="IOException" type="java.io.IOException"/>
  7431. </method>
  7432. <method name="getSafeModeText" return="java.lang.String"
  7433. abstract="false" native="false" synchronized="false"
  7434. static="false" final="false" visibility="public"
  7435. deprecated="not deprecated">
  7436. </method>
  7437. <method name="getWarningText" return="java.lang.String"
  7438. abstract="false" native="false" synchronized="false"
  7439. static="true" final="false" visibility="public"
  7440. deprecated="not deprecated">
  7441. <param name="fsn" type="org.apache.hadoop.hdfs.server.namenode.FSNamesystem"/>
  7442. </method>
  7443. <method name="getInodeLimitText" return="java.lang.String"
  7444. abstract="false" native="false" synchronized="false"
  7445. static="false" final="false" visibility="public"
  7446. deprecated="not deprecated">
  7447. </method>
  7448. <method name="getUpgradeStatusText" return="java.lang.String"
  7449. abstract="false" native="false" synchronized="false"
  7450. static="false" final="false" visibility="public"
  7451. deprecated="not deprecated">
  7452. </method>
  7453. <method name="sortNodeList"
  7454. abstract="false" native="false" synchronized="false"
  7455. static="false" final="false" visibility="public"
  7456. deprecated="not deprecated">
  7457. <param name="nodes" type="java.util.ArrayList"/>
  7458. <param name="field" type="java.lang.String"/>
  7459. <param name="order" type="java.lang.String"/>
  7460. </method>
  7461. <method name="printPathWithLinks"
  7462. abstract="false" native="false" synchronized="false"
  7463. static="true" final="false" visibility="public"
  7464. deprecated="not deprecated">
  7465. <param name="dir" type="java.lang.String"/>
  7466. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  7467. <param name="namenodeInfoPort" type="int"/>
  7468. <exception name="IOException" type="java.io.IOException"/>
  7469. </method>
  7470. <method name="printGotoForm"
  7471. abstract="false" native="false" synchronized="false"
  7472. static="true" final="false" visibility="public"
  7473. deprecated="not deprecated">
  7474. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  7475. <param name="namenodeInfoPort" type="int"/>
  7476. <param name="file" type="java.lang.String"/>
  7477. <exception name="IOException" type="java.io.IOException"/>
  7478. </method>
  7479. <method name="createTitle"
  7480. abstract="false" native="false" synchronized="false"
  7481. static="true" final="false" visibility="public"
  7482. deprecated="not deprecated">
  7483. <param name="out" type="javax.servlet.jsp.JspWriter"/>
  7484. <param name="req" type="javax.servlet.http.HttpServletRequest"/>
  7485. <param name="file" type="java.lang.String"/>
  7486. <exception name="IOException" type="java.io.IOException"/>
  7487. </method>
  7488. <field name="WEB_UGI_PROPERTY_NAME" type="java.lang.String"
  7489. transient="false" volatile="false"
  7490. static="true" final="true" visibility="public"
  7491. deprecated="not deprecated">
  7492. </field>
  7493. <field name="nameNodeAddr" type="java.net.InetSocketAddress"
  7494. transient="false" volatile="false"
  7495. static="true" final="false" visibility="public"
  7496. deprecated="not deprecated">
  7497. </field>
  7498. <field name="conf" type="org.apache.hadoop.conf.Configuration"
  7499. transient="false" volatile="false"
  7500. static="true" final="true" visibility="public"
  7501. deprecated="not deprecated">
  7502. </field>
  7503. <field name="webUGI" type="org.apache.hadoop.security.UnixUserGroupInformation"
  7504. transient="false" volatile="false"
  7505. static="true" final="true" visibility="public"
  7506. deprecated="not deprecated">
  7507. </field>
  7508. <field name="defaultChunkSizeToView" type="int"
  7509. transient="false" volatile="false"
  7510. static="true" final="true" visibility="public"
  7511. deprecated="not deprecated">
  7512. </field>
  7513. </class>
  7514. <!-- end class org.apache.hadoop.hdfs.server.namenode.JspHelper -->
  7515. <!-- start class org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException -->
  7516. <class name="LeaseExpiredException" extends="java.io.IOException"
  7517. abstract="false"
  7518. static="false" final="false" visibility="public"
  7519. deprecated="not deprecated">
  7520. <constructor name="LeaseExpiredException" type="java.lang.String"
  7521. static="false" final="false" visibility="public"
  7522. deprecated="not deprecated">
  7523. </constructor>
  7524. <doc>
  7525. <![CDATA[The lease that was being used to create this file has expired.]]>
  7526. </doc>
  7527. </class>
  7528. <!-- end class org.apache.hadoop.hdfs.server.namenode.LeaseExpiredException -->
  7529. <!-- start class org.apache.hadoop.hdfs.server.namenode.LeaseManager -->
  7530. <class name="LeaseManager" extends="java.lang.Object"
  7531. abstract="false"
  7532. static="false" final="false" visibility="public"
  7533. deprecated="not deprecated">
  7534. <method name="getLeaseByPath" return="org.apache.hadoop.hdfs.server.namenode.LeaseManager.Lease"
  7535. abstract="false" native="false" synchronized="false"
  7536. static="false" final="false" visibility="public"
  7537. deprecated="not deprecated">
  7538. <param name="src" type="java.lang.String"/>
  7539. <doc>
  7540. <![CDATA[@return the lease containing src]]>
  7541. </doc>
  7542. </method>
  7543. <method name="countLease" return="int"
  7544. abstract="false" native="false" synchronized="true"
  7545. static="false" final="false" visibility="public"
  7546. deprecated="not deprecated">
  7547. <doc>
  7548. <![CDATA[@return the number of leases currently in the system]]>
  7549. </doc>
  7550. </method>
  7551. <method name="setLeasePeriod"
  7552. abstract="false" native="false" synchronized="false"
  7553. static="false" final="false" visibility="public"
  7554. deprecated="not deprecated">
  7555. <param name="softLimit" type="long"/>
  7556. <param name="hardLimit" type="long"/>
  7557. </method>
  7558. <method name="toString" return="java.lang.String"
  7559. abstract="false" native="false" synchronized="true"
  7560. static="false" final="false" visibility="public"
  7561. deprecated="not deprecated">
  7562. <doc>
  7563. <![CDATA[{@inheritDoc}]]>
  7564. </doc>
  7565. </method>
  7566. <field name="LOG" type="org.apache.commons.logging.Log"
  7567. transient="false" volatile="false"
  7568. static="true" final="true" visibility="public"
  7569. deprecated="not deprecated">
  7570. </field>
  7571. <doc>
  7572. <![CDATA[LeaseManager does the lease housekeeping for writing on files.
  7573. This class also provides useful static methods for lease recovery.
  7574. Lease Recovery Algorithm
  7575. 1) Namenode retrieves lease information
  7576. 2) For each file f in the lease, consider the last block b of f
  7577. 2.1) Get the datanodes which contains b
  7578. 2.2) Assign one of the datanodes as the primary datanode p
  7579. 2.3) p obtains a new generation stamp form the namenode
  7580. 2.4) p get the block info from each datanode
  7581. 2.5) p computes the minimum block length
  7582. 2.6) p updates the datanodes, which have a valid generation stamp,
  7583. with the new generation stamp and the minimum block length
  7584. 2.7) p acknowledges the namenode the update results
  7585. 2.8) Namenode updates the BlockInfo
  7586. 2.9) Namenode removes f from the lease
  7587. and removes the lease once all files have been removed
  7588. 2.10) Namenode commit changes to edit log]]>
  7589. </doc>
  7590. </class>
  7591. <!-- end class org.apache.hadoop.hdfs.server.namenode.LeaseManager -->
  7592. <!-- start class org.apache.hadoop.hdfs.server.namenode.ListPathsServlet -->
  7593. <class name="ListPathsServlet" extends="org.apache.hadoop.hdfs.server.namenode.DfsServlet"
  7594. abstract="false"
  7595. static="false" final="false" visibility="public"
  7596. deprecated="not deprecated">
  7597. <constructor name="ListPathsServlet"
  7598. static="false" final="false" visibility="public"
  7599. deprecated="not deprecated">
  7600. </constructor>
  7601. <method name="buildRoot" return="java.util.Map"
  7602. abstract="false" native="false" synchronized="false"
  7603. static="false" final="false" visibility="protected"
  7604. deprecated="not deprecated">
  7605. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  7606. <param name="doc" type="org.znerd.xmlenc.XMLOutputter"/>
  7607. <doc>
  7608. <![CDATA[Build a map from the query string, setting values and defaults.]]>
  7609. </doc>
  7610. </method>
  7611. <method name="doGet"
  7612. abstract="false" native="false" synchronized="false"
  7613. static="false" final="false" visibility="public"
  7614. deprecated="not deprecated">
  7615. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  7616. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  7617. <exception name="ServletException" type="javax.servlet.ServletException"/>
  7618. <exception name="IOException" type="java.io.IOException"/>
  7619. <doc>
  7620. <![CDATA[Service a GET request as described below.
  7621. Request:
  7622. {@code
  7623. GET http://<nn>:<port>/listPaths[/<path>][<?option>[&option]*] HTTP/1.1
  7624. }
  7625. Where <i>option</i> (default) in:
  7626. recursive (&quot;no&quot;)
  7627. filter (&quot;.*&quot;)
  7628. exclude (&quot;\..*\.crc&quot;)
  7629. Response: A flat list of files/directories in the following format:
  7630. {@code
  7631. <listing path="..." recursive="(yes|no)" filter="..."
  7632. time="yyyy-MM-dd hh:mm:ss UTC" version="...">
  7633. <directory path="..." modified="yyyy-MM-dd hh:mm:ss"/>
  7634. <file path="..." modified="yyyy-MM-dd'T'hh:mm:ssZ" accesstime="yyyy-MM-dd'T'hh:mm:ssZ"
  7635. blocksize="..."
  7636. replication="..." size="..."/>
  7637. </listing>
  7638. }]]>
  7639. </doc>
  7640. </method>
  7641. <field name="df" type="java.text.SimpleDateFormat"
  7642. transient="false" volatile="false"
  7643. static="true" final="true" visibility="public"
  7644. deprecated="not deprecated">
  7645. </field>
  7646. <doc>
  7647. <![CDATA[Obtain meta-information about a filesystem.
  7648. @see org.apache.hadoop.hdfs.HftpFileSystem]]>
  7649. </doc>
  7650. </class>
  7651. <!-- end class org.apache.hadoop.hdfs.server.namenode.ListPathsServlet -->
  7652. <!-- start class org.apache.hadoop.hdfs.server.namenode.NameNode -->
  7653. <class name="NameNode" extends="java.lang.Object"
  7654. abstract="false"
  7655. static="false" final="false" visibility="public"
  7656. deprecated="not deprecated">
  7657. <implements name="org.apache.hadoop.hdfs.protocol.ClientProtocol"/>
  7658. <implements name="org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol"/>
  7659. <implements name="org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol"/>
  7660. <implements name="org.apache.hadoop.hdfs.protocol.FSConstants"/>
  7661. <implements name="org.apache.hadoop.security.authorize.RefreshAuthorizationPolicyProtocol"/>
  7662. <constructor name="NameNode" type="org.apache.hadoop.conf.Configuration"
  7663. static="false" final="false" visibility="public"
  7664. deprecated="not deprecated">
  7665. <exception name="IOException" type="java.io.IOException"/>
  7666. <doc>
  7667. <![CDATA[Start NameNode.
  7668. <p>
  7669. The name-node can be started with one of the following startup options:
  7670. <ul>
  7671. <li>{@link StartupOption#REGULAR REGULAR} - normal name node startup</li>
  7672. <li>{@link StartupOption#FORMAT FORMAT} - format name node</li>
  7673. <li>{@link StartupOption#UPGRADE UPGRADE} - start the cluster
  7674. upgrade and create a snapshot of the current file system state</li>
  7675. <li>{@link StartupOption#ROLLBACK ROLLBACK} - roll the
  7676. cluster back to the previous state</li>
  7677. </ul>
  7678. The option is passed via configuration field:
  7679. <tt>dfs.namenode.startup</tt>
  7680. The conf will be modified to reflect the actual ports on which
  7681. the NameNode is up and running if the user passes the port as
  7682. <code>zero</code> in the conf.
  7683. @param conf confirguration
  7684. @throws IOException]]>
  7685. </doc>
  7686. </constructor>
  7687. <method name="getProtocolVersion" return="long"
  7688. abstract="false" native="false" synchronized="false"
  7689. static="false" final="false" visibility="public"
  7690. deprecated="not deprecated">
  7691. <param name="protocol" type="java.lang.String"/>
  7692. <param name="clientVersion" type="long"/>
  7693. <exception name="IOException" type="java.io.IOException"/>
  7694. </method>
  7695. <method name="format"
  7696. abstract="false" native="false" synchronized="false"
  7697. static="true" final="false" visibility="public"
  7698. deprecated="not deprecated">
  7699. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7700. <exception name="IOException" type="java.io.IOException"/>
  7701. <doc>
  7702. <![CDATA[Format a new filesystem. Destroys any filesystem that may already
  7703. exist at this location.]]>
  7704. </doc>
  7705. </method>
  7706. <method name="getNamesystem" return="org.apache.hadoop.hdfs.server.namenode.FSNamesystem"
  7707. abstract="false" native="false" synchronized="false"
  7708. static="false" final="false" visibility="public"
  7709. deprecated="not deprecated">
  7710. </method>
  7711. <method name="getNameNodeMetrics" return="org.apache.hadoop.hdfs.server.namenode.metrics.NameNodeMetrics"
  7712. abstract="false" native="false" synchronized="false"
  7713. static="true" final="false" visibility="public"
  7714. deprecated="not deprecated">
  7715. </method>
  7716. <method name="getAddress" return="java.net.InetSocketAddress"
  7717. abstract="false" native="false" synchronized="false"
  7718. static="true" final="false" visibility="public"
  7719. deprecated="not deprecated">
  7720. <param name="address" type="java.lang.String"/>
  7721. </method>
  7722. <method name="getAddress" return="java.net.InetSocketAddress"
  7723. abstract="false" native="false" synchronized="false"
  7724. static="true" final="false" visibility="public"
  7725. deprecated="not deprecated">
  7726. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  7727. </method>
  7728. <method name="getUri" return="java.net.URI"
  7729. abstract="false" native="false" synchronized="false"
  7730. static="true" final="false" visibility="public"
  7731. deprecated="not deprecated">
  7732. <param name="namenode" type="java.net.InetSocketAddress"/>
  7733. </method>
  7734. <method name="join"
  7735. abstract="false" native="false" synchronized="false"
  7736. static="false" final="false" visibility="public"
  7737. deprecated="not deprecated">
  7738. <doc>
  7739. <![CDATA[Wait for service to finish.
  7740. (Normally, it runs forever.)]]>
  7741. </doc>
  7742. </method>
  7743. <method name="stop"
  7744. abstract="false" native="false" synchronized="false"
  7745. static="false" final="false" visibility="public"
  7746. deprecated="not deprecated">
  7747. <doc>
  7748. <![CDATA[Stop all NameNode threads and wait for all to finish.]]>
  7749. </doc>
  7750. </method>
  7751. <method name="getBlocks" return="org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations"
  7752. abstract="false" native="false" synchronized="false"
  7753. static="false" final="false" visibility="public"
  7754. deprecated="not deprecated">
  7755. <param name="datanode" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo"/>
  7756. <param name="size" type="long"/>
  7757. <exception name="IOException" type="java.io.IOException"/>
  7758. <doc>
  7759. <![CDATA[return a list of blocks & their locations on <code>datanode</code> whose
  7760. total size is <code>size</code>
  7761. @param datanode on which blocks are located
  7762. @param size total size of blocks]]>
  7763. </doc>
  7764. </method>
  7765. <method name="getBlockLocations" return="org.apache.hadoop.hdfs.protocol.LocatedBlocks"
  7766. abstract="false" native="false" synchronized="false"
  7767. static="false" final="false" visibility="public"
  7768. deprecated="not deprecated">
  7769. <param name="src" type="java.lang.String"/>
  7770. <param name="offset" type="long"/>
  7771. <param name="length" type="long"/>
  7772. <exception name="IOException" type="java.io.IOException"/>
  7773. <doc>
  7774. <![CDATA[{@inheritDoc}]]>
  7775. </doc>
  7776. </method>
  7777. <method name="create"
  7778. abstract="false" native="false" synchronized="false"
  7779. static="false" final="false" visibility="public"
  7780. deprecated="not deprecated">
  7781. <param name="src" type="java.lang.String"/>
  7782. <param name="masked" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7783. <param name="clientName" type="java.lang.String"/>
  7784. <param name="overwrite" type="boolean"/>
  7785. <param name="replication" type="short"/>
  7786. <param name="blockSize" type="long"/>
  7787. <exception name="IOException" type="java.io.IOException"/>
  7788. <doc>
  7789. <![CDATA[{@inheritDoc}]]>
  7790. </doc>
  7791. </method>
  7792. <method name="append" return="org.apache.hadoop.hdfs.protocol.LocatedBlock"
  7793. abstract="false" native="false" synchronized="false"
  7794. static="false" final="false" visibility="public"
  7795. deprecated="not deprecated">
  7796. <param name="src" type="java.lang.String"/>
  7797. <param name="clientName" type="java.lang.String"/>
  7798. <exception name="IOException" type="java.io.IOException"/>
  7799. <doc>
  7800. <![CDATA[{@inheritDoc}]]>
  7801. </doc>
  7802. </method>
  7803. <method name="setReplication" return="boolean"
  7804. abstract="false" native="false" synchronized="false"
  7805. static="false" final="false" visibility="public"
  7806. deprecated="not deprecated">
  7807. <param name="src" type="java.lang.String"/>
  7808. <param name="replication" type="short"/>
  7809. <exception name="IOException" type="java.io.IOException"/>
  7810. <doc>
  7811. <![CDATA[{@inheritDoc}]]>
  7812. </doc>
  7813. </method>
  7814. <method name="setPermission"
  7815. abstract="false" native="false" synchronized="false"
  7816. static="false" final="false" visibility="public"
  7817. deprecated="not deprecated">
  7818. <param name="src" type="java.lang.String"/>
  7819. <param name="permissions" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7820. <exception name="IOException" type="java.io.IOException"/>
  7821. <doc>
  7822. <![CDATA[{@inheritDoc}]]>
  7823. </doc>
  7824. </method>
  7825. <method name="setOwner"
  7826. abstract="false" native="false" synchronized="false"
  7827. static="false" final="false" visibility="public"
  7828. deprecated="not deprecated">
  7829. <param name="src" type="java.lang.String"/>
  7830. <param name="username" type="java.lang.String"/>
  7831. <param name="groupname" type="java.lang.String"/>
  7832. <exception name="IOException" type="java.io.IOException"/>
  7833. <doc>
  7834. <![CDATA[{@inheritDoc}]]>
  7835. </doc>
  7836. </method>
  7837. <method name="addBlock" return="org.apache.hadoop.hdfs.protocol.LocatedBlock"
  7838. abstract="false" native="false" synchronized="false"
  7839. static="false" final="false" visibility="public"
  7840. deprecated="not deprecated">
  7841. <param name="src" type="java.lang.String"/>
  7842. <param name="clientName" type="java.lang.String"/>
  7843. <exception name="IOException" type="java.io.IOException"/>
  7844. </method>
  7845. <method name="abandonBlock"
  7846. abstract="false" native="false" synchronized="false"
  7847. static="false" final="false" visibility="public"
  7848. deprecated="not deprecated">
  7849. <param name="b" type="org.apache.hadoop.hdfs.protocol.Block"/>
  7850. <param name="src" type="java.lang.String"/>
  7851. <param name="holder" type="java.lang.String"/>
  7852. <exception name="IOException" type="java.io.IOException"/>
  7853. <doc>
  7854. <![CDATA[The client needs to give up on the block.]]>
  7855. </doc>
  7856. </method>
  7857. <method name="complete" return="boolean"
  7858. abstract="false" native="false" synchronized="false"
  7859. static="false" final="false" visibility="public"
  7860. deprecated="not deprecated">
  7861. <param name="src" type="java.lang.String"/>
  7862. <param name="clientName" type="java.lang.String"/>
  7863. <exception name="IOException" type="java.io.IOException"/>
  7864. <doc>
  7865. <![CDATA[{@inheritDoc}]]>
  7866. </doc>
  7867. </method>
  7868. <method name="reportBadBlocks"
  7869. abstract="false" native="false" synchronized="false"
  7870. static="false" final="false" visibility="public"
  7871. deprecated="not deprecated">
  7872. <param name="blocks" type="org.apache.hadoop.hdfs.protocol.LocatedBlock[]"/>
  7873. <exception name="IOException" type="java.io.IOException"/>
  7874. <doc>
  7875. <![CDATA[The client has detected an error on the specified located blocks
  7876. and is reporting them to the server. For now, the namenode will
  7877. mark the block as corrupt. In the future we might
  7878. check the blocks are actually corrupt.]]>
  7879. </doc>
  7880. </method>
  7881. <method name="nextGenerationStamp" return="long"
  7882. abstract="false" native="false" synchronized="false"
  7883. static="false" final="false" visibility="public"
  7884. deprecated="not deprecated">
  7885. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  7886. <exception name="IOException" type="java.io.IOException"/>
  7887. <doc>
  7888. <![CDATA[{@inheritDoc}]]>
  7889. </doc>
  7890. </method>
  7891. <method name="commitBlockSynchronization"
  7892. abstract="false" native="false" synchronized="false"
  7893. static="false" final="false" visibility="public"
  7894. deprecated="not deprecated">
  7895. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  7896. <param name="newgenerationstamp" type="long"/>
  7897. <param name="newlength" type="long"/>
  7898. <param name="closeFile" type="boolean"/>
  7899. <param name="deleteblock" type="boolean"/>
  7900. <param name="newtargets" type="org.apache.hadoop.hdfs.protocol.DatanodeID[]"/>
  7901. <exception name="IOException" type="java.io.IOException"/>
  7902. <doc>
  7903. <![CDATA[{@inheritDoc}]]>
  7904. </doc>
  7905. </method>
  7906. <method name="getPreferredBlockSize" return="long"
  7907. abstract="false" native="false" synchronized="false"
  7908. static="false" final="false" visibility="public"
  7909. deprecated="not deprecated">
  7910. <param name="filename" type="java.lang.String"/>
  7911. <exception name="IOException" type="java.io.IOException"/>
  7912. </method>
  7913. <method name="rename" return="boolean"
  7914. abstract="false" native="false" synchronized="false"
  7915. static="false" final="false" visibility="public"
  7916. deprecated="not deprecated">
  7917. <param name="src" type="java.lang.String"/>
  7918. <param name="dst" type="java.lang.String"/>
  7919. <exception name="IOException" type="java.io.IOException"/>
  7920. </method>
  7921. <method name="delete" return="boolean"
  7922. abstract="false" native="false" synchronized="false"
  7923. static="false" final="false" visibility="public"
  7924. deprecated="not deprecated">
  7925. <param name="src" type="java.lang.String"/>
  7926. <exception name="IOException" type="java.io.IOException"/>
  7927. </method>
  7928. <method name="delete" return="boolean"
  7929. abstract="false" native="false" synchronized="false"
  7930. static="false" final="false" visibility="public"
  7931. deprecated="not deprecated">
  7932. <param name="src" type="java.lang.String"/>
  7933. <param name="recursive" type="boolean"/>
  7934. <exception name="IOException" type="java.io.IOException"/>
  7935. <doc>
  7936. <![CDATA[{@inheritDoc}]]>
  7937. </doc>
  7938. </method>
  7939. <method name="mkdirs" return="boolean"
  7940. abstract="false" native="false" synchronized="false"
  7941. static="false" final="false" visibility="public"
  7942. deprecated="not deprecated">
  7943. <param name="src" type="java.lang.String"/>
  7944. <param name="masked" type="org.apache.hadoop.fs.permission.FsPermission"/>
  7945. <exception name="IOException" type="java.io.IOException"/>
  7946. <doc>
  7947. <![CDATA[{@inheritDoc}]]>
  7948. </doc>
  7949. </method>
  7950. <method name="renewLease"
  7951. abstract="false" native="false" synchronized="false"
  7952. static="false" final="false" visibility="public"
  7953. deprecated="not deprecated">
  7954. <param name="clientName" type="java.lang.String"/>
  7955. <exception name="IOException" type="java.io.IOException"/>
  7956. </method>
  7957. <method name="getListing" return="org.apache.hadoop.fs.FileStatus[]"
  7958. abstract="false" native="false" synchronized="false"
  7959. static="false" final="false" visibility="public"
  7960. deprecated="not deprecated">
  7961. <param name="src" type="java.lang.String"/>
  7962. <exception name="IOException" type="java.io.IOException"/>
  7963. </method>
  7964. <method name="getFileInfo" return="org.apache.hadoop.fs.FileStatus"
  7965. abstract="false" native="false" synchronized="false"
  7966. static="false" final="false" visibility="public"
  7967. deprecated="not deprecated">
  7968. <param name="src" type="java.lang.String"/>
  7969. <exception name="IOException" type="java.io.IOException"/>
  7970. <doc>
  7971. <![CDATA[Get the file info for a specific file.
  7972. @param src The string representation of the path to the file
  7973. @throws IOException if permission to access file is denied by the system
  7974. @return object containing information regarding the file
  7975. or null if file not found]]>
  7976. </doc>
  7977. </method>
  7978. <method name="getStats" return="long[]"
  7979. abstract="false" native="false" synchronized="false"
  7980. static="false" final="false" visibility="public"
  7981. deprecated="not deprecated">
  7982. <exception name="IOException" type="java.io.IOException"/>
  7983. <doc>
  7984. <![CDATA[@inheritDoc]]>
  7985. </doc>
  7986. </method>
  7987. <method name="getDatanodeReport" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo[]"
  7988. abstract="false" native="false" synchronized="false"
  7989. static="false" final="false" visibility="public"
  7990. deprecated="not deprecated">
  7991. <param name="type" type="org.apache.hadoop.hdfs.protocol.FSConstants.DatanodeReportType"/>
  7992. <exception name="IOException" type="java.io.IOException"/>
  7993. </method>
  7994. <method name="setSafeMode" return="boolean"
  7995. abstract="false" native="false" synchronized="false"
  7996. static="false" final="false" visibility="public"
  7997. deprecated="not deprecated">
  7998. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.SafeModeAction"/>
  7999. <exception name="IOException" type="java.io.IOException"/>
  8000. <doc>
  8001. <![CDATA[@inheritDoc]]>
  8002. </doc>
  8003. </method>
  8004. <method name="isInSafeMode" return="boolean"
  8005. abstract="false" native="false" synchronized="false"
  8006. static="false" final="false" visibility="public"
  8007. deprecated="not deprecated">
  8008. <doc>
  8009. <![CDATA[Is the cluster currently in safe mode?]]>
  8010. </doc>
  8011. </method>
  8012. <method name="saveNamespace"
  8013. abstract="false" native="false" synchronized="false"
  8014. static="false" final="false" visibility="public"
  8015. deprecated="not deprecated">
  8016. <exception name="IOException" type="java.io.IOException"/>
  8017. <doc>
  8018. <![CDATA[@inheritDoc]]>
  8019. </doc>
  8020. </method>
  8021. <method name="refreshNodes"
  8022. abstract="false" native="false" synchronized="false"
  8023. static="false" final="false" visibility="public"
  8024. deprecated="not deprecated">
  8025. <exception name="IOException" type="java.io.IOException"/>
  8026. <doc>
  8027. <![CDATA[Refresh the list of datanodes that the namenode should allow to
  8028. connect. Re-reads conf by creating new Configuration object and
  8029. uses the files list in the configuration to update the list.]]>
  8030. </doc>
  8031. </method>
  8032. <method name="getEditLogSize" return="long"
  8033. abstract="false" native="false" synchronized="false"
  8034. static="false" final="false" visibility="public"
  8035. deprecated="not deprecated">
  8036. <exception name="IOException" type="java.io.IOException"/>
  8037. <doc>
  8038. <![CDATA[Returns the size of the current edit log.]]>
  8039. </doc>
  8040. </method>
  8041. <method name="rollEditLog" return="org.apache.hadoop.hdfs.server.namenode.CheckpointSignature"
  8042. abstract="false" native="false" synchronized="false"
  8043. static="false" final="false" visibility="public"
  8044. deprecated="not deprecated">
  8045. <exception name="IOException" type="java.io.IOException"/>
  8046. <doc>
  8047. <![CDATA[Roll the edit log.]]>
  8048. </doc>
  8049. </method>
  8050. <method name="rollFsImage"
  8051. abstract="false" native="false" synchronized="false"
  8052. static="false" final="false" visibility="public"
  8053. deprecated="not deprecated">
  8054. <exception name="IOException" type="java.io.IOException"/>
  8055. <doc>
  8056. <![CDATA[Roll the image]]>
  8057. </doc>
  8058. </method>
  8059. <method name="finalizeUpgrade"
  8060. abstract="false" native="false" synchronized="false"
  8061. static="false" final="false" visibility="public"
  8062. deprecated="not deprecated">
  8063. <exception name="IOException" type="java.io.IOException"/>
  8064. </method>
  8065. <method name="distributedUpgradeProgress" return="org.apache.hadoop.hdfs.server.common.UpgradeStatusReport"
  8066. abstract="false" native="false" synchronized="false"
  8067. static="false" final="false" visibility="public"
  8068. deprecated="not deprecated">
  8069. <param name="action" type="org.apache.hadoop.hdfs.protocol.FSConstants.UpgradeAction"/>
  8070. <exception name="IOException" type="java.io.IOException"/>
  8071. </method>
  8072. <method name="metaSave"
  8073. abstract="false" native="false" synchronized="false"
  8074. static="false" final="false" visibility="public"
  8075. deprecated="not deprecated">
  8076. <param name="filename" type="java.lang.String"/>
  8077. <exception name="IOException" type="java.io.IOException"/>
  8078. <doc>
  8079. <![CDATA[Dumps namenode state into specified file]]>
  8080. </doc>
  8081. </method>
  8082. <method name="getContentSummary" return="org.apache.hadoop.fs.ContentSummary"
  8083. abstract="false" native="false" synchronized="false"
  8084. static="false" final="false" visibility="public"
  8085. deprecated="not deprecated">
  8086. <param name="path" type="java.lang.String"/>
  8087. <exception name="IOException" type="java.io.IOException"/>
  8088. <doc>
  8089. <![CDATA[{@inheritDoc}]]>
  8090. </doc>
  8091. </method>
  8092. <method name="setQuota"
  8093. abstract="false" native="false" synchronized="false"
  8094. static="false" final="false" visibility="public"
  8095. deprecated="not deprecated">
  8096. <param name="path" type="java.lang.String"/>
  8097. <param name="namespaceQuota" type="long"/>
  8098. <param name="diskspaceQuota" type="long"/>
  8099. <exception name="IOException" type="java.io.IOException"/>
  8100. <doc>
  8101. <![CDATA[{@inheritDoc}]]>
  8102. </doc>
  8103. </method>
  8104. <method name="fsync"
  8105. abstract="false" native="false" synchronized="false"
  8106. static="false" final="false" visibility="public"
  8107. deprecated="not deprecated">
  8108. <param name="src" type="java.lang.String"/>
  8109. <param name="clientName" type="java.lang.String"/>
  8110. <exception name="IOException" type="java.io.IOException"/>
  8111. <doc>
  8112. <![CDATA[{@inheritDoc}]]>
  8113. </doc>
  8114. </method>
  8115. <method name="setTimes"
  8116. abstract="false" native="false" synchronized="false"
  8117. static="false" final="false" visibility="public"
  8118. deprecated="not deprecated">
  8119. <param name="src" type="java.lang.String"/>
  8120. <param name="mtime" type="long"/>
  8121. <param name="atime" type="long"/>
  8122. <exception name="IOException" type="java.io.IOException"/>
  8123. <doc>
  8124. <![CDATA[@inheritDoc]]>
  8125. </doc>
  8126. </method>
  8127. <method name="register" return="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"
  8128. abstract="false" native="false" synchronized="false"
  8129. static="false" final="false" visibility="public"
  8130. deprecated="not deprecated">
  8131. <param name="nodeReg" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  8132. <exception name="IOException" type="java.io.IOException"/>
  8133. </method>
  8134. <method name="sendHeartbeat" return="org.apache.hadoop.hdfs.server.protocol.DatanodeCommand[]"
  8135. abstract="false" native="false" synchronized="false"
  8136. static="false" final="false" visibility="public"
  8137. deprecated="not deprecated">
  8138. <param name="nodeReg" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  8139. <param name="capacity" type="long"/>
  8140. <param name="dfsUsed" type="long"/>
  8141. <param name="remaining" type="long"/>
  8142. <param name="xmitsInProgress" type="int"/>
  8143. <param name="xceiverCount" type="int"/>
  8144. <exception name="IOException" type="java.io.IOException"/>
  8145. <doc>
  8146. <![CDATA[Data node notify the name node that it is alive
  8147. Return an array of block-oriented commands for the datanode to execute.
  8148. This will be either a transfer or a delete operation.]]>
  8149. </doc>
  8150. </method>
  8151. <method name="blockReport" return="org.apache.hadoop.hdfs.server.protocol.DatanodeCommand"
  8152. abstract="false" native="false" synchronized="false"
  8153. static="false" final="false" visibility="public"
  8154. deprecated="not deprecated">
  8155. <param name="nodeReg" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  8156. <param name="blocks" type="long[]"/>
  8157. <exception name="IOException" type="java.io.IOException"/>
  8158. </method>
  8159. <method name="blockReceived"
  8160. abstract="false" native="false" synchronized="false"
  8161. static="false" final="false" visibility="public"
  8162. deprecated="not deprecated">
  8163. <param name="nodeReg" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  8164. <param name="blocks" type="org.apache.hadoop.hdfs.protocol.Block[]"/>
  8165. <param name="delHints" type="java.lang.String[]"/>
  8166. <exception name="IOException" type="java.io.IOException"/>
  8167. </method>
  8168. <method name="errorReport"
  8169. abstract="false" native="false" synchronized="false"
  8170. static="false" final="false" visibility="public"
  8171. deprecated="not deprecated">
  8172. <param name="nodeReg" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  8173. <param name="errorCode" type="int"/>
  8174. <param name="msg" type="java.lang.String"/>
  8175. <exception name="IOException" type="java.io.IOException"/>
  8176. </method>
  8177. <method name="versionRequest" return="org.apache.hadoop.hdfs.server.protocol.NamespaceInfo"
  8178. abstract="false" native="false" synchronized="false"
  8179. static="false" final="false" visibility="public"
  8180. deprecated="not deprecated">
  8181. <exception name="IOException" type="java.io.IOException"/>
  8182. </method>
  8183. <method name="processUpgradeCommand" return="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  8184. abstract="false" native="false" synchronized="false"
  8185. static="false" final="false" visibility="public"
  8186. deprecated="not deprecated">
  8187. <param name="comm" type="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"/>
  8188. <exception name="IOException" type="java.io.IOException"/>
  8189. </method>
  8190. <method name="verifyRequest"
  8191. abstract="false" native="false" synchronized="false"
  8192. static="false" final="false" visibility="public"
  8193. deprecated="not deprecated">
  8194. <param name="nodeReg" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  8195. <exception name="IOException" type="java.io.IOException"/>
  8196. <doc>
  8197. <![CDATA[Verify request.
  8198. Verifies correctness of the datanode version, registration ID, and
  8199. if the datanode does not need to be shutdown.
  8200. @param nodeReg data node registration
  8201. @throws IOException]]>
  8202. </doc>
  8203. </method>
  8204. <method name="verifyVersion"
  8205. abstract="false" native="false" synchronized="false"
  8206. static="false" final="false" visibility="public"
  8207. deprecated="not deprecated">
  8208. <param name="version" type="int"/>
  8209. <exception name="IOException" type="java.io.IOException"/>
  8210. <doc>
  8211. <![CDATA[Verify version.
  8212. @param version
  8213. @throws IOException]]>
  8214. </doc>
  8215. </method>
  8216. <method name="getFsImageName" return="java.io.File"
  8217. abstract="false" native="false" synchronized="false"
  8218. static="false" final="false" visibility="public"
  8219. deprecated="not deprecated">
  8220. <exception name="IOException" type="java.io.IOException"/>
  8221. <doc>
  8222. <![CDATA[Returns the name of the fsImage file]]>
  8223. </doc>
  8224. </method>
  8225. <method name="getFSImage" return="org.apache.hadoop.hdfs.server.namenode.FSImage"
  8226. abstract="false" native="false" synchronized="false"
  8227. static="false" final="false" visibility="public"
  8228. deprecated="not deprecated">
  8229. </method>
  8230. <method name="getFsImageNameCheckpoint" return="java.io.File[]"
  8231. abstract="false" native="false" synchronized="false"
  8232. static="false" final="false" visibility="public"
  8233. deprecated="not deprecated">
  8234. <exception name="IOException" type="java.io.IOException"/>
  8235. <doc>
  8236. <![CDATA[Returns the name of the fsImage file uploaded by periodic
  8237. checkpointing]]>
  8238. </doc>
  8239. </method>
  8240. <method name="getNameNodeAddress" return="java.net.InetSocketAddress"
  8241. abstract="false" native="false" synchronized="false"
  8242. static="false" final="false" visibility="public"
  8243. deprecated="not deprecated">
  8244. <doc>
  8245. <![CDATA[Returns the address on which the NameNodes is listening to.
  8246. @return the address on which the NameNodes is listening to.]]>
  8247. </doc>
  8248. </method>
  8249. <method name="getHttpAddress" return="java.net.InetSocketAddress"
  8250. abstract="false" native="false" synchronized="false"
  8251. static="false" final="false" visibility="public"
  8252. deprecated="not deprecated">
  8253. <doc>
  8254. <![CDATA[Returns the address of the NameNodes http server,
  8255. which is used to access the name-node web UI.
  8256. @return the http address.]]>
  8257. </doc>
  8258. </method>
  8259. <method name="refreshServiceAcl"
  8260. abstract="false" native="false" synchronized="false"
  8261. static="false" final="false" visibility="public"
  8262. deprecated="not deprecated">
  8263. <exception name="IOException" type="java.io.IOException"/>
  8264. </method>
  8265. <method name="createNameNode" return="org.apache.hadoop.hdfs.server.namenode.NameNode"
  8266. abstract="false" native="false" synchronized="false"
  8267. static="true" final="false" visibility="public"
  8268. deprecated="not deprecated">
  8269. <param name="argv" type="java.lang.String[]"/>
  8270. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  8271. <exception name="IOException" type="java.io.IOException"/>
  8272. </method>
  8273. <method name="main"
  8274. abstract="false" native="false" synchronized="false"
  8275. static="true" final="false" visibility="public"
  8276. deprecated="not deprecated">
  8277. <param name="argv" type="java.lang.String[]"/>
  8278. <exception name="Exception" type="java.lang.Exception"/>
  8279. </method>
  8280. <field name="DEFAULT_PORT" type="int"
  8281. transient="false" volatile="false"
  8282. static="true" final="true" visibility="public"
  8283. deprecated="not deprecated">
  8284. </field>
  8285. <field name="LOG" type="org.apache.commons.logging.Log"
  8286. transient="false" volatile="false"
  8287. static="true" final="true" visibility="public"
  8288. deprecated="not deprecated">
  8289. </field>
  8290. <field name="stateChangeLog" type="org.apache.commons.logging.Log"
  8291. transient="false" volatile="false"
  8292. static="true" final="true" visibility="public"
  8293. deprecated="not deprecated">
  8294. </field>
  8295. <field name="namesystem" type="org.apache.hadoop.hdfs.server.namenode.FSNamesystem"
  8296. transient="false" volatile="false"
  8297. static="false" final="false" visibility="public"
  8298. deprecated="not deprecated">
  8299. </field>
  8300. <doc>
  8301. <![CDATA[NameNode serves as both directory namespace manager and
  8302. "inode table" for the Hadoop DFS. There is a single NameNode
  8303. running in any DFS deployment. (Well, except when there
  8304. is a second backup/failover NameNode.)
  8305. The NameNode controls two critical tables:
  8306. 1) filename->blocksequence (namespace)
  8307. 2) block->machinelist ("inodes")
  8308. The first table is stored on disk and is very precious.
  8309. The second table is rebuilt every time the NameNode comes
  8310. up.
  8311. 'NameNode' refers to both this class as well as the 'NameNode server'.
  8312. The 'FSNamesystem' class actually performs most of the filesystem
  8313. management. The majority of the 'NameNode' class itself is concerned
  8314. with exposing the IPC interface and the http server to the outside world,
  8315. plus some configuration management.
  8316. NameNode implements the ClientProtocol interface, which allows
  8317. clients to ask for DFS services. ClientProtocol is not
  8318. designed for direct use by authors of DFS client code. End-users
  8319. should instead use the org.apache.nutch.hadoop.fs.FileSystem class.
  8320. NameNode also implements the DatanodeProtocol interface, used by
  8321. DataNode programs that actually store DFS data blocks. These
  8322. methods are invoked repeatedly and automatically by all the
  8323. DataNodes in a DFS deployment.
  8324. NameNode also implements the NamenodeProtocol interface, used by
  8325. secondary namenodes or rebalancing processes to get partial namenode's
  8326. state, for example partial blocksMap etc.]]>
  8327. </doc>
  8328. </class>
  8329. <!-- end class org.apache.hadoop.hdfs.server.namenode.NameNode -->
  8330. <!-- start class org.apache.hadoop.hdfs.server.namenode.NamenodeFsck -->
  8331. <class name="NamenodeFsck" extends="java.lang.Object"
  8332. abstract="false"
  8333. static="false" final="false" visibility="public"
  8334. deprecated="not deprecated">
  8335. <constructor name="NamenodeFsck" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.hdfs.server.namenode.NameNode, java.util.Map, javax.servlet.http.HttpServletResponse"
  8336. static="false" final="false" visibility="public"
  8337. deprecated="not deprecated">
  8338. <exception name="IOException" type="java.io.IOException"/>
  8339. <doc>
  8340. <![CDATA[Filesystem checker.
  8341. @param conf configuration (namenode config)
  8342. @param nn namenode that this fsck is going to use
  8343. @param pmap key=value[] map that is passed to the http servlet as url parameters
  8344. @param response the object into which this servelet writes the url contents
  8345. @throws IOException]]>
  8346. </doc>
  8347. </constructor>
  8348. <method name="fsck"
  8349. abstract="false" native="false" synchronized="false"
  8350. static="false" final="false" visibility="public"
  8351. deprecated="not deprecated">
  8352. <exception name="IOException" type="java.io.IOException"/>
  8353. <doc>
  8354. <![CDATA[Check files on DFS, starting from the indicated path.
  8355. @throws Exception]]>
  8356. </doc>
  8357. </method>
  8358. <method name="run" return="int"
  8359. abstract="false" native="false" synchronized="false"
  8360. static="false" final="false" visibility="public"
  8361. deprecated="not deprecated">
  8362. <param name="args" type="java.lang.String[]"/>
  8363. <exception name="Exception" type="java.lang.Exception"/>
  8364. <doc>
  8365. <![CDATA[@param args]]>
  8366. </doc>
  8367. </method>
  8368. <field name="LOG" type="org.apache.commons.logging.Log"
  8369. transient="false" volatile="false"
  8370. static="true" final="true" visibility="public"
  8371. deprecated="not deprecated">
  8372. </field>
  8373. <field name="CORRUPT_STATUS" type="java.lang.String"
  8374. transient="false" volatile="false"
  8375. static="true" final="true" visibility="public"
  8376. deprecated="not deprecated">
  8377. </field>
  8378. <field name="HEALTHY_STATUS" type="java.lang.String"
  8379. transient="false" volatile="false"
  8380. static="true" final="true" visibility="public"
  8381. deprecated="not deprecated">
  8382. </field>
  8383. <field name="NONEXISTENT_STATUS" type="java.lang.String"
  8384. transient="false" volatile="false"
  8385. static="true" final="true" visibility="public"
  8386. deprecated="not deprecated">
  8387. </field>
  8388. <field name="FAILURE_STATUS" type="java.lang.String"
  8389. transient="false" volatile="false"
  8390. static="true" final="true" visibility="public"
  8391. deprecated="not deprecated">
  8392. </field>
  8393. <field name="FIXING_NONE" type="int"
  8394. transient="false" volatile="false"
  8395. static="true" final="true" visibility="public"
  8396. deprecated="not deprecated">
  8397. <doc>
  8398. <![CDATA[Don't attempt any fixing .]]>
  8399. </doc>
  8400. </field>
  8401. <field name="FIXING_MOVE" type="int"
  8402. transient="false" volatile="false"
  8403. static="true" final="true" visibility="public"
  8404. deprecated="not deprecated">
  8405. <doc>
  8406. <![CDATA[Move corrupted files to /lost+found .]]>
  8407. </doc>
  8408. </field>
  8409. <field name="FIXING_DELETE" type="int"
  8410. transient="false" volatile="false"
  8411. static="true" final="true" visibility="public"
  8412. deprecated="not deprecated">
  8413. <doc>
  8414. <![CDATA[Delete corrupted files.]]>
  8415. </doc>
  8416. </field>
  8417. <doc>
  8418. <![CDATA[This class provides rudimentary checking of DFS volumes for errors and
  8419. sub-optimal conditions.
  8420. <p>The tool scans all files and directories, starting from an indicated
  8421. root path. The following abnormal conditions are detected and handled:</p>
  8422. <ul>
  8423. <li>files with blocks that are completely missing from all datanodes.<br/>
  8424. In this case the tool can perform one of the following actions:
  8425. <ul>
  8426. <li>none ({@link #FIXING_NONE})</li>
  8427. <li>move corrupted files to /lost+found directory on DFS
  8428. ({@link #FIXING_MOVE}). Remaining data blocks are saved as a
  8429. block chains, representing longest consecutive series of valid blocks.</li>
  8430. <li>delete corrupted files ({@link #FIXING_DELETE})</li>
  8431. </ul>
  8432. </li>
  8433. <li>detect files with under-replicated or over-replicated blocks</li>
  8434. </ul>
  8435. Additionally, the tool collects a detailed overall DFS statistics, and
  8436. optionally can print detailed statistics on block locations and replication
  8437. factors of each file.]]>
  8438. </doc>
  8439. </class>
  8440. <!-- end class org.apache.hadoop.hdfs.server.namenode.NamenodeFsck -->
  8441. <!-- start class org.apache.hadoop.hdfs.server.namenode.NamenodeFsck.FsckResult -->
  8442. <class name="NamenodeFsck.FsckResult" extends="java.lang.Object"
  8443. abstract="false"
  8444. static="true" final="false" visibility="public"
  8445. deprecated="not deprecated">
  8446. <constructor name="NamenodeFsck.FsckResult"
  8447. static="false" final="false" visibility="public"
  8448. deprecated="not deprecated">
  8449. </constructor>
  8450. <method name="isHealthy" return="boolean"
  8451. abstract="false" native="false" synchronized="false"
  8452. static="false" final="false" visibility="public"
  8453. deprecated="not deprecated">
  8454. <doc>
  8455. <![CDATA[DFS is considered healthy if there are no missing blocks.]]>
  8456. </doc>
  8457. </method>
  8458. <method name="addMissing"
  8459. abstract="false" native="false" synchronized="false"
  8460. static="false" final="false" visibility="public"
  8461. deprecated="not deprecated">
  8462. <param name="id" type="java.lang.String"/>
  8463. <param name="size" type="long"/>
  8464. <doc>
  8465. <![CDATA[Add a missing block name, plus its size.]]>
  8466. </doc>
  8467. </method>
  8468. <method name="getMissingIds" return="java.util.ArrayList"
  8469. abstract="false" native="false" synchronized="false"
  8470. static="false" final="false" visibility="public"
  8471. deprecated="not deprecated">
  8472. <doc>
  8473. <![CDATA[Return a list of missing block names (as list of Strings).]]>
  8474. </doc>
  8475. </method>
  8476. <method name="getMissingSize" return="long"
  8477. abstract="false" native="false" synchronized="false"
  8478. static="false" final="false" visibility="public"
  8479. deprecated="not deprecated">
  8480. <doc>
  8481. <![CDATA[Return total size of missing data, in bytes.]]>
  8482. </doc>
  8483. </method>
  8484. <method name="setMissingSize"
  8485. abstract="false" native="false" synchronized="false"
  8486. static="false" final="false" visibility="public"
  8487. deprecated="not deprecated">
  8488. <param name="missingSize" type="long"/>
  8489. </method>
  8490. <method name="getExcessiveReplicas" return="long"
  8491. abstract="false" native="false" synchronized="false"
  8492. static="false" final="false" visibility="public"
  8493. deprecated="not deprecated">
  8494. <doc>
  8495. <![CDATA[Return the number of over-replicated blocks.]]>
  8496. </doc>
  8497. </method>
  8498. <method name="setExcessiveReplicas"
  8499. abstract="false" native="false" synchronized="false"
  8500. static="false" final="false" visibility="public"
  8501. deprecated="not deprecated">
  8502. <param name="overReplicatedBlocks" type="long"/>
  8503. </method>
  8504. <method name="getReplicationFactor" return="float"
  8505. abstract="false" native="false" synchronized="false"
  8506. static="false" final="false" visibility="public"
  8507. deprecated="not deprecated">
  8508. <doc>
  8509. <![CDATA[Return the actual replication factor.]]>
  8510. </doc>
  8511. </method>
  8512. <method name="getMissingReplicas" return="long"
  8513. abstract="false" native="false" synchronized="false"
  8514. static="false" final="false" visibility="public"
  8515. deprecated="not deprecated">
  8516. <doc>
  8517. <![CDATA[Return the number of under-replicated blocks. Note: missing blocks are not counted here.]]>
  8518. </doc>
  8519. </method>
  8520. <method name="setMissingReplicas"
  8521. abstract="false" native="false" synchronized="false"
  8522. static="false" final="false" visibility="public"
  8523. deprecated="not deprecated">
  8524. <param name="underReplicatedBlocks" type="long"/>
  8525. </method>
  8526. <method name="getTotalDirs" return="long"
  8527. abstract="false" native="false" synchronized="false"
  8528. static="false" final="false" visibility="public"
  8529. deprecated="not deprecated">
  8530. <doc>
  8531. <![CDATA[Return total number of directories encountered during this scan.]]>
  8532. </doc>
  8533. </method>
  8534. <method name="setTotalDirs"
  8535. abstract="false" native="false" synchronized="false"
  8536. static="false" final="false" visibility="public"
  8537. deprecated="not deprecated">
  8538. <param name="totalDirs" type="long"/>
  8539. </method>
  8540. <method name="getTotalFiles" return="long"
  8541. abstract="false" native="false" synchronized="false"
  8542. static="false" final="false" visibility="public"
  8543. deprecated="not deprecated">
  8544. <doc>
  8545. <![CDATA[Return total number of files encountered during this scan.]]>
  8546. </doc>
  8547. </method>
  8548. <method name="setTotalFiles"
  8549. abstract="false" native="false" synchronized="false"
  8550. static="false" final="false" visibility="public"
  8551. deprecated="not deprecated">
  8552. <param name="totalFiles" type="long"/>
  8553. </method>
  8554. <method name="getTotalOpenFiles" return="long"
  8555. abstract="false" native="false" synchronized="false"
  8556. static="false" final="false" visibility="public"
  8557. deprecated="not deprecated">
  8558. <doc>
  8559. <![CDATA[Return total number of files opened for write encountered during this scan.]]>
  8560. </doc>
  8561. </method>
  8562. <method name="setTotalOpenFiles"
  8563. abstract="false" native="false" synchronized="false"
  8564. static="false" final="false" visibility="public"
  8565. deprecated="not deprecated">
  8566. <param name="totalOpenFiles" type="long"/>
  8567. <doc>
  8568. <![CDATA[Set total number of open files encountered during this scan.]]>
  8569. </doc>
  8570. </method>
  8571. <method name="getTotalSize" return="long"
  8572. abstract="false" native="false" synchronized="false"
  8573. static="false" final="false" visibility="public"
  8574. deprecated="not deprecated">
  8575. <doc>
  8576. <![CDATA[Return total size of scanned data, in bytes.]]>
  8577. </doc>
  8578. </method>
  8579. <method name="setTotalSize"
  8580. abstract="false" native="false" synchronized="false"
  8581. static="false" final="false" visibility="public"
  8582. deprecated="not deprecated">
  8583. <param name="totalSize" type="long"/>
  8584. </method>
  8585. <method name="getTotalOpenFilesSize" return="long"
  8586. abstract="false" native="false" synchronized="false"
  8587. static="false" final="false" visibility="public"
  8588. deprecated="not deprecated">
  8589. <doc>
  8590. <![CDATA[Return total size of open files data, in bytes.]]>
  8591. </doc>
  8592. </method>
  8593. <method name="setTotalOpenFilesSize"
  8594. abstract="false" native="false" synchronized="false"
  8595. static="false" final="false" visibility="public"
  8596. deprecated="not deprecated">
  8597. <param name="totalOpenFilesSize" type="long"/>
  8598. </method>
  8599. <method name="getReplication" return="int"
  8600. abstract="false" native="false" synchronized="false"
  8601. static="false" final="false" visibility="public"
  8602. deprecated="not deprecated">
  8603. <doc>
  8604. <![CDATA[Return the intended replication factor, against which the over/under-
  8605. replicated blocks are counted. Note: this values comes from the current
  8606. Configuration supplied for the tool, so it may be different from the
  8607. value in DFS Configuration.]]>
  8608. </doc>
  8609. </method>
  8610. <method name="setReplication"
  8611. abstract="false" native="false" synchronized="false"
  8612. static="false" final="false" visibility="public"
  8613. deprecated="not deprecated">
  8614. <param name="replication" type="int"/>
  8615. </method>
  8616. <method name="getTotalBlocks" return="long"
  8617. abstract="false" native="false" synchronized="false"
  8618. static="false" final="false" visibility="public"
  8619. deprecated="not deprecated">
  8620. <doc>
  8621. <![CDATA[Return the total number of blocks in the scanned area.]]>
  8622. </doc>
  8623. </method>
  8624. <method name="setTotalBlocks"
  8625. abstract="false" native="false" synchronized="false"
  8626. static="false" final="false" visibility="public"
  8627. deprecated="not deprecated">
  8628. <param name="totalBlocks" type="long"/>
  8629. </method>
  8630. <method name="getTotalOpenFilesBlocks" return="long"
  8631. abstract="false" native="false" synchronized="false"
  8632. static="false" final="false" visibility="public"
  8633. deprecated="not deprecated">
  8634. <doc>
  8635. <![CDATA[Return the total number of blocks held by open files.]]>
  8636. </doc>
  8637. </method>
  8638. <method name="setTotalOpenFilesBlocks"
  8639. abstract="false" native="false" synchronized="false"
  8640. static="false" final="false" visibility="public"
  8641. deprecated="not deprecated">
  8642. <param name="totalOpenFilesBlocks" type="long"/>
  8643. </method>
  8644. <method name="toString" return="java.lang.String"
  8645. abstract="false" native="false" synchronized="false"
  8646. static="false" final="false" visibility="public"
  8647. deprecated="not deprecated">
  8648. </method>
  8649. <method name="getCorruptFiles" return="long"
  8650. abstract="false" native="false" synchronized="false"
  8651. static="false" final="false" visibility="public"
  8652. deprecated="not deprecated">
  8653. <doc>
  8654. <![CDATA[Return the number of currupted files.]]>
  8655. </doc>
  8656. </method>
  8657. <method name="setCorruptFiles"
  8658. abstract="false" native="false" synchronized="false"
  8659. static="false" final="false" visibility="public"
  8660. deprecated="not deprecated">
  8661. <param name="corruptFiles" type="long"/>
  8662. </method>
  8663. <doc>
  8664. <![CDATA[FsckResult of checking, plus overall DFS statistics.]]>
  8665. </doc>
  8666. </class>
  8667. <!-- end class org.apache.hadoop.hdfs.server.namenode.NamenodeFsck.FsckResult -->
  8668. <!-- start class org.apache.hadoop.hdfs.server.namenode.NotReplicatedYetException -->
  8669. <class name="NotReplicatedYetException" extends="java.io.IOException"
  8670. abstract="false"
  8671. static="false" final="false" visibility="public"
  8672. deprecated="not deprecated">
  8673. <constructor name="NotReplicatedYetException" type="java.lang.String"
  8674. static="false" final="false" visibility="public"
  8675. deprecated="not deprecated">
  8676. </constructor>
  8677. <doc>
  8678. <![CDATA[The file has not finished being written to enough datanodes yet.]]>
  8679. </doc>
  8680. </class>
  8681. <!-- end class org.apache.hadoop.hdfs.server.namenode.NotReplicatedYetException -->
  8682. <!-- start class org.apache.hadoop.hdfs.server.namenode.SafeModeException -->
  8683. <class name="SafeModeException" extends="java.io.IOException"
  8684. abstract="false"
  8685. static="false" final="false" visibility="public"
  8686. deprecated="not deprecated">
  8687. <constructor name="SafeModeException" type="java.lang.String, org.apache.hadoop.hdfs.server.namenode.FSNamesystem.SafeModeInfo"
  8688. static="false" final="false" visibility="public"
  8689. deprecated="not deprecated">
  8690. </constructor>
  8691. <doc>
  8692. <![CDATA[This exception is thrown when the name node is in safe mode.
  8693. Client cannot modified namespace until the safe mode is off.]]>
  8694. </doc>
  8695. </class>
  8696. <!-- end class org.apache.hadoop.hdfs.server.namenode.SafeModeException -->
  8697. <!-- start class org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode -->
  8698. <class name="SecondaryNameNode" extends="java.lang.Object"
  8699. abstract="false"
  8700. static="false" final="false" visibility="public"
  8701. deprecated="not deprecated">
  8702. <implements name="java.lang.Runnable"/>
  8703. <constructor name="SecondaryNameNode" type="org.apache.hadoop.conf.Configuration"
  8704. static="false" final="false" visibility="public"
  8705. deprecated="not deprecated">
  8706. <exception name="IOException" type="java.io.IOException"/>
  8707. <doc>
  8708. <![CDATA[Create a connection to the primary namenode.]]>
  8709. </doc>
  8710. </constructor>
  8711. <method name="shutdown"
  8712. abstract="false" native="false" synchronized="false"
  8713. static="false" final="false" visibility="public"
  8714. deprecated="not deprecated">
  8715. <doc>
  8716. <![CDATA[Shut down this instance of the datanode.
  8717. Returns only after shutdown is complete.]]>
  8718. </doc>
  8719. </method>
  8720. <method name="run"
  8721. abstract="false" native="false" synchronized="false"
  8722. static="false" final="false" visibility="public"
  8723. deprecated="not deprecated">
  8724. </method>
  8725. <method name="main"
  8726. abstract="false" native="false" synchronized="false"
  8727. static="true" final="false" visibility="public"
  8728. deprecated="not deprecated">
  8729. <param name="argv" type="java.lang.String[]"/>
  8730. <exception name="Exception" type="java.lang.Exception"/>
  8731. <doc>
  8732. <![CDATA[main() has some simple utility methods.
  8733. @param argv Command line parameters.
  8734. @exception Exception if the filesystem does not exist.]]>
  8735. </doc>
  8736. </method>
  8737. <field name="LOG" type="org.apache.commons.logging.Log"
  8738. transient="false" volatile="false"
  8739. static="true" final="true" visibility="public"
  8740. deprecated="not deprecated">
  8741. </field>
  8742. <doc>
  8743. <![CDATA[The Secondary NameNode is a helper to the primary NameNode.
  8744. The Secondary is responsible for supporting periodic checkpoints
  8745. of the HDFS metadata. The current design allows only one Secondary
  8746. NameNode per HDFs cluster.
  8747. The Secondary NameNode is a daemon that periodically wakes
  8748. up (determined by the schedule specified in the configuration),
  8749. triggers a periodic checkpoint and then goes back to sleep.
  8750. The Secondary NameNode uses the ClientProtocol to talk to the
  8751. primary NameNode.]]>
  8752. </doc>
  8753. </class>
  8754. <!-- end class org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode -->
  8755. <!-- start class org.apache.hadoop.hdfs.server.namenode.StreamFile -->
  8756. <class name="StreamFile" extends="org.apache.hadoop.hdfs.server.namenode.DfsServlet"
  8757. abstract="false"
  8758. static="false" final="false" visibility="public"
  8759. deprecated="not deprecated">
  8760. <constructor name="StreamFile"
  8761. static="false" final="false" visibility="public"
  8762. deprecated="not deprecated">
  8763. </constructor>
  8764. <method name="getDFSClient" return="org.apache.hadoop.hdfs.DFSClient"
  8765. abstract="false" native="false" synchronized="false"
  8766. static="false" final="false" visibility="protected"
  8767. deprecated="not deprecated">
  8768. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8769. <exception name="IOException" type="java.io.IOException"/>
  8770. <doc>
  8771. <![CDATA[getting a client for connecting to dfs]]>
  8772. </doc>
  8773. </method>
  8774. <method name="doGet"
  8775. abstract="false" native="false" synchronized="false"
  8776. static="false" final="false" visibility="public"
  8777. deprecated="not deprecated">
  8778. <param name="request" type="javax.servlet.http.HttpServletRequest"/>
  8779. <param name="response" type="javax.servlet.http.HttpServletResponse"/>
  8780. <exception name="ServletException" type="javax.servlet.ServletException"/>
  8781. <exception name="IOException" type="java.io.IOException"/>
  8782. </method>
  8783. </class>
  8784. <!-- end class org.apache.hadoop.hdfs.server.namenode.StreamFile -->
  8785. <!-- start class org.apache.hadoop.hdfs.server.namenode.UpgradeObjectNamenode -->
  8786. <class name="UpgradeObjectNamenode" extends="org.apache.hadoop.hdfs.server.common.UpgradeObject"
  8787. abstract="true"
  8788. static="false" final="false" visibility="public"
  8789. deprecated="not deprecated">
  8790. <constructor name="UpgradeObjectNamenode"
  8791. static="false" final="false" visibility="public"
  8792. deprecated="not deprecated">
  8793. </constructor>
  8794. <method name="processUpgradeCommand" return="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  8795. abstract="true" native="false" synchronized="false"
  8796. static="false" final="false" visibility="public"
  8797. deprecated="not deprecated">
  8798. <param name="command" type="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"/>
  8799. <exception name="IOException" type="java.io.IOException"/>
  8800. <doc>
  8801. <![CDATA[Process an upgrade command.
  8802. RPC has only one very generic command for all upgrade related inter
  8803. component communications.
  8804. The actual command recognition and execution should be handled here.
  8805. The reply is sent back also as an UpgradeCommand.
  8806. @param command
  8807. @return the reply command which is analyzed on the client side.]]>
  8808. </doc>
  8809. </method>
  8810. <method name="getType" return="org.apache.hadoop.hdfs.server.common.HdfsConstants.NodeType"
  8811. abstract="false" native="false" synchronized="false"
  8812. static="false" final="false" visibility="public"
  8813. deprecated="not deprecated">
  8814. </method>
  8815. <method name="startUpgrade" return="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  8816. abstract="false" native="false" synchronized="false"
  8817. static="false" final="false" visibility="public"
  8818. deprecated="not deprecated">
  8819. <exception name="IOException" type="java.io.IOException"/>
  8820. </method>
  8821. <method name="getFSNamesystem" return="org.apache.hadoop.hdfs.server.namenode.FSNamesystem"
  8822. abstract="false" native="false" synchronized="false"
  8823. static="false" final="false" visibility="protected"
  8824. deprecated="not deprecated">
  8825. </method>
  8826. <method name="forceProceed"
  8827. abstract="false" native="false" synchronized="false"
  8828. static="false" final="false" visibility="public"
  8829. deprecated="not deprecated">
  8830. <exception name="IOException" type="java.io.IOException"/>
  8831. </method>
  8832. <doc>
  8833. <![CDATA[Base class for name-node upgrade objects.
  8834. Data-node upgrades are run in separate threads.]]>
  8835. </doc>
  8836. </class>
  8837. <!-- end class org.apache.hadoop.hdfs.server.namenode.UpgradeObjectNamenode -->
  8838. </package>
  8839. <package name="org.apache.hadoop.hdfs.server.namenode.metrics">
  8840. <!-- start interface org.apache.hadoop.hdfs.server.namenode.metrics.FSNamesystemMBean -->
  8841. <interface name="FSNamesystemMBean" abstract="true"
  8842. static="false" final="false" visibility="public"
  8843. deprecated="not deprecated">
  8844. <method name="getFSState" return="java.lang.String"
  8845. abstract="false" native="false" synchronized="false"
  8846. static="false" final="false" visibility="public"
  8847. deprecated="not deprecated">
  8848. <doc>
  8849. <![CDATA[The state of the file system: Safemode or Operational
  8850. @return the state]]>
  8851. </doc>
  8852. </method>
  8853. <method name="getBlocksTotal" return="long"
  8854. abstract="false" native="false" synchronized="false"
  8855. static="false" final="false" visibility="public"
  8856. deprecated="not deprecated">
  8857. <doc>
  8858. <![CDATA[Number of allocated blocks in the system
  8859. @return - number of allocated blocks]]>
  8860. </doc>
  8861. </method>
  8862. <method name="getCapacityTotal" return="long"
  8863. abstract="false" native="false" synchronized="false"
  8864. static="false" final="false" visibility="public"
  8865. deprecated="not deprecated">
  8866. <doc>
  8867. <![CDATA[Total storage capacity
  8868. @return - total capacity in bytes]]>
  8869. </doc>
  8870. </method>
  8871. <method name="getCapacityRemaining" return="long"
  8872. abstract="false" native="false" synchronized="false"
  8873. static="false" final="false" visibility="public"
  8874. deprecated="not deprecated">
  8875. <doc>
  8876. <![CDATA[Free (unused) storage capacity
  8877. @return - free capacity in bytes]]>
  8878. </doc>
  8879. </method>
  8880. <method name="getCapacityUsed" return="long"
  8881. abstract="false" native="false" synchronized="false"
  8882. static="false" final="false" visibility="public"
  8883. deprecated="not deprecated">
  8884. <doc>
  8885. <![CDATA[Used storage capacity
  8886. @return - used capacity in bytes]]>
  8887. </doc>
  8888. </method>
  8889. <method name="getFilesTotal" return="long"
  8890. abstract="false" native="false" synchronized="false"
  8891. static="false" final="false" visibility="public"
  8892. deprecated="not deprecated">
  8893. <doc>
  8894. <![CDATA[Total number of files and directories
  8895. @return - num of files and directories]]>
  8896. </doc>
  8897. </method>
  8898. <method name="getPendingReplicationBlocks" return="long"
  8899. abstract="false" native="false" synchronized="false"
  8900. static="false" final="false" visibility="public"
  8901. deprecated="not deprecated">
  8902. <doc>
  8903. <![CDATA[Blocks pending to be replicated
  8904. @return - num of blocks to be replicated]]>
  8905. </doc>
  8906. </method>
  8907. <method name="getUnderReplicatedBlocks" return="long"
  8908. abstract="false" native="false" synchronized="false"
  8909. static="false" final="false" visibility="public"
  8910. deprecated="not deprecated">
  8911. <doc>
  8912. <![CDATA[Blocks under replicated
  8913. @return - num of blocks under replicated]]>
  8914. </doc>
  8915. </method>
  8916. <method name="getScheduledReplicationBlocks" return="long"
  8917. abstract="false" native="false" synchronized="false"
  8918. static="false" final="false" visibility="public"
  8919. deprecated="not deprecated">
  8920. <doc>
  8921. <![CDATA[Blocks scheduled for replication
  8922. @return - num of blocks scheduled for replication]]>
  8923. </doc>
  8924. </method>
  8925. <method name="getTotalLoad" return="int"
  8926. abstract="false" native="false" synchronized="false"
  8927. static="false" final="false" visibility="public"
  8928. deprecated="not deprecated">
  8929. <doc>
  8930. <![CDATA[Total Load on the FSNamesystem
  8931. @return - total load of FSNamesystem]]>
  8932. </doc>
  8933. </method>
  8934. <method name="numLiveDataNodes" return="int"
  8935. abstract="false" native="false" synchronized="false"
  8936. static="false" final="false" visibility="public"
  8937. deprecated="not deprecated">
  8938. <doc>
  8939. <![CDATA[Number of Live data nodes
  8940. @return number of live data nodes]]>
  8941. </doc>
  8942. </method>
  8943. <method name="numDeadDataNodes" return="int"
  8944. abstract="false" native="false" synchronized="false"
  8945. static="false" final="false" visibility="public"
  8946. deprecated="not deprecated">
  8947. <doc>
  8948. <![CDATA[Number of dead data nodes
  8949. @return number of dead data nodes]]>
  8950. </doc>
  8951. </method>
  8952. <doc>
  8953. <![CDATA[This Interface defines the methods to get the status of a the FSNamesystem of
  8954. a name node.
  8955. It is also used for publishing via JMX (hence we follow the JMX naming
  8956. convention.)
  8957. Note we have not used the MetricsDynamicMBeanBase to implement this
  8958. because the interface for the NameNodeStateMBean is stable and should
  8959. be published as an interface.
  8960. <p>
  8961. Name Node runtime activity statistic info is report in another MBean
  8962. @see org.apache.hadoop.hdfs.server.namenode.metrics.NameNodeActivityMBean]]>
  8963. </doc>
  8964. </interface>
  8965. <!-- end interface org.apache.hadoop.hdfs.server.namenode.metrics.FSNamesystemMBean -->
  8966. <!-- start class org.apache.hadoop.hdfs.server.namenode.metrics.FSNamesystemMetrics -->
  8967. <class name="FSNamesystemMetrics" extends="java.lang.Object"
  8968. abstract="false"
  8969. static="false" final="false" visibility="public"
  8970. deprecated="not deprecated">
  8971. <implements name="org.apache.hadoop.metrics.Updater"/>
  8972. <constructor name="FSNamesystemMetrics" type="org.apache.hadoop.conf.Configuration"
  8973. static="false" final="false" visibility="public"
  8974. deprecated="not deprecated">
  8975. </constructor>
  8976. <method name="doUpdates"
  8977. abstract="false" native="false" synchronized="false"
  8978. static="false" final="false" visibility="public"
  8979. deprecated="not deprecated">
  8980. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  8981. <doc>
  8982. <![CDATA[Since this object is a registered updater, this method will be called
  8983. periodically, e.g. every 5 seconds.
  8984. We set the metrics value within this function before pushing it out.
  8985. FSNamesystem updates its own local variables which are
  8986. light weight compared to Metrics counters.
  8987. Some of the metrics are explicity casted to int. Few metrics collectors
  8988. do not handle long values. It is safe to cast to int for now as all these
  8989. values fit in int value.
  8990. Metrics related to DFS capacity are stored in bytes which do not fit in
  8991. int, so they are rounded to GB]]>
  8992. </doc>
  8993. </method>
  8994. <field name="registry" type="org.apache.hadoop.metrics.util.MetricsRegistry"
  8995. transient="false" volatile="false"
  8996. static="false" final="false" visibility="public"
  8997. deprecated="not deprecated">
  8998. </field>
  8999. <field name="filesTotal" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9000. transient="false" volatile="false"
  9001. static="false" final="false" visibility="public"
  9002. deprecated="not deprecated">
  9003. </field>
  9004. <field name="blocksTotal" type="org.apache.hadoop.metrics.util.MetricsLongValue"
  9005. transient="false" volatile="false"
  9006. static="false" final="false" visibility="public"
  9007. deprecated="not deprecated">
  9008. </field>
  9009. <field name="capacityTotalGB" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9010. transient="false" volatile="false"
  9011. static="false" final="false" visibility="public"
  9012. deprecated="not deprecated">
  9013. </field>
  9014. <field name="capacityUsedGB" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9015. transient="false" volatile="false"
  9016. static="false" final="false" visibility="public"
  9017. deprecated="not deprecated">
  9018. </field>
  9019. <field name="capacityRemainingGB" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9020. transient="false" volatile="false"
  9021. static="false" final="false" visibility="public"
  9022. deprecated="not deprecated">
  9023. </field>
  9024. <field name="totalLoad" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9025. transient="false" volatile="false"
  9026. static="false" final="false" visibility="public"
  9027. deprecated="not deprecated">
  9028. </field>
  9029. <field name="pendingReplicationBlocks" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9030. transient="false" volatile="false"
  9031. static="false" final="false" visibility="public"
  9032. deprecated="not deprecated">
  9033. </field>
  9034. <field name="underReplicatedBlocks" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9035. transient="false" volatile="false"
  9036. static="false" final="false" visibility="public"
  9037. deprecated="not deprecated">
  9038. </field>
  9039. <field name="scheduledReplicationBlocks" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9040. transient="false" volatile="false"
  9041. static="false" final="false" visibility="public"
  9042. deprecated="not deprecated">
  9043. </field>
  9044. <field name="missingBlocks" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9045. transient="false" volatile="false"
  9046. static="false" final="false" visibility="public"
  9047. deprecated="not deprecated">
  9048. </field>
  9049. <doc>
  9050. <![CDATA[This class is for maintaining the various FSNamesystem status metrics
  9051. and publishing them through the metrics interfaces.
  9052. The SNamesystem creates and registers the JMX MBean.
  9053. <p>
  9054. This class has a number of metrics variables that are publicly accessible;
  9055. these variables (objects) have methods to update their values;
  9056. for example:
  9057. <p> {@link #filesTotal}.set()]]>
  9058. </doc>
  9059. </class>
  9060. <!-- end class org.apache.hadoop.hdfs.server.namenode.metrics.FSNamesystemMetrics -->
  9061. <!-- start class org.apache.hadoop.hdfs.server.namenode.metrics.NameNodeActivtyMBean -->
  9062. <class name="NameNodeActivtyMBean" extends="org.apache.hadoop.metrics.util.MetricsDynamicMBeanBase"
  9063. abstract="false"
  9064. static="false" final="false" visibility="public"
  9065. deprecated="not deprecated">
  9066. <constructor name="NameNodeActivtyMBean" type="org.apache.hadoop.metrics.util.MetricsRegistry"
  9067. static="false" final="false" visibility="protected"
  9068. deprecated="not deprecated">
  9069. </constructor>
  9070. <method name="shutdown"
  9071. abstract="false" native="false" synchronized="false"
  9072. static="false" final="false" visibility="public"
  9073. deprecated="not deprecated">
  9074. </method>
  9075. <doc>
  9076. <![CDATA[This is the JMX MBean for reporting the NameNode Activity.
  9077. The MBean is register using the name
  9078. "hadoop:service=NameNode,name=NameNodeActivity"
  9079. Many of the activity metrics are sampled and averaged on an interval
  9080. which can be specified in the metrics config file.
  9081. <p>
  9082. For the metrics that are sampled and averaged, one must specify
  9083. a metrics context that does periodic update calls. Most metrics contexts do.
  9084. The default Null metrics context however does NOT. So if you aren't
  9085. using any other metrics context then you can turn on the viewing and averaging
  9086. of sampled metrics by specifying the following two lines
  9087. in the hadoop-meterics.properties file:
  9088. <pre>
  9089. dfs.class=org.apache.hadoop.metrics.spi.NullContextWithUpdateThread
  9090. dfs.period=10
  9091. </pre>
  9092. <p>
  9093. Note that the metrics are collected regardless of the context used.
  9094. The context with the update thread is used to average the data periodically
  9095. Impl details: We use a dynamic mbean that gets the list of the metrics
  9096. from the metrics registry passed as an argument to the constructor]]>
  9097. </doc>
  9098. </class>
  9099. <!-- end class org.apache.hadoop.hdfs.server.namenode.metrics.NameNodeActivtyMBean -->
  9100. <!-- start class org.apache.hadoop.hdfs.server.namenode.metrics.NameNodeMetrics -->
  9101. <class name="NameNodeMetrics" extends="java.lang.Object"
  9102. abstract="false"
  9103. static="false" final="false" visibility="public"
  9104. deprecated="not deprecated">
  9105. <implements name="org.apache.hadoop.metrics.Updater"/>
  9106. <constructor name="NameNodeMetrics" type="org.apache.hadoop.conf.Configuration, org.apache.hadoop.hdfs.server.namenode.NameNode"
  9107. static="false" final="false" visibility="public"
  9108. deprecated="not deprecated">
  9109. </constructor>
  9110. <method name="shutdown"
  9111. abstract="false" native="false" synchronized="false"
  9112. static="false" final="false" visibility="public"
  9113. deprecated="not deprecated">
  9114. </method>
  9115. <method name="doUpdates"
  9116. abstract="false" native="false" synchronized="false"
  9117. static="false" final="false" visibility="public"
  9118. deprecated="not deprecated">
  9119. <param name="unused" type="org.apache.hadoop.metrics.MetricsContext"/>
  9120. <doc>
  9121. <![CDATA[Since this object is a registered updater, this method will be called
  9122. periodically, e.g. every 5 seconds.]]>
  9123. </doc>
  9124. </method>
  9125. <method name="resetAllMinMax"
  9126. abstract="false" native="false" synchronized="false"
  9127. static="false" final="false" visibility="public"
  9128. deprecated="not deprecated">
  9129. </method>
  9130. <field name="registry" type="org.apache.hadoop.metrics.util.MetricsRegistry"
  9131. transient="false" volatile="false"
  9132. static="false" final="false" visibility="public"
  9133. deprecated="not deprecated">
  9134. </field>
  9135. <field name="numFilesCreated" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9136. transient="false" volatile="false"
  9137. static="false" final="false" visibility="public"
  9138. deprecated="not deprecated">
  9139. </field>
  9140. <field name="numFilesAppended" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9141. transient="false" volatile="false"
  9142. static="false" final="false" visibility="public"
  9143. deprecated="not deprecated">
  9144. </field>
  9145. <field name="numGetBlockLocations" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9146. transient="false" volatile="false"
  9147. static="false" final="false" visibility="public"
  9148. deprecated="not deprecated">
  9149. </field>
  9150. <field name="numFilesRenamed" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9151. transient="false" volatile="false"
  9152. static="false" final="false" visibility="public"
  9153. deprecated="not deprecated">
  9154. </field>
  9155. <field name="numGetListingOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9156. transient="false" volatile="false"
  9157. static="false" final="false" visibility="public"
  9158. deprecated="not deprecated">
  9159. </field>
  9160. <field name="numCreateFileOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9161. transient="false" volatile="false"
  9162. static="false" final="false" visibility="public"
  9163. deprecated="not deprecated">
  9164. </field>
  9165. <field name="numDeleteFileOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9166. transient="false" volatile="false"
  9167. static="false" final="false" visibility="public"
  9168. deprecated="not deprecated">
  9169. </field>
  9170. <field name="numAddBlockOps" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9171. transient="false" volatile="false"
  9172. static="false" final="false" visibility="public"
  9173. deprecated="not deprecated">
  9174. </field>
  9175. <field name="transactions" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  9176. transient="false" volatile="false"
  9177. static="false" final="false" visibility="public"
  9178. deprecated="not deprecated">
  9179. </field>
  9180. <field name="syncs" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  9181. transient="false" volatile="false"
  9182. static="false" final="false" visibility="public"
  9183. deprecated="not deprecated">
  9184. </field>
  9185. <field name="transactionsBatchedInSync" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingInt"
  9186. transient="false" volatile="false"
  9187. static="false" final="false" visibility="public"
  9188. deprecated="not deprecated">
  9189. </field>
  9190. <field name="blockReport" type="org.apache.hadoop.metrics.util.MetricsTimeVaryingRate"
  9191. transient="false" volatile="false"
  9192. static="false" final="false" visibility="public"
  9193. deprecated="not deprecated">
  9194. </field>
  9195. <field name="safeModeTime" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9196. transient="false" volatile="false"
  9197. static="false" final="false" visibility="public"
  9198. deprecated="not deprecated">
  9199. </field>
  9200. <field name="fsImageLoadTime" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9201. transient="false" volatile="false"
  9202. static="false" final="false" visibility="public"
  9203. deprecated="not deprecated">
  9204. </field>
  9205. <field name="numBlocksCorrupted" type="org.apache.hadoop.metrics.util.MetricsIntValue"
  9206. transient="false" volatile="false"
  9207. static="false" final="false" visibility="public"
  9208. deprecated="not deprecated">
  9209. </field>
  9210. <doc>
  9211. <![CDATA[This class is for maintaining the various NameNode activity statistics
  9212. and publishing them through the metrics interfaces.
  9213. This also registers the JMX MBean for RPC.
  9214. <p>
  9215. This class has a number of metrics variables that are publicly accessible;
  9216. these variables (objects) have methods to update their values;
  9217. for example:
  9218. <p> {@link #syncs}.inc()]]>
  9219. </doc>
  9220. </class>
  9221. <!-- end class org.apache.hadoop.hdfs.server.namenode.metrics.NameNodeMetrics -->
  9222. </package>
  9223. <package name="org.apache.hadoop.hdfs.server.protocol">
  9224. <!-- start class org.apache.hadoop.hdfs.server.protocol.BlockCommand -->
  9225. <class name="BlockCommand" extends="org.apache.hadoop.hdfs.server.protocol.DatanodeCommand"
  9226. abstract="false"
  9227. static="false" final="false" visibility="public"
  9228. deprecated="not deprecated">
  9229. <constructor name="BlockCommand"
  9230. static="false" final="false" visibility="public"
  9231. deprecated="not deprecated">
  9232. </constructor>
  9233. <constructor name="BlockCommand" type="int, java.util.List"
  9234. static="false" final="false" visibility="public"
  9235. deprecated="not deprecated">
  9236. <doc>
  9237. <![CDATA[Create BlockCommand for transferring blocks to another datanode
  9238. @param blocktargetlist blocks to be transferred]]>
  9239. </doc>
  9240. </constructor>
  9241. <constructor name="BlockCommand" type="int, org.apache.hadoop.hdfs.protocol.Block[]"
  9242. static="false" final="false" visibility="public"
  9243. deprecated="not deprecated">
  9244. <doc>
  9245. <![CDATA[Create BlockCommand for the given action
  9246. @param blocks blocks related to the action]]>
  9247. </doc>
  9248. </constructor>
  9249. <method name="getBlocks" return="org.apache.hadoop.hdfs.protocol.Block[]"
  9250. abstract="false" native="false" synchronized="false"
  9251. static="false" final="false" visibility="public"
  9252. deprecated="not deprecated">
  9253. </method>
  9254. <method name="getTargets" return="org.apache.hadoop.hdfs.protocol.DatanodeInfo[][]"
  9255. abstract="false" native="false" synchronized="false"
  9256. static="false" final="false" visibility="public"
  9257. deprecated="not deprecated">
  9258. </method>
  9259. <method name="write"
  9260. abstract="false" native="false" synchronized="false"
  9261. static="false" final="false" visibility="public"
  9262. deprecated="not deprecated">
  9263. <param name="out" type="java.io.DataOutput"/>
  9264. <exception name="IOException" type="java.io.IOException"/>
  9265. </method>
  9266. <method name="readFields"
  9267. abstract="false" native="false" synchronized="false"
  9268. static="false" final="false" visibility="public"
  9269. deprecated="not deprecated">
  9270. <param name="in" type="java.io.DataInput"/>
  9271. <exception name="IOException" type="java.io.IOException"/>
  9272. </method>
  9273. <doc>
  9274. <![CDATA[A BlockCommand is an instruction to a datanode
  9275. regarding some blocks under its control. It tells
  9276. the DataNode to either invalidate a set of indicated
  9277. blocks, or to copy a set of indicated blocks to
  9278. another DataNode.]]>
  9279. </doc>
  9280. </class>
  9281. <!-- end class org.apache.hadoop.hdfs.server.protocol.BlockCommand -->
  9282. <!-- start class org.apache.hadoop.hdfs.server.protocol.BlockMetaDataInfo -->
  9283. <class name="BlockMetaDataInfo" extends="org.apache.hadoop.hdfs.protocol.Block"
  9284. abstract="false"
  9285. static="false" final="false" visibility="public"
  9286. deprecated="not deprecated">
  9287. <constructor name="BlockMetaDataInfo"
  9288. static="false" final="false" visibility="public"
  9289. deprecated="not deprecated">
  9290. </constructor>
  9291. <constructor name="BlockMetaDataInfo" type="org.apache.hadoop.hdfs.protocol.Block, long"
  9292. static="false" final="false" visibility="public"
  9293. deprecated="not deprecated">
  9294. </constructor>
  9295. <method name="getLastScanTime" return="long"
  9296. abstract="false" native="false" synchronized="false"
  9297. static="false" final="false" visibility="public"
  9298. deprecated="not deprecated">
  9299. </method>
  9300. <method name="write"
  9301. abstract="false" native="false" synchronized="false"
  9302. static="false" final="false" visibility="public"
  9303. deprecated="not deprecated">
  9304. <param name="out" type="java.io.DataOutput"/>
  9305. <exception name="IOException" type="java.io.IOException"/>
  9306. <doc>
  9307. <![CDATA[{@inheritDoc}]]>
  9308. </doc>
  9309. </method>
  9310. <method name="readFields"
  9311. abstract="false" native="false" synchronized="false"
  9312. static="false" final="false" visibility="public"
  9313. deprecated="not deprecated">
  9314. <param name="in" type="java.io.DataInput"/>
  9315. <exception name="IOException" type="java.io.IOException"/>
  9316. <doc>
  9317. <![CDATA[{@inheritDoc}]]>
  9318. </doc>
  9319. </method>
  9320. <doc>
  9321. <![CDATA[Meta data information for a block]]>
  9322. </doc>
  9323. </class>
  9324. <!-- end class org.apache.hadoop.hdfs.server.protocol.BlockMetaDataInfo -->
  9325. <!-- start class org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations -->
  9326. <class name="BlocksWithLocations" extends="java.lang.Object"
  9327. abstract="false"
  9328. static="false" final="false" visibility="public"
  9329. deprecated="not deprecated">
  9330. <implements name="org.apache.hadoop.io.Writable"/>
  9331. <constructor name="BlocksWithLocations" type="org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations[]"
  9332. static="false" final="false" visibility="public"
  9333. deprecated="not deprecated">
  9334. <doc>
  9335. <![CDATA[Constructor with one parameter]]>
  9336. </doc>
  9337. </constructor>
  9338. <method name="getBlocks" return="org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations[]"
  9339. abstract="false" native="false" synchronized="false"
  9340. static="false" final="false" visibility="public"
  9341. deprecated="not deprecated">
  9342. <doc>
  9343. <![CDATA[getter]]>
  9344. </doc>
  9345. </method>
  9346. <method name="write"
  9347. abstract="false" native="false" synchronized="false"
  9348. static="false" final="false" visibility="public"
  9349. deprecated="not deprecated">
  9350. <param name="out" type="java.io.DataOutput"/>
  9351. <exception name="IOException" type="java.io.IOException"/>
  9352. <doc>
  9353. <![CDATA[serialization method]]>
  9354. </doc>
  9355. </method>
  9356. <method name="readFields"
  9357. abstract="false" native="false" synchronized="false"
  9358. static="false" final="false" visibility="public"
  9359. deprecated="not deprecated">
  9360. <param name="in" type="java.io.DataInput"/>
  9361. <exception name="IOException" type="java.io.IOException"/>
  9362. <doc>
  9363. <![CDATA[deserialization method]]>
  9364. </doc>
  9365. </method>
  9366. <doc>
  9367. <![CDATA[A class to implement an array of BlockLocations
  9368. It provide efficient customized serialization/deserialization methods
  9369. in stead of using the default array (de)serialization provided by RPC]]>
  9370. </doc>
  9371. </class>
  9372. <!-- end class org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations -->
  9373. <!-- start class org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations -->
  9374. <class name="BlocksWithLocations.BlockWithLocations" extends="java.lang.Object"
  9375. abstract="false"
  9376. static="true" final="false" visibility="public"
  9377. deprecated="not deprecated">
  9378. <implements name="org.apache.hadoop.io.Writable"/>
  9379. <constructor name="BlocksWithLocations.BlockWithLocations"
  9380. static="false" final="false" visibility="public"
  9381. deprecated="not deprecated">
  9382. <doc>
  9383. <![CDATA[default constructor]]>
  9384. </doc>
  9385. </constructor>
  9386. <constructor name="BlocksWithLocations.BlockWithLocations" type="org.apache.hadoop.hdfs.protocol.Block, java.lang.String[]"
  9387. static="false" final="false" visibility="public"
  9388. deprecated="not deprecated">
  9389. <doc>
  9390. <![CDATA[constructor]]>
  9391. </doc>
  9392. </constructor>
  9393. <method name="getBlock" return="org.apache.hadoop.hdfs.protocol.Block"
  9394. abstract="false" native="false" synchronized="false"
  9395. static="false" final="false" visibility="public"
  9396. deprecated="not deprecated">
  9397. <doc>
  9398. <![CDATA[get the block]]>
  9399. </doc>
  9400. </method>
  9401. <method name="getDatanodes" return="java.lang.String[]"
  9402. abstract="false" native="false" synchronized="false"
  9403. static="false" final="false" visibility="public"
  9404. deprecated="not deprecated">
  9405. <doc>
  9406. <![CDATA[get the block's locations]]>
  9407. </doc>
  9408. </method>
  9409. <method name="readFields"
  9410. abstract="false" native="false" synchronized="false"
  9411. static="false" final="false" visibility="public"
  9412. deprecated="not deprecated">
  9413. <param name="in" type="java.io.DataInput"/>
  9414. <exception name="IOException" type="java.io.IOException"/>
  9415. <doc>
  9416. <![CDATA[deserialization method]]>
  9417. </doc>
  9418. </method>
  9419. <method name="write"
  9420. abstract="false" native="false" synchronized="false"
  9421. static="false" final="false" visibility="public"
  9422. deprecated="not deprecated">
  9423. <param name="out" type="java.io.DataOutput"/>
  9424. <exception name="IOException" type="java.io.IOException"/>
  9425. <doc>
  9426. <![CDATA[serialization method]]>
  9427. </doc>
  9428. </method>
  9429. <doc>
  9430. <![CDATA[A class to keep track of a block and its locations]]>
  9431. </doc>
  9432. </class>
  9433. <!-- end class org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations.BlockWithLocations -->
  9434. <!-- start class org.apache.hadoop.hdfs.server.protocol.DatanodeCommand -->
  9435. <class name="DatanodeCommand" extends="java.lang.Object"
  9436. abstract="true"
  9437. static="false" final="false" visibility="public"
  9438. deprecated="not deprecated">
  9439. <implements name="org.apache.hadoop.io.Writable"/>
  9440. <constructor name="DatanodeCommand"
  9441. static="false" final="false" visibility="public"
  9442. deprecated="not deprecated">
  9443. </constructor>
  9444. <method name="getAction" return="int"
  9445. abstract="false" native="false" synchronized="false"
  9446. static="false" final="false" visibility="public"
  9447. deprecated="not deprecated">
  9448. </method>
  9449. <method name="write"
  9450. abstract="false" native="false" synchronized="false"
  9451. static="false" final="false" visibility="public"
  9452. deprecated="not deprecated">
  9453. <param name="out" type="java.io.DataOutput"/>
  9454. <exception name="IOException" type="java.io.IOException"/>
  9455. </method>
  9456. <method name="readFields"
  9457. abstract="false" native="false" synchronized="false"
  9458. static="false" final="false" visibility="public"
  9459. deprecated="not deprecated">
  9460. <param name="in" type="java.io.DataInput"/>
  9461. <exception name="IOException" type="java.io.IOException"/>
  9462. </method>
  9463. <field name="REGISTER" type="org.apache.hadoop.hdfs.server.protocol.DatanodeCommand"
  9464. transient="false" volatile="false"
  9465. static="true" final="true" visibility="public"
  9466. deprecated="not deprecated">
  9467. </field>
  9468. <field name="FINALIZE" type="org.apache.hadoop.hdfs.server.protocol.DatanodeCommand"
  9469. transient="false" volatile="false"
  9470. static="true" final="true" visibility="public"
  9471. deprecated="not deprecated">
  9472. </field>
  9473. </class>
  9474. <!-- end class org.apache.hadoop.hdfs.server.protocol.DatanodeCommand -->
  9475. <!-- start interface org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol -->
  9476. <interface name="DatanodeProtocol" abstract="true"
  9477. static="false" final="false" visibility="public"
  9478. deprecated="not deprecated">
  9479. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  9480. <method name="register" return="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"
  9481. abstract="false" native="false" synchronized="false"
  9482. static="false" final="false" visibility="public"
  9483. deprecated="not deprecated">
  9484. <param name="registration" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  9485. <exception name="IOException" type="java.io.IOException"/>
  9486. <doc>
  9487. <![CDATA[Register Datanode.
  9488. @see org.apache.hadoop.hdfs.server.datanode.DataNode#dnRegistration
  9489. @see org.apache.hadoop.hdfs.server.namenode.FSNamesystem#registerDatanode(DatanodeRegistration)
  9490. @return updated {@link org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration}, which contains
  9491. new storageID if the datanode did not have one and
  9492. registration ID for further communication.]]>
  9493. </doc>
  9494. </method>
  9495. <method name="sendHeartbeat" return="org.apache.hadoop.hdfs.server.protocol.DatanodeCommand[]"
  9496. abstract="false" native="false" synchronized="false"
  9497. static="false" final="false" visibility="public"
  9498. deprecated="not deprecated">
  9499. <param name="registration" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  9500. <param name="capacity" type="long"/>
  9501. <param name="dfsUsed" type="long"/>
  9502. <param name="remaining" type="long"/>
  9503. <param name="xmitsInProgress" type="int"/>
  9504. <param name="xceiverCount" type="int"/>
  9505. <exception name="IOException" type="java.io.IOException"/>
  9506. <doc>
  9507. <![CDATA[sendHeartbeat() tells the NameNode that the DataNode is still
  9508. alive and well. Includes some status info, too.
  9509. It also gives the NameNode a chance to return
  9510. an array of "DatanodeCommand" objects.
  9511. A DatanodeCommand tells the DataNode to invalidate local block(s),
  9512. or to copy them to other DataNodes, etc.]]>
  9513. </doc>
  9514. </method>
  9515. <method name="blockReport" return="org.apache.hadoop.hdfs.server.protocol.DatanodeCommand"
  9516. abstract="false" native="false" synchronized="false"
  9517. static="false" final="false" visibility="public"
  9518. deprecated="not deprecated">
  9519. <param name="registration" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  9520. <param name="blocks" type="long[]"/>
  9521. <exception name="IOException" type="java.io.IOException"/>
  9522. <doc>
  9523. <![CDATA[blockReport() tells the NameNode about all the locally-stored blocks.
  9524. The NameNode returns an array of Blocks that have become obsolete
  9525. and should be deleted. This function is meant to upload *all*
  9526. the locally-stored blocks. It's invoked upon startup and then
  9527. infrequently afterwards.
  9528. @param registration
  9529. @param blocks - the block list as an array of longs.
  9530. Each block is represented as 2 longs.
  9531. This is done instead of Block[] to reduce memory used by block reports.
  9532. @return - the next command for DN to process.
  9533. @throws IOException]]>
  9534. </doc>
  9535. </method>
  9536. <method name="blockReceived"
  9537. abstract="false" native="false" synchronized="false"
  9538. static="false" final="false" visibility="public"
  9539. deprecated="not deprecated">
  9540. <param name="registration" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  9541. <param name="blocks" type="org.apache.hadoop.hdfs.protocol.Block[]"/>
  9542. <param name="delHints" type="java.lang.String[]"/>
  9543. <exception name="IOException" type="java.io.IOException"/>
  9544. <doc>
  9545. <![CDATA[blockReceived() allows the DataNode to tell the NameNode about
  9546. recently-received block data, with a hint for pereferred replica
  9547. to be deleted when there is any excessive blocks.
  9548. For example, whenever client code
  9549. writes a new Block here, or another DataNode copies a Block to
  9550. this DataNode, it will call blockReceived().]]>
  9551. </doc>
  9552. </method>
  9553. <method name="errorReport"
  9554. abstract="false" native="false" synchronized="false"
  9555. static="false" final="false" visibility="public"
  9556. deprecated="not deprecated">
  9557. <param name="registration" type="org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration"/>
  9558. <param name="errorCode" type="int"/>
  9559. <param name="msg" type="java.lang.String"/>
  9560. <exception name="IOException" type="java.io.IOException"/>
  9561. <doc>
  9562. <![CDATA[errorReport() tells the NameNode about something that has gone
  9563. awry. Useful for debugging.]]>
  9564. </doc>
  9565. </method>
  9566. <method name="versionRequest" return="org.apache.hadoop.hdfs.server.protocol.NamespaceInfo"
  9567. abstract="false" native="false" synchronized="false"
  9568. static="false" final="false" visibility="public"
  9569. deprecated="not deprecated">
  9570. <exception name="IOException" type="java.io.IOException"/>
  9571. </method>
  9572. <method name="processUpgradeCommand" return="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"
  9573. abstract="false" native="false" synchronized="false"
  9574. static="false" final="false" visibility="public"
  9575. deprecated="not deprecated">
  9576. <param name="comm" type="org.apache.hadoop.hdfs.server.protocol.UpgradeCommand"/>
  9577. <exception name="IOException" type="java.io.IOException"/>
  9578. <doc>
  9579. <![CDATA[This is a very general way to send a command to the name-node during
  9580. distributed upgrade process.
  9581. The generosity is because the variety of upgrade commands is unpredictable.
  9582. The reply from the name-node is also received in the form of an upgrade
  9583. command.
  9584. @return a reply in the form of an upgrade command]]>
  9585. </doc>
  9586. </method>
  9587. <method name="reportBadBlocks"
  9588. abstract="false" native="false" synchronized="false"
  9589. static="false" final="false" visibility="public"
  9590. deprecated="not deprecated">
  9591. <param name="blocks" type="org.apache.hadoop.hdfs.protocol.LocatedBlock[]"/>
  9592. <exception name="IOException" type="java.io.IOException"/>
  9593. <doc>
  9594. <![CDATA[same as {@link org.apache.hadoop.hdfs.protocol.ClientProtocol#reportBadBlocks(LocatedBlock[])}
  9595. }]]>
  9596. </doc>
  9597. </method>
  9598. <method name="nextGenerationStamp" return="long"
  9599. abstract="false" native="false" synchronized="false"
  9600. static="false" final="false" visibility="public"
  9601. deprecated="not deprecated">
  9602. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  9603. <exception name="IOException" type="java.io.IOException"/>
  9604. <doc>
  9605. <![CDATA[@return the next GenerationStamp to be associated with the specified
  9606. block.]]>
  9607. </doc>
  9608. </method>
  9609. <method name="commitBlockSynchronization"
  9610. abstract="false" native="false" synchronized="false"
  9611. static="false" final="false" visibility="public"
  9612. deprecated="not deprecated">
  9613. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  9614. <param name="newgenerationstamp" type="long"/>
  9615. <param name="newlength" type="long"/>
  9616. <param name="closeFile" type="boolean"/>
  9617. <param name="deleteblock" type="boolean"/>
  9618. <param name="newtargets" type="org.apache.hadoop.hdfs.protocol.DatanodeID[]"/>
  9619. <exception name="IOException" type="java.io.IOException"/>
  9620. <doc>
  9621. <![CDATA[Commit block synchronization in lease recovery]]>
  9622. </doc>
  9623. </method>
  9624. <field name="versionID" type="long"
  9625. transient="false" volatile="false"
  9626. static="true" final="true" visibility="public"
  9627. deprecated="not deprecated">
  9628. <doc>
  9629. <![CDATA[19: SendHeartbeat returns an array of DatanodeCommand objects
  9630. in stead of a DatanodeCommand object.]]>
  9631. </doc>
  9632. </field>
  9633. <field name="NOTIFY" type="int"
  9634. transient="false" volatile="false"
  9635. static="true" final="true" visibility="public"
  9636. deprecated="not deprecated">
  9637. </field>
  9638. <field name="DISK_ERROR" type="int"
  9639. transient="false" volatile="false"
  9640. static="true" final="true" visibility="public"
  9641. deprecated="not deprecated">
  9642. </field>
  9643. <field name="INVALID_BLOCK" type="int"
  9644. transient="false" volatile="false"
  9645. static="true" final="true" visibility="public"
  9646. deprecated="not deprecated">
  9647. </field>
  9648. <field name="DNA_UNKNOWN" type="int"
  9649. transient="false" volatile="false"
  9650. static="true" final="true" visibility="public"
  9651. deprecated="not deprecated">
  9652. <doc>
  9653. <![CDATA[Determines actions that data node should perform
  9654. when receiving a datanode command.]]>
  9655. </doc>
  9656. </field>
  9657. <field name="DNA_TRANSFER" type="int"
  9658. transient="false" volatile="false"
  9659. static="true" final="true" visibility="public"
  9660. deprecated="not deprecated">
  9661. </field>
  9662. <field name="DNA_INVALIDATE" type="int"
  9663. transient="false" volatile="false"
  9664. static="true" final="true" visibility="public"
  9665. deprecated="not deprecated">
  9666. </field>
  9667. <field name="DNA_SHUTDOWN" type="int"
  9668. transient="false" volatile="false"
  9669. static="true" final="true" visibility="public"
  9670. deprecated="not deprecated">
  9671. </field>
  9672. <field name="DNA_REGISTER" type="int"
  9673. transient="false" volatile="false"
  9674. static="true" final="true" visibility="public"
  9675. deprecated="not deprecated">
  9676. </field>
  9677. <field name="DNA_FINALIZE" type="int"
  9678. transient="false" volatile="false"
  9679. static="true" final="true" visibility="public"
  9680. deprecated="not deprecated">
  9681. </field>
  9682. <field name="DNA_RECOVERBLOCK" type="int"
  9683. transient="false" volatile="false"
  9684. static="true" final="true" visibility="public"
  9685. deprecated="not deprecated">
  9686. </field>
  9687. <doc>
  9688. <![CDATA[Protocol that a DFS datanode uses to communicate with the NameNode.
  9689. It's used to upload current load information and block reports.
  9690. The only way a NameNode can communicate with a DataNode is by
  9691. returning values from these functions.]]>
  9692. </doc>
  9693. </interface>
  9694. <!-- end interface org.apache.hadoop.hdfs.server.protocol.DatanodeProtocol -->
  9695. <!-- start class org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration -->
  9696. <class name="DatanodeRegistration" extends="org.apache.hadoop.hdfs.protocol.DatanodeID"
  9697. abstract="false"
  9698. static="false" final="false" visibility="public"
  9699. deprecated="not deprecated">
  9700. <implements name="org.apache.hadoop.io.Writable"/>
  9701. <constructor name="DatanodeRegistration"
  9702. static="false" final="false" visibility="public"
  9703. deprecated="not deprecated">
  9704. <doc>
  9705. <![CDATA[Default constructor.]]>
  9706. </doc>
  9707. </constructor>
  9708. <constructor name="DatanodeRegistration" type="java.lang.String"
  9709. static="false" final="false" visibility="public"
  9710. deprecated="not deprecated">
  9711. <doc>
  9712. <![CDATA[Create DatanodeRegistration]]>
  9713. </doc>
  9714. </constructor>
  9715. <method name="setInfoPort"
  9716. abstract="false" native="false" synchronized="false"
  9717. static="false" final="false" visibility="public"
  9718. deprecated="not deprecated">
  9719. <param name="infoPort" type="int"/>
  9720. </method>
  9721. <method name="setIpcPort"
  9722. abstract="false" native="false" synchronized="false"
  9723. static="false" final="false" visibility="public"
  9724. deprecated="not deprecated">
  9725. <param name="ipcPort" type="int"/>
  9726. </method>
  9727. <method name="setStorageInfo"
  9728. abstract="false" native="false" synchronized="false"
  9729. static="false" final="false" visibility="public"
  9730. deprecated="not deprecated">
  9731. <param name="storage" type="org.apache.hadoop.hdfs.server.datanode.DataStorage"/>
  9732. </method>
  9733. <method name="setName"
  9734. abstract="false" native="false" synchronized="false"
  9735. static="false" final="false" visibility="public"
  9736. deprecated="not deprecated">
  9737. <param name="name" type="java.lang.String"/>
  9738. </method>
  9739. <method name="getVersion" return="int"
  9740. abstract="false" native="false" synchronized="false"
  9741. static="false" final="false" visibility="public"
  9742. deprecated="not deprecated">
  9743. </method>
  9744. <method name="getRegistrationID" return="java.lang.String"
  9745. abstract="false" native="false" synchronized="false"
  9746. static="false" final="false" visibility="public"
  9747. deprecated="not deprecated">
  9748. </method>
  9749. <method name="toString" return="java.lang.String"
  9750. abstract="false" native="false" synchronized="false"
  9751. static="false" final="false" visibility="public"
  9752. deprecated="not deprecated">
  9753. </method>
  9754. <method name="write"
  9755. abstract="false" native="false" synchronized="false"
  9756. static="false" final="false" visibility="public"
  9757. deprecated="not deprecated">
  9758. <param name="out" type="java.io.DataOutput"/>
  9759. <exception name="IOException" type="java.io.IOException"/>
  9760. <doc>
  9761. <![CDATA[{@inheritDoc}]]>
  9762. </doc>
  9763. </method>
  9764. <method name="readFields"
  9765. abstract="false" native="false" synchronized="false"
  9766. static="false" final="false" visibility="public"
  9767. deprecated="not deprecated">
  9768. <param name="in" type="java.io.DataInput"/>
  9769. <exception name="IOException" type="java.io.IOException"/>
  9770. <doc>
  9771. <![CDATA[{@inheritDoc}]]>
  9772. </doc>
  9773. </method>
  9774. <field name="storageInfo" type="org.apache.hadoop.hdfs.server.common.StorageInfo"
  9775. transient="false" volatile="false"
  9776. static="false" final="false" visibility="public"
  9777. deprecated="not deprecated">
  9778. </field>
  9779. <doc>
  9780. <![CDATA[DatanodeRegistration class conatins all information the Namenode needs
  9781. to identify and verify a Datanode when it contacts the Namenode.
  9782. This information is sent by Datanode with each communication request.]]>
  9783. </doc>
  9784. </class>
  9785. <!-- end class org.apache.hadoop.hdfs.server.protocol.DatanodeRegistration -->
  9786. <!-- start class org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException -->
  9787. <class name="DisallowedDatanodeException" extends="java.io.IOException"
  9788. abstract="false"
  9789. static="false" final="false" visibility="public"
  9790. deprecated="not deprecated">
  9791. <constructor name="DisallowedDatanodeException" type="org.apache.hadoop.hdfs.protocol.DatanodeID"
  9792. static="false" final="false" visibility="public"
  9793. deprecated="not deprecated">
  9794. </constructor>
  9795. <doc>
  9796. <![CDATA[This exception is thrown when a datanode tries to register or communicate
  9797. with the namenode when it does not appear on the list of included nodes,
  9798. or has been specifically excluded.]]>
  9799. </doc>
  9800. </class>
  9801. <!-- end class org.apache.hadoop.hdfs.server.protocol.DisallowedDatanodeException -->
  9802. <!-- start interface org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol -->
  9803. <interface name="InterDatanodeProtocol" abstract="true"
  9804. static="false" final="false" visibility="public"
  9805. deprecated="not deprecated">
  9806. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  9807. <method name="getBlockMetaDataInfo" return="org.apache.hadoop.hdfs.server.protocol.BlockMetaDataInfo"
  9808. abstract="false" native="false" synchronized="false"
  9809. static="false" final="false" visibility="public"
  9810. deprecated="not deprecated">
  9811. <param name="block" type="org.apache.hadoop.hdfs.protocol.Block"/>
  9812. <exception name="IOException" type="java.io.IOException"/>
  9813. <doc>
  9814. <![CDATA[@return the BlockMetaDataInfo of a block;
  9815. null if the block is not found]]>
  9816. </doc>
  9817. </method>
  9818. <method name="updateBlock"
  9819. abstract="false" native="false" synchronized="false"
  9820. static="false" final="false" visibility="public"
  9821. deprecated="not deprecated">
  9822. <param name="oldblock" type="org.apache.hadoop.hdfs.protocol.Block"/>
  9823. <param name="newblock" type="org.apache.hadoop.hdfs.protocol.Block"/>
  9824. <param name="finalize" type="boolean"/>
  9825. <exception name="IOException" type="java.io.IOException"/>
  9826. <doc>
  9827. <![CDATA[Update the block to the new generation stamp and length.]]>
  9828. </doc>
  9829. </method>
  9830. <field name="LOG" type="org.apache.commons.logging.Log"
  9831. transient="false" volatile="false"
  9832. static="true" final="true" visibility="public"
  9833. deprecated="not deprecated">
  9834. </field>
  9835. <field name="versionID" type="long"
  9836. transient="false" volatile="false"
  9837. static="true" final="true" visibility="public"
  9838. deprecated="not deprecated">
  9839. <doc>
  9840. <![CDATA[3: added a finalize parameter to updateBlock]]>
  9841. </doc>
  9842. </field>
  9843. <doc>
  9844. <![CDATA[An inter-datanode protocol for updating generation stamp]]>
  9845. </doc>
  9846. </interface>
  9847. <!-- end interface org.apache.hadoop.hdfs.server.protocol.InterDatanodeProtocol -->
  9848. <!-- start interface org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol -->
  9849. <interface name="NamenodeProtocol" abstract="true"
  9850. static="false" final="false" visibility="public"
  9851. deprecated="not deprecated">
  9852. <implements name="org.apache.hadoop.ipc.VersionedProtocol"/>
  9853. <method name="getBlocks" return="org.apache.hadoop.hdfs.server.protocol.BlocksWithLocations"
  9854. abstract="false" native="false" synchronized="false"
  9855. static="false" final="false" visibility="public"
  9856. deprecated="not deprecated">
  9857. <param name="datanode" type="org.apache.hadoop.hdfs.protocol.DatanodeInfo"/>
  9858. <param name="size" type="long"/>
  9859. <exception name="IOException" type="java.io.IOException"/>
  9860. <doc>
  9861. <![CDATA[Get a list of blocks belonged to <code>datanode</code>
  9862. whose total size is equal to <code>size</code>
  9863. @param datanode a data node
  9864. @param size requested size
  9865. @return a list of blocks & their locations
  9866. @throws RemoteException if size is less than or equal to 0 or
  9867. datanode does not exist]]>
  9868. </doc>
  9869. </method>
  9870. <method name="getEditLogSize" return="long"
  9871. abstract="false" native="false" synchronized="false"
  9872. static="false" final="false" visibility="public"
  9873. deprecated="not deprecated">
  9874. <exception name="IOException" type="java.io.IOException"/>
  9875. <doc>
  9876. <![CDATA[Get the size of the current edit log (in bytes).
  9877. @return The number of bytes in the current edit log.
  9878. @throws IOException]]>
  9879. </doc>
  9880. </method>
  9881. <method name="rollEditLog" return="org.apache.hadoop.hdfs.server.namenode.CheckpointSignature"
  9882. abstract="false" native="false" synchronized="false"
  9883. static="false" final="false" visibility="public"
  9884. deprecated="not deprecated">
  9885. <exception name="IOException" type="java.io.IOException"/>
  9886. <doc>
  9887. <![CDATA[Closes the current edit log and opens a new one. The
  9888. call fails if the file system is in SafeMode.
  9889. @throws IOException
  9890. @return a unique token to identify this transaction.]]>
  9891. </doc>
  9892. </method>
  9893. <method name="rollFsImage"
  9894. abstract="false" native="false" synchronized="false"
  9895. static="false" final="false" visibility="public"
  9896. deprecated="not deprecated">
  9897. <exception name="IOException" type="java.io.IOException"/>
  9898. <doc>
  9899. <![CDATA[Rolls the fsImage log. It removes the old fsImage, copies the
  9900. new image to fsImage, removes the old edits and renames edits.new
  9901. to edits. The call fails if any of the four files are missing.
  9902. @throws IOException]]>
  9903. </doc>
  9904. </method>
  9905. <field name="versionID" type="long"
  9906. transient="false" volatile="false"
  9907. static="true" final="true" visibility="public"
  9908. deprecated="not deprecated">
  9909. <doc>
  9910. <![CDATA[2: Added getEditLogSize(), rollEditLog(), rollFSImage().]]>
  9911. </doc>
  9912. </field>
  9913. <doc>
  9914. <![CDATA[Protocol that a secondary NameNode uses to communicate with the NameNode.
  9915. It's used to get part of the name node state]]>
  9916. </doc>
  9917. </interface>
  9918. <!-- end interface org.apache.hadoop.hdfs.server.protocol.NamenodeProtocol -->
  9919. <!-- start class org.apache.hadoop.hdfs.server.protocol.NamespaceInfo -->
  9920. <class name="NamespaceInfo" extends="org.apache.hadoop.hdfs.server.common.StorageInfo"
  9921. abstract="false"
  9922. static="false" final="false" visibility="public"
  9923. deprecated="not deprecated">
  9924. <implements name="org.apache.hadoop.io.Writable"/>
  9925. <constructor name="NamespaceInfo"
  9926. static="false" final="false" visibility="public"
  9927. deprecated="not deprecated">
  9928. </constructor>
  9929. <constructor name="NamespaceInfo" type="int, long, int"
  9930. static="false" final="false" visibility="public"
  9931. deprecated="not deprecated">
  9932. </constructor>
  9933. <method name="getBuildVersion" return="java.lang.String"
  9934. abstract="false" native="false" synchronized="false"
  9935. static="false" final="false" visibility="public"
  9936. deprecated="not deprecated">
  9937. </method>
  9938. <method name="getDistributedUpgradeVersion" return="int"
  9939. abstract="false" native="false" synchronized="false"
  9940. static="false" final="false" visibility="public"
  9941. deprecated="not deprecated">
  9942. </method>
  9943. <method name="write"
  9944. abstract="false" native="false" synchronized="false"
  9945. static="false" final="false" visibility="public"
  9946. deprecated="not deprecated">
  9947. <param name="out" type="java.io.DataOutput"/>
  9948. <exception name="IOException" type="java.io.IOException"/>
  9949. </method>
  9950. <method name="readFields"
  9951. abstract="false" native="false" synchronized="false"
  9952. static="false" final="false" visibility="public"
  9953. deprecated="not deprecated">
  9954. <param name="in" type="java.io.DataInput"/>
  9955. <exception name="IOException" type="java.io.IOException"/>
  9956. </method>
  9957. <doc>
  9958. <![CDATA[NamespaceInfo is returned by the name-node in reply
  9959. to a data-node handshake.]]>
  9960. </doc>
  9961. </class>
  9962. <!-- end class org.apache.hadoop.hdfs.server.protocol.NamespaceInfo -->
  9963. <!-- start class org.apache.hadoop.hdfs.server.protocol.UpgradeCommand -->
  9964. <class name="UpgradeCommand" extends="org.apache.hadoop.hdfs.server.protocol.DatanodeCommand"
  9965. abstract="false"
  9966. static="false" final="false" visibility="public"
  9967. deprecated="not deprecated">
  9968. <constructor name="UpgradeCommand"
  9969. static="false" final="false" visibility="public"
  9970. deprecated="not deprecated">
  9971. </constructor>
  9972. <constructor name="UpgradeCommand" type="int, int, short"
  9973. static="false" final="false" visibility="public"
  9974. deprecated="not deprecated">
  9975. </constructor>
  9976. <method name="getVersion" return="int"
  9977. abstract="false" native="false" synchronized="false"
  9978. static="false" final="false" visibility="public"
  9979. deprecated="not deprecated">
  9980. </method>
  9981. <method name="getCurrentStatus" return="short"
  9982. abstract="false" native="false" synchronized="false"
  9983. static="false" final="false" visibility="public"
  9984. deprecated="not deprecated">
  9985. </method>
  9986. <method name="write"
  9987. abstract="false" native="false" synchronized="false"
  9988. static="false" final="false" visibility="public"
  9989. deprecated="not deprecated">
  9990. <param name="out" type="java.io.DataOutput"/>
  9991. <exception name="IOException" type="java.io.IOException"/>
  9992. </method>
  9993. <method name="readFields"
  9994. abstract="false" native="false" synchronized="false"
  9995. static="false" final="false" visibility="public"
  9996. deprecated="not deprecated">
  9997. <param name="in" type="java.io.DataInput"/>
  9998. <exception name="IOException" type="java.io.IOException"/>
  9999. </method>
  10000. <field name="UC_ACTION_REPORT_STATUS" type="int"
  10001. transient="false" volatile="false"
  10002. static="true" final="true" visibility="public"
  10003. deprecated="not deprecated">
  10004. </field>
  10005. <field name="UC_ACTION_START_UPGRADE" type="int"
  10006. transient="false" volatile="false"
  10007. static="true" final="true" visibility="public"
  10008. deprecated="not deprecated">
  10009. </field>
  10010. <doc>
  10011. <![CDATA[This as a generic distributed upgrade command.
  10012. During the upgrade cluster components send upgrade commands to each other
  10013. in order to obtain or share information with them.
  10014. It is supposed that each upgrade defines specific upgrade command by
  10015. deriving them from this class.
  10016. The upgrade command contains version of the upgrade, which is verified
  10017. on the receiving side and current status of the upgrade.]]>
  10018. </doc>
  10019. </class>
  10020. <!-- end class org.apache.hadoop.hdfs.server.protocol.UpgradeCommand -->
  10021. </package>
  10022. <package name="org.apache.hadoop.hdfs.tools">
  10023. <!-- start class org.apache.hadoop.hdfs.tools.DFSAdmin -->
  10024. <class name="DFSAdmin" extends="org.apache.hadoop.fs.FsShell"
  10025. abstract="false"
  10026. static="false" final="false" visibility="public"
  10027. deprecated="not deprecated">
  10028. <constructor name="DFSAdmin"
  10029. static="false" final="false" visibility="public"
  10030. deprecated="not deprecated">
  10031. <doc>
  10032. <![CDATA[Construct a DFSAdmin object.]]>
  10033. </doc>
  10034. </constructor>
  10035. <constructor name="DFSAdmin" type="org.apache.hadoop.conf.Configuration"
  10036. static="false" final="false" visibility="public"
  10037. deprecated="not deprecated">
  10038. <doc>
  10039. <![CDATA[Construct a DFSAdmin object.]]>
  10040. </doc>
  10041. </constructor>
  10042. <method name="report"
  10043. abstract="false" native="false" synchronized="false"
  10044. static="false" final="false" visibility="public"
  10045. deprecated="not deprecated">
  10046. <exception name="IOException" type="java.io.IOException"/>
  10047. <doc>
  10048. <![CDATA[Gives a report on how the FileSystem is doing.
  10049. @exception IOException if the filesystem does not exist.]]>
  10050. </doc>
  10051. </method>
  10052. <method name="setSafeMode"
  10053. abstract="false" native="false" synchronized="false"
  10054. static="false" final="false" visibility="public"
  10055. deprecated="not deprecated">
  10056. <param name="argv" type="java.lang.String[]"/>
  10057. <param name="idx" type="int"/>
  10058. <exception name="IOException" type="java.io.IOException"/>
  10059. <doc>
  10060. <![CDATA[Safe mode maintenance command.
  10061. Usage: java DFSAdmin -safemode [enter | leave | get]
  10062. @param argv List of of command line parameters.
  10063. @param idx The index of the command that is being processed.
  10064. @exception IOException if the filesystem does not exist.]]>
  10065. </doc>
  10066. </method>
  10067. <method name="saveNamespace" return="int"
  10068. abstract="false" native="false" synchronized="false"
  10069. static="false" final="false" visibility="public"
  10070. deprecated="not deprecated">
  10071. <exception name="IOException" type="java.io.IOException"/>
  10072. <doc>
  10073. <![CDATA[Command to ask the namenode to save the namespace.
  10074. Usage: java DFSAdmin -saveNamespace
  10075. @exception IOException
  10076. @see org.apache.hadoop.hdfs.protocol.ClientProtocol#saveNamespace()]]>
  10077. </doc>
  10078. </method>
  10079. <method name="refreshNodes" return="int"
  10080. abstract="false" native="false" synchronized="false"
  10081. static="false" final="false" visibility="public"
  10082. deprecated="not deprecated">
  10083. <exception name="IOException" type="java.io.IOException"/>
  10084. <doc>
  10085. <![CDATA[Command to ask the namenode to reread the hosts and excluded hosts
  10086. file.
  10087. Usage: java DFSAdmin -refreshNodes
  10088. @exception IOException]]>
  10089. </doc>
  10090. </method>
  10091. <method name="finalizeUpgrade" return="int"
  10092. abstract="false" native="false" synchronized="false"
  10093. static="false" final="false" visibility="public"
  10094. deprecated="not deprecated">
  10095. <exception name="IOException" type="java.io.IOException"/>
  10096. <doc>
  10097. <![CDATA[Command to ask the namenode to finalize previously performed upgrade.
  10098. Usage: java DFSAdmin -finalizeUpgrade
  10099. @exception IOException]]>
  10100. </doc>
  10101. </method>
  10102. <method name="upgradeProgress" return="int"
  10103. abstract="false" native="false" synchronized="false"
  10104. static="false" final="false" visibility="public"
  10105. deprecated="not deprecated">
  10106. <param name="argv" type="java.lang.String[]"/>
  10107. <param name="idx" type="int"/>
  10108. <exception name="IOException" type="java.io.IOException"/>
  10109. <doc>
  10110. <![CDATA[Command to request current distributed upgrade status,
  10111. a detailed status, or to force the upgrade to proceed.
  10112. Usage: java DFSAdmin -upgradeProgress [status | details | force]
  10113. @exception IOException]]>
  10114. </doc>
  10115. </method>
  10116. <method name="metaSave" return="int"
  10117. abstract="false" native="false" synchronized="false"
  10118. static="false" final="false" visibility="public"
  10119. deprecated="not deprecated">
  10120. <param name="argv" type="java.lang.String[]"/>
  10121. <param name="idx" type="int"/>
  10122. <exception name="IOException" type="java.io.IOException"/>
  10123. <doc>
  10124. <![CDATA[Dumps DFS data structures into specified file.
  10125. Usage: java DFSAdmin -metasave filename
  10126. @param argv List of of command line parameters.
  10127. @param idx The index of the command that is being processed.
  10128. @exception IOException if an error accoured wile accessing
  10129. the file or path.]]>
  10130. </doc>
  10131. </method>
  10132. <method name="refreshServiceAcl" return="int"
  10133. abstract="false" native="false" synchronized="false"
  10134. static="false" final="false" visibility="public"
  10135. deprecated="not deprecated">
  10136. <exception name="IOException" type="java.io.IOException"/>
  10137. <doc>
  10138. <![CDATA[Refresh the authorization policy on the {@link NameNode}.
  10139. @return exitcode 0 on success, non-zero on failure
  10140. @throws IOException]]>
  10141. </doc>
  10142. </method>
  10143. <method name="run" return="int"
  10144. abstract="false" native="false" synchronized="false"
  10145. static="false" final="false" visibility="public"
  10146. deprecated="not deprecated">
  10147. <param name="argv" type="java.lang.String[]"/>
  10148. <exception name="Exception" type="java.lang.Exception"/>
  10149. <doc>
  10150. <![CDATA[@param argv The parameters passed to this program.
  10151. @exception Exception if the filesystem does not exist.
  10152. @return 0 on success, non zero on error.]]>
  10153. </doc>
  10154. </method>
  10155. <method name="main"
  10156. abstract="false" native="false" synchronized="false"
  10157. static="true" final="false" visibility="public"
  10158. deprecated="not deprecated">
  10159. <param name="argv" type="java.lang.String[]"/>
  10160. <exception name="Exception" type="java.lang.Exception"/>
  10161. <doc>
  10162. <![CDATA[main() has some simple utility methods.
  10163. @param argv Command line parameters.
  10164. @exception Exception if the filesystem does not exist.]]>
  10165. </doc>
  10166. </method>
  10167. <doc>
  10168. <![CDATA[This class provides some DFS administrative access.]]>
  10169. </doc>
  10170. </class>
  10171. <!-- end class org.apache.hadoop.hdfs.tools.DFSAdmin -->
  10172. <!-- start class org.apache.hadoop.hdfs.tools.DFSck -->
  10173. <class name="DFSck" extends="org.apache.hadoop.conf.Configured"
  10174. abstract="false"
  10175. static="false" final="false" visibility="public"
  10176. deprecated="not deprecated">
  10177. <implements name="org.apache.hadoop.util.Tool"/>
  10178. <constructor name="DFSck" type="org.apache.hadoop.conf.Configuration"
  10179. static="false" final="false" visibility="public"
  10180. deprecated="not deprecated">
  10181. <exception name="Exception" type="java.lang.Exception"/>
  10182. <doc>
  10183. <![CDATA[Filesystem checker.
  10184. @param conf current Configuration
  10185. @throws Exception]]>
  10186. </doc>
  10187. </constructor>
  10188. <method name="run" return="int"
  10189. abstract="false" native="false" synchronized="false"
  10190. static="false" final="false" visibility="public"
  10191. deprecated="not deprecated">
  10192. <param name="args" type="java.lang.String[]"/>
  10193. <exception name="Exception" type="java.lang.Exception"/>
  10194. <doc>
  10195. <![CDATA[@param args]]>
  10196. </doc>
  10197. </method>
  10198. <method name="main"
  10199. abstract="false" native="false" synchronized="false"
  10200. static="true" final="false" visibility="public"
  10201. deprecated="not deprecated">
  10202. <param name="args" type="java.lang.String[]"/>
  10203. <exception name="Exception" type="java.lang.Exception"/>
  10204. </method>
  10205. <doc>
  10206. <![CDATA[This class provides rudimentary checking of DFS volumes for errors and
  10207. sub-optimal conditions.
  10208. <p>The tool scans all files and directories, starting from an indicated
  10209. root path. The following abnormal conditions are detected and handled:</p>
  10210. <ul>
  10211. <li>files with blocks that are completely missing from all datanodes.<br/>
  10212. In this case the tool can perform one of the following actions:
  10213. <ul>
  10214. <li>none ({@link org.apache.hadoop.hdfs.server.namenode.NamenodeFsck#FIXING_NONE})</li>
  10215. <li>move corrupted files to /lost+found directory on DFS
  10216. ({@link org.apache.hadoop.hdfs.server.namenode.NamenodeFsck#FIXING_MOVE}). Remaining data blocks are saved as a
  10217. block chains, representing longest consecutive series of valid blocks.</li>
  10218. <li>delete corrupted files ({@link org.apache.hadoop.hdfs.server.namenode.NamenodeFsck#FIXING_DELETE})</li>
  10219. </ul>
  10220. </li>
  10221. <li>detect files with under-replicated or over-replicated blocks</li>
  10222. </ul>
  10223. Additionally, the tool collects a detailed overall DFS statistics, and
  10224. optionally can print detailed statistics on block locations and replication
  10225. factors of each file.
  10226. The tool also provides and option to filter open files during the scan.]]>
  10227. </doc>
  10228. </class>
  10229. <!-- end class org.apache.hadoop.hdfs.tools.DFSck -->
  10230. </package>
  10231. </api>