Apache_Hadoop_YARN_Client_3.1.0.xml 142 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146
  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 Fri Mar 30 00:31:23 UTC 2018 -->
  5. <api
  6. xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
  7. xsi:noNamespaceSchemaLocation='api.xsd'
  8. name="Apache Hadoop YARN Client 3.1.0"
  9. jdversion="1.0.9">
  10. <!-- Command line arguments = -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/hadoop-annotations.jar:/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/jdiff.jar -verbose -classpath /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/classes:/build/source/hadoop-common-project/hadoop-common/target/hadoop-common-3.1.0.jar:/maven/org/apache/commons/commons-math3/3.1.1/commons-math3-3.1.1.jar:/maven/org/apache/httpcomponents/httpclient/4.5.2/httpclient-4.5.2.jar:/maven/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar:/maven/commons-codec/commons-codec/1.11/commons-codec-1.11.jar:/maven/commons-io/commons-io/2.5/commons-io-2.5.jar:/maven/commons-net/commons-net/3.6/commons-net-3.6.jar:/maven/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar:/maven/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar:/maven/org/eclipse/jetty/jetty-server/9.3.19.v20170502/jetty-server-9.3.19.v20170502.jar:/maven/org/eclipse/jetty/jetty-http/9.3.19.v20170502/jetty-http-9.3.19.v20170502.jar:/maven/org/eclipse/jetty/jetty-io/9.3.19.v20170502/jetty-io-9.3.19.v20170502.jar:/maven/org/eclipse/jetty/jetty-util/9.3.19.v20170502/jetty-util-9.3.19.v20170502.jar:/maven/org/eclipse/jetty/jetty-servlet/9.3.19.v20170502/jetty-servlet-9.3.19.v20170502.jar:/maven/org/eclipse/jetty/jetty-security/9.3.19.v20170502/jetty-security-9.3.19.v20170502.jar:/maven/org/eclipse/jetty/jetty-webapp/9.3.19.v20170502/jetty-webapp-9.3.19.v20170502.jar:/maven/org/eclipse/jetty/jetty-xml/9.3.19.v20170502/jetty-xml-9.3.19.v20170502.jar:/maven/javax/servlet/jsp/jsp-api/2.1/jsp-api-2.1.jar:/maven/com/sun/jersey/jersey-core/1.19/jersey-core-1.19.jar:/maven/javax/ws/rs/jsr311-api/1.1.1/jsr311-api-1.1.1.jar:/maven/com/sun/jersey/jersey-servlet/1.19/jersey-servlet-1.19.jar:/maven/com/sun/jersey/jersey-json/1.19/jersey-json-1.19.jar:/maven/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/maven/org/codehaus/jackson/jackson-core-asl/1.9.13/jackson-core-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-mapper-asl/1.9.13/jackson-mapper-asl-1.9.13.jar:/maven/org/codehaus/jackson/jackson-jaxrs/1.9.13/jackson-jaxrs-1.9.13.jar:/maven/org/codehaus/jackson/jackson-xc/1.9.13/jackson-xc-1.9.13.jar:/maven/com/sun/jersey/jersey-server/1.19/jersey-server-1.19.jar:/maven/commons-beanutils/commons-beanutils/1.9.3/commons-beanutils-1.9.3.jar:/maven/org/apache/commons/commons-configuration2/2.1.1/commons-configuration2-2.1.1.jar:/maven/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar:/maven/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar:/maven/org/slf4j/slf4j-log4j12/1.7.25/slf4j-log4j12-1.7.25.jar:/maven/org/apache/avro/avro/1.7.7/avro-1.7.7.jar:/maven/com/thoughtworks/paranamer/paranamer/2.3/paranamer-2.3.jar:/maven/org/xerial/snappy/snappy-java/1.0.5/snappy-java-1.0.5.jar:/maven/com/google/re2j/re2j/1.1/re2j-1.1.jar:/maven/com/google/protobuf/protobuf-java/2.5.0/protobuf-java-2.5.0.jar:/maven/com/google/code/gson/gson/2.2.4/gson-2.2.4.jar:/build/source/hadoop-common-project/hadoop-auth/target/hadoop-auth-3.1.0.jar:/maven/com/nimbusds/nimbus-jose-jwt/4.41.1/nimbus-jose-jwt-4.41.1.jar:/maven/com/github/stephenc/jcip/jcip-annotations/1.0-1/jcip-annotations-1.0-1.jar:/maven/net/minidev/json-smart/2.3/json-smart-2.3.jar:/maven/net/minidev/accessors-smart/1.2/accessors-smart-1.2.jar:/maven/org/ow2/asm/asm/5.0.4/asm-5.0.4.jar:/maven/org/apache/curator/curator-framework/2.12.0/curator-framework-2.12.0.jar:/maven/com/jcraft/jsch/0.1.54/jsch-0.1.54.jar:/maven/org/apache/curator/curator-client/2.12.0/curator-client-2.12.0.jar:/maven/org/apache/curator/curator-recipes/2.12.0/curator-recipes-2.12.0.jar:/maven/com/google/code/findbugs/jsr305/3.0.0/jsr305-3.0.0.jar:/maven/org/apache/htrace/htrace-core4/4.1.0-incubating/htrace-core4-4.1.0-incubating.jar:/maven/org/apache/zookeeper/zookeeper/3.4.9/zookeeper-3.4.9.jar:/maven/org/apache/commons/commons-compress/1.4.1/commons-compress-1.4.1.jar:/maven/org/tukaani/xz/1.0/xz-1.0.jar:/maven/org/apache/kerby/kerb-simplekdc/1.0.1/kerb-simplekdc-1.0.1.jar:/maven/org/apache/kerby/kerb-client/1.0.1/kerb-client-1.0.1.jar:/maven/org/apache/kerby/kerby-config/1.0.1/kerby-config-1.0.1.jar:/maven/org/apache/kerby/kerb-core/1.0.1/kerb-core-1.0.1.jar:/maven/org/apache/kerby/kerby-pkix/1.0.1/kerby-pkix-1.0.1.jar:/maven/org/apache/kerby/kerby-asn1/1.0.1/kerby-asn1-1.0.1.jar:/maven/org/apache/kerby/kerby-util/1.0.1/kerby-util-1.0.1.jar:/maven/org/apache/kerby/kerb-common/1.0.1/kerb-common-1.0.1.jar:/maven/org/apache/kerby/kerb-crypto/1.0.1/kerb-crypto-1.0.1.jar:/maven/org/apache/kerby/kerb-util/1.0.1/kerb-util-1.0.1.jar:/maven/org/apache/kerby/token-provider/1.0.1/token-provider-1.0.1.jar:/maven/org/apache/kerby/kerb-admin/1.0.1/kerb-admin-1.0.1.jar:/maven/org/apache/kerby/kerb-server/1.0.1/kerb-server-1.0.1.jar:/maven/org/apache/kerby/kerb-identity/1.0.1/kerb-identity-1.0.1.jar:/maven/org/apache/kerby/kerby-xdr/1.0.1/kerby-xdr-1.0.1.jar:/maven/com/fasterxml/jackson/core/jackson-databind/2.7.8/jackson-databind-2.7.8.jar:/maven/org/codehaus/woodstox/stax2-api/3.1.4/stax2-api-3.1.4.jar:/maven/com/fasterxml/woodstox/woodstox-core/5.0.3/woodstox-core-5.0.3.jar:/maven/com/google/guava/guava/11.0.2/guava-11.0.2.jar:/maven/commons-logging/commons-logging/1.1.3/commons-logging-1.1.3.jar:/maven/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/maven/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/maven/log4j/log4j/1.2.17/log4j-1.2.17.jar:/build/source/hadoop-common-project/hadoop-annotations/target/hadoop-annotations-3.1.0.jar:/usr/lib/jvm/java-8-openjdk-amd64/lib/tools.jar:/maven/io/netty/netty/3.10.5.Final/netty-3.10.5.Final.jar:/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/target/hadoop-yarn-api-3.1.0.jar:/maven/javax/xml/bind/jaxb-api/2.2.11/jaxb-api-2.2.11.jar:/maven/com/fasterxml/jackson/core/jackson-annotations/2.7.8/jackson-annotations-2.7.8.jar:/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/target/hadoop-yarn-common-3.1.0.jar:/maven/com/sun/jersey/jersey-client/1.19/jersey-client-1.19.jar:/maven/com/google/inject/extensions/guice-servlet/4.0/guice-servlet-4.0.jar:/maven/com/google/inject/guice/4.0/guice-4.0.jar:/maven/javax/inject/javax.inject/1/javax.inject-1.jar:/maven/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/maven/com/sun/jersey/contribs/jersey-guice/1.19/jersey-guice-1.19.jar:/maven/com/fasterxml/jackson/core/jackson-core/2.7.8/jackson-core-2.7.8.jar:/maven/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.7.8/jackson-module-jaxb-annotations-2.7.8.jar:/maven/com/fasterxml/jackson/jaxrs/jackson-jaxrs-json-provider/2.7.8/jackson-jaxrs-json-provider-2.7.8.jar:/maven/com/fasterxml/jackson/jaxrs/jackson-jaxrs-base/2.7.8/jackson-jaxrs-base-2.7.8.jar:/maven/org/codehaus/jettison/jettison/1.1/jettison-1.1.jar:/maven/xerces/xercesImpl/2.11.0/xercesImpl-2.11.0.jar:/maven/xml-apis/xml-apis/1.4.01/xml-apis-1.4.01.jar -sourcepath /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java -doclet org.apache.hadoop.classification.tools.IncludePublicAnnotationsJDiffDoclet -docletpath /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/hadoop-annotations.jar:/build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/jdiff.jar -apidir /build/source/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/target/site/jdiff/xml -apiname Apache Hadoop YARN Client 3.1.0 -->
  11. <package name="org.apache.hadoop.yarn.client">
  12. </package>
  13. <package name="org.apache.hadoop.yarn.client.api">
  14. <!-- start class org.apache.hadoop.yarn.client.api.AHSClient -->
  15. <class name="AHSClient" extends="org.apache.hadoop.service.AbstractService"
  16. abstract="true"
  17. static="false" final="false" visibility="public"
  18. deprecated="not deprecated">
  19. <constructor name="AHSClient" type="java.lang.String"
  20. static="false" final="false" visibility="public"
  21. deprecated="not deprecated">
  22. </constructor>
  23. <method name="createAHSClient" return="org.apache.hadoop.yarn.client.api.AHSClient"
  24. abstract="false" native="false" synchronized="false"
  25. static="true" final="false" visibility="public"
  26. deprecated="not deprecated">
  27. <doc>
  28. <![CDATA[Create a new instance of AHSClient.]]>
  29. </doc>
  30. </method>
  31. <method name="getApplicationReport" return="org.apache.hadoop.yarn.api.records.ApplicationReport"
  32. abstract="true" native="false" synchronized="false"
  33. static="false" final="false" visibility="public"
  34. deprecated="not deprecated">
  35. <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  36. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  37. <exception name="IOException" type="java.io.IOException"/>
  38. <doc>
  39. <![CDATA[Get a report of the given Application.
  40. <p>
  41. In secure mode, <code>YARN</code> verifies access to the application, queue
  42. etc. before accepting the request.
  43. <p>
  44. If the user does not have <code>VIEW_APP</code> access then the following
  45. fields in the report will be set to stubbed values:
  46. <ul>
  47. <li>host - set to "N/A"</li>
  48. <li>RPC port - set to -1</li>
  49. <li>client token - set to "N/A"</li>
  50. <li>diagnostics - set to "N/A"</li>
  51. <li>tracking URL - set to "N/A"</li>
  52. <li>original tracking URL - set to "N/A"</li>
  53. <li>resource usage report - all values are -1</li>
  54. </ul>
  55. @param appId
  56. {@link ApplicationId} of the application that needs a report
  57. @return application report
  58. @throws YarnException
  59. @throws IOException]]>
  60. </doc>
  61. </method>
  62. <method name="getApplications" return="java.util.List"
  63. abstract="true" native="false" synchronized="false"
  64. static="false" final="false" visibility="public"
  65. deprecated="not deprecated">
  66. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  67. <exception name="IOException" type="java.io.IOException"/>
  68. <doc>
  69. <![CDATA[<p>
  70. Get a report (ApplicationReport) of all Applications in the cluster.
  71. </p>
  72. <p>
  73. If the user does not have <code>VIEW_APP</code> access for an application
  74. then the corresponding report will be filtered as described in
  75. {@link #getApplicationReport(ApplicationId)}.
  76. </p>
  77. @return a list of reports for all applications
  78. @throws YarnException
  79. @throws IOException]]>
  80. </doc>
  81. </method>
  82. <method name="getApplicationAttemptReport" return="org.apache.hadoop.yarn.api.records.ApplicationAttemptReport"
  83. abstract="true" native="false" synchronized="false"
  84. static="false" final="false" visibility="public"
  85. deprecated="not deprecated">
  86. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  87. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  88. <exception name="IOException" type="java.io.IOException"/>
  89. <doc>
  90. <![CDATA[<p>
  91. Get a report of the given ApplicationAttempt.
  92. </p>
  93. <p>
  94. In secure mode, <code>YARN</code> verifies access to the application, queue
  95. etc. before accepting the request.
  96. </p>
  97. @param applicationAttemptId
  98. {@link ApplicationAttemptId} of the application attempt that needs
  99. a report
  100. @return application attempt report
  101. @throws YarnException
  102. @throws ApplicationAttemptNotFoundException if application attempt
  103. not found
  104. @throws IOException]]>
  105. </doc>
  106. </method>
  107. <method name="getApplicationAttempts" return="java.util.List"
  108. abstract="true" native="false" synchronized="false"
  109. static="false" final="false" visibility="public"
  110. deprecated="not deprecated">
  111. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  112. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  113. <exception name="IOException" type="java.io.IOException"/>
  114. <doc>
  115. <![CDATA[<p>
  116. Get a report of all (ApplicationAttempts) of Application in the cluster.
  117. </p>
  118. @param applicationId
  119. @return a list of reports for all application attempts for specified
  120. application
  121. @throws YarnException
  122. @throws IOException]]>
  123. </doc>
  124. </method>
  125. <method name="getContainerReport" return="org.apache.hadoop.yarn.api.records.ContainerReport"
  126. abstract="true" native="false" synchronized="false"
  127. static="false" final="false" visibility="public"
  128. deprecated="not deprecated">
  129. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  130. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  131. <exception name="IOException" type="java.io.IOException"/>
  132. <doc>
  133. <![CDATA[<p>
  134. Get a report of the given Container.
  135. </p>
  136. <p>
  137. In secure mode, <code>YARN</code> verifies access to the application, queue
  138. etc. before accepting the request.
  139. </p>
  140. @param containerId
  141. {@link ContainerId} of the container that needs a report
  142. @return container report
  143. @throws YarnException
  144. @throws ContainerNotFoundException if container not found
  145. @throws IOException]]>
  146. </doc>
  147. </method>
  148. <method name="getContainers" return="java.util.List"
  149. abstract="true" native="false" synchronized="false"
  150. static="false" final="false" visibility="public"
  151. deprecated="not deprecated">
  152. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  153. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  154. <exception name="IOException" type="java.io.IOException"/>
  155. <doc>
  156. <![CDATA[<p>
  157. Get a report of all (Containers) of ApplicationAttempt in the cluster.
  158. </p>
  159. @param applicationAttemptId
  160. @return a list of reports of all containers for specified application
  161. attempt
  162. @throws YarnException
  163. @throws IOException]]>
  164. </doc>
  165. </method>
  166. </class>
  167. <!-- end class org.apache.hadoop.yarn.client.api.AHSClient -->
  168. <!-- start class org.apache.hadoop.yarn.client.api.AMRMClient -->
  169. <class name="AMRMClient" extends="org.apache.hadoop.service.AbstractService"
  170. abstract="true"
  171. static="false" final="false" visibility="public"
  172. deprecated="not deprecated">
  173. <constructor name="AMRMClient" type="java.lang.String"
  174. static="false" final="false" visibility="protected"
  175. deprecated="not deprecated">
  176. </constructor>
  177. <method name="createAMRMClient" return="org.apache.hadoop.yarn.client.api.AMRMClient"
  178. abstract="false" native="false" synchronized="false"
  179. static="true" final="false" visibility="public"
  180. deprecated="not deprecated">
  181. <doc>
  182. <![CDATA[Create a new instance of AMRMClient.
  183. For usage:
  184. <pre>
  185. {@code
  186. AMRMClient.<T>createAMRMClientContainerRequest()
  187. }</pre>
  188. @return the newly create AMRMClient instance.]]>
  189. </doc>
  190. </method>
  191. <method name="addSchedulingRequests"
  192. abstract="false" native="false" synchronized="false"
  193. static="false" final="false" visibility="public"
  194. deprecated="not deprecated">
  195. <param name="schedulingRequests" type="java.util.Collection"/>
  196. <doc>
  197. <![CDATA[Add a Collection of SchedulingRequests. The AMRMClient will ensure that
  198. all requests in the same batch are sent in the same allocate call.
  199. @param schedulingRequests Collection of Scheduling Requests.]]>
  200. </doc>
  201. </method>
  202. <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
  203. abstract="true" native="false" synchronized="false"
  204. static="false" final="false" visibility="public"
  205. deprecated="not deprecated">
  206. <param name="appHostName" type="java.lang.String"/>
  207. <param name="appHostPort" type="int"/>
  208. <param name="appTrackingUrl" type="java.lang.String"/>
  209. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  210. <exception name="IOException" type="java.io.IOException"/>
  211. <doc>
  212. <![CDATA[Register the application master. This must be called before any
  213. other interaction
  214. @param appHostName Name of the host on which master is running
  215. @param appHostPort Port master is listening on
  216. @param appTrackingUrl URL at which the master info can be seen
  217. @return <code>RegisterApplicationMasterResponse</code>
  218. @throws YarnException
  219. @throws IOException]]>
  220. </doc>
  221. </method>
  222. <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
  223. abstract="false" native="false" synchronized="false"
  224. static="false" final="false" visibility="public"
  225. deprecated="not deprecated">
  226. <param name="appHostName" type="java.lang.String"/>
  227. <param name="appHostPort" type="int"/>
  228. <param name="appTrackingUrl" type="java.lang.String"/>
  229. <param name="placementConstraints" type="java.util.Map"/>
  230. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  231. <exception name="IOException" type="java.io.IOException"/>
  232. <doc>
  233. <![CDATA[Register the application master. This must be called before any
  234. other interaction
  235. @param appHostName Name of the host on which master is running
  236. @param appHostPort Port master is listening on
  237. @param appTrackingUrl URL at which the master info can be seen
  238. @param placementConstraints Placement Constraints mappings.
  239. @return <code>RegisterApplicationMasterResponse</code>
  240. @throws YarnException
  241. @throws IOException]]>
  242. </doc>
  243. </method>
  244. <method name="allocate" return="org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse"
  245. abstract="true" native="false" synchronized="false"
  246. static="false" final="false" visibility="public"
  247. deprecated="not deprecated">
  248. <param name="progressIndicator" type="float"/>
  249. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  250. <exception name="IOException" type="java.io.IOException"/>
  251. <doc>
  252. <![CDATA[Request additional containers and receive new container allocations.
  253. Requests made via <code>addContainerRequest</code> are sent to the
  254. <code>ResourceManager</code>. New containers assigned to the master are
  255. retrieved. Status of completed containers and node health updates are also
  256. retrieved. This also doubles up as a heartbeat to the ResourceManager and
  257. must be made periodically. The call may not always return any new
  258. allocations of containers. App should not make concurrent allocate
  259. requests. May cause request loss.
  260. <p>
  261. Note : If the user has not removed container requests that have already
  262. been satisfied, then the re-register may end up sending the entire
  263. container requests to the RM (including matched requests). Which would mean
  264. the RM could end up giving it a lot of new allocated containers.
  265. </p>
  266. @param progressIndicator Indicates progress made by the master
  267. @return the response of the allocate request
  268. @throws YarnException
  269. @throws IOException]]>
  270. </doc>
  271. </method>
  272. <method name="unregisterApplicationMaster"
  273. abstract="true" native="false" synchronized="false"
  274. static="false" final="false" visibility="public"
  275. deprecated="not deprecated">
  276. <param name="appStatus" type="org.apache.hadoop.yarn.api.records.FinalApplicationStatus"/>
  277. <param name="appMessage" type="java.lang.String"/>
  278. <param name="appTrackingUrl" type="java.lang.String"/>
  279. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  280. <exception name="IOException" type="java.io.IOException"/>
  281. <doc>
  282. <![CDATA[Unregister the application master. This must be called in the end.
  283. @param appStatus Success/Failure status of the master
  284. @param appMessage Diagnostics message on failure
  285. @param appTrackingUrl New URL to get master info
  286. @throws YarnException
  287. @throws IOException]]>
  288. </doc>
  289. </method>
  290. <method name="addContainerRequest"
  291. abstract="true" native="false" synchronized="false"
  292. static="false" final="false" visibility="public"
  293. deprecated="not deprecated">
  294. <param name="req" type="T"/>
  295. <doc>
  296. <![CDATA[Request containers for resources before calling <code>allocate</code>
  297. @param req Resource request]]>
  298. </doc>
  299. </method>
  300. <method name="removeContainerRequest"
  301. abstract="true" native="false" synchronized="false"
  302. static="false" final="false" visibility="public"
  303. deprecated="not deprecated">
  304. <param name="req" type="T"/>
  305. <doc>
  306. <![CDATA[Remove previous container request. The previous container request may have
  307. already been sent to the ResourceManager. So even after the remove request
  308. the app must be prepared to receive an allocation for the previous request
  309. even after the remove request
  310. @param req Resource request]]>
  311. </doc>
  312. </method>
  313. <method name="requestContainerResourceChange"
  314. abstract="false" native="false" synchronized="false"
  315. static="false" final="false" visibility="public"
  316. deprecated="use
  317. {@link #requestContainerUpdate(Container, UpdateContainerRequest)}">
  318. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  319. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  320. <doc>
  321. <![CDATA[Request container resource change before calling <code>allocate</code>.
  322. Any previous pending resource change request of the same container will be
  323. removed.
  324. Application that calls this method is expected to maintain the
  325. <code>Container</code>s that are returned from previous successful
  326. allocations or resource changes. By passing in the existing container and a
  327. target resource capability to this method, the application requests the
  328. ResourceManager to change the existing resource allocation to the target
  329. resource allocation.
  330. @deprecated use
  331. {@link #requestContainerUpdate(Container, UpdateContainerRequest)}
  332. @param container The container returned from the last successful resource
  333. allocation or resource change
  334. @param capability The target resource capability of the container]]>
  335. </doc>
  336. </method>
  337. <method name="requestContainerUpdate"
  338. abstract="true" native="false" synchronized="false"
  339. static="false" final="false" visibility="public"
  340. deprecated="not deprecated">
  341. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  342. <param name="updateContainerRequest" type="org.apache.hadoop.yarn.api.records.UpdateContainerRequest"/>
  343. <doc>
  344. <![CDATA[Request a container update before calling <code>allocate</code>.
  345. Any previous pending update request of the same container will be
  346. removed.
  347. @param container The container returned from the last successful resource
  348. allocation or update
  349. @param updateContainerRequest The <code>UpdateContainerRequest</code>.]]>
  350. </doc>
  351. </method>
  352. <method name="releaseAssignedContainer"
  353. abstract="true" native="false" synchronized="false"
  354. static="false" final="false" visibility="public"
  355. deprecated="not deprecated">
  356. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  357. <doc>
  358. <![CDATA[Release containers assigned by the Resource Manager. If the app cannot use
  359. the container or wants to give up the container then it can release them.
  360. The app needs to make new requests for the released resource capability if
  361. it still needs it. eg. it released non-local resources
  362. @param containerId]]>
  363. </doc>
  364. </method>
  365. <method name="getAvailableResources" return="org.apache.hadoop.yarn.api.records.Resource"
  366. abstract="true" native="false" synchronized="false"
  367. static="false" final="false" visibility="public"
  368. deprecated="not deprecated">
  369. <doc>
  370. <![CDATA[Get the currently available resources in the cluster.
  371. A valid value is available after a call to allocate has been made
  372. @return Currently available resources]]>
  373. </doc>
  374. </method>
  375. <method name="getClusterNodeCount" return="int"
  376. abstract="true" native="false" synchronized="false"
  377. static="false" final="false" visibility="public"
  378. deprecated="not deprecated">
  379. <doc>
  380. <![CDATA[Get the current number of nodes in the cluster.
  381. A valid values is available after a call to allocate has been made
  382. @return Current number of nodes in the cluster]]>
  383. </doc>
  384. </method>
  385. <method name="getMatchingRequests" return="java.util.List"
  386. abstract="true" native="false" synchronized="false"
  387. static="false" final="false" visibility="public"
  388. deprecated="not deprecated">
  389. <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
  390. <param name="resourceName" type="java.lang.String"/>
  391. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  392. <doc>
  393. <![CDATA[Get outstanding <code>ContainerRequest</code>s matching the given
  394. parameters. These ContainerRequests should have been added via
  395. <code>addContainerRequest</code> earlier in the lifecycle. For performance,
  396. the AMRMClient may return its internal collection directly without creating
  397. a copy. Users should not perform mutable operations on the return value.
  398. Each collection in the list contains requests with identical
  399. <code>Resource</code> size that fit in the given capability. In a
  400. collection, requests will be returned in the same order as they were added.
  401. NOTE: This API only matches Container requests that were created by the
  402. client WITHOUT the allocationRequestId being set.
  403. @return Collection of request matching the parameters]]>
  404. </doc>
  405. </method>
  406. <method name="getMatchingRequests" return="java.util.List"
  407. abstract="false" native="false" synchronized="false"
  408. static="false" final="false" visibility="public"
  409. deprecated="not deprecated">
  410. <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
  411. <param name="resourceName" type="java.lang.String"/>
  412. <param name="executionType" type="org.apache.hadoop.yarn.api.records.ExecutionType"/>
  413. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  414. <doc>
  415. <![CDATA[Get outstanding <code>ContainerRequest</code>s matching the given
  416. parameters. These ContainerRequests should have been added via
  417. <code>addContainerRequest</code> earlier in the lifecycle. For performance,
  418. the AMRMClient may return its internal collection directly without creating
  419. a copy. Users should not perform mutable operations on the return value.
  420. Each collection in the list contains requests with identical
  421. <code>Resource</code> size that fit in the given capability. In a
  422. collection, requests will be returned in the same order as they were added.
  423. specify an <code>ExecutionType</code>.
  424. NOTE: This API only matches Container requests that were created by the
  425. client WITHOUT the allocationRequestId being set.
  426. @param priority Priority
  427. @param resourceName Location
  428. @param executionType ExecutionType
  429. @param capability Capability
  430. @return Collection of request matching the parameters]]>
  431. </doc>
  432. </method>
  433. <method name="getMatchingRequests" return="java.util.List"
  434. abstract="false" native="false" synchronized="false"
  435. static="false" final="false" visibility="public"
  436. deprecated="not deprecated">
  437. <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
  438. <param name="resourceName" type="java.lang.String"/>
  439. <param name="executionType" type="org.apache.hadoop.yarn.api.records.ExecutionType"/>
  440. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  441. <param name="profile" type="java.lang.String"/>
  442. </method>
  443. <method name="getMatchingRequests" return="java.util.Collection"
  444. abstract="true" native="false" synchronized="false"
  445. static="false" final="false" visibility="public"
  446. deprecated="not deprecated">
  447. <param name="allocationRequestId" type="long"/>
  448. <doc>
  449. <![CDATA[Get outstanding <code>ContainerRequest</code>s matching the given
  450. allocationRequestId. These ContainerRequests should have been added via
  451. <code>addContainerRequest</code> earlier in the lifecycle. For performance,
  452. the AMRMClient may return its internal collection directly without creating
  453. a copy. Users should not perform mutable operations on the return value.
  454. NOTE: This API only matches Container requests that were created by the
  455. client WITH the allocationRequestId being set to a non-default value.
  456. @param allocationRequestId Allocation Request Id
  457. @return Collection of request matching the parameters]]>
  458. </doc>
  459. </method>
  460. <method name="updateBlacklist"
  461. abstract="true" native="false" synchronized="false"
  462. static="false" final="false" visibility="public"
  463. deprecated="not deprecated">
  464. <param name="blacklistAdditions" type="java.util.List"/>
  465. <param name="blacklistRemovals" type="java.util.List"/>
  466. <doc>
  467. <![CDATA[Update application's blacklist with addition or removal resources.
  468. @param blacklistAdditions list of resources which should be added to the
  469. application blacklist
  470. @param blacklistRemovals list of resources which should be removed from the
  471. application blacklist]]>
  472. </doc>
  473. </method>
  474. <method name="setNMTokenCache"
  475. abstract="false" native="false" synchronized="false"
  476. static="false" final="false" visibility="public"
  477. deprecated="not deprecated">
  478. <param name="nmTokenCache" type="org.apache.hadoop.yarn.client.api.NMTokenCache"/>
  479. <doc>
  480. <![CDATA[Set the NM token cache for the <code>AMRMClient</code>. This cache must
  481. be shared with the {@link NMClient} used to manage containers for the
  482. <code>AMRMClient</code>
  483. <p>
  484. If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
  485. singleton instance will be used.
  486. @param nmTokenCache the NM token cache to use.]]>
  487. </doc>
  488. </method>
  489. <method name="getNMTokenCache" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
  490. abstract="false" native="false" synchronized="false"
  491. static="false" final="false" visibility="public"
  492. deprecated="not deprecated">
  493. <doc>
  494. <![CDATA[Get the NM token cache of the <code>AMRMClient</code>. This cache must be
  495. shared with the {@link NMClient} used to manage containers for the
  496. <code>AMRMClient</code>.
  497. <p>
  498. If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
  499. singleton instance will be used.
  500. @return the NM token cache.]]>
  501. </doc>
  502. </method>
  503. <method name="registerTimelineV2Client"
  504. abstract="false" native="false" synchronized="false"
  505. static="false" final="false" visibility="public"
  506. deprecated="not deprecated">
  507. <param name="client" type="org.apache.hadoop.yarn.client.api.TimelineV2Client"/>
  508. <doc>
  509. <![CDATA[Register TimelineV2Client to AMRMClient. Writer's address for the timeline
  510. V2 client will be updated dynamically if registered.
  511. @param client the timeline v2 client to register]]>
  512. </doc>
  513. </method>
  514. <method name="getRegisteredTimelineV2Client" return="org.apache.hadoop.yarn.client.api.TimelineV2Client"
  515. abstract="false" native="false" synchronized="false"
  516. static="false" final="false" visibility="public"
  517. deprecated="not deprecated">
  518. <doc>
  519. <![CDATA[Get registered timeline v2 client.
  520. @return the registered timeline v2 client]]>
  521. </doc>
  522. </method>
  523. <method name="waitFor"
  524. abstract="false" native="false" synchronized="false"
  525. static="false" final="false" visibility="public"
  526. deprecated="not deprecated">
  527. <param name="check" type="java.util.function.Supplier"/>
  528. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  529. <doc>
  530. <![CDATA[Wait for <code>check</code> to return true for each 1000 ms.
  531. See also {@link #waitFor(java.util.function.Supplier, int)}
  532. and {@link #waitFor(java.util.function.Supplier, int, int)}
  533. @param check the condition for which it should wait]]>
  534. </doc>
  535. </method>
  536. <method name="waitFor"
  537. abstract="false" native="false" synchronized="false"
  538. static="false" final="false" visibility="public"
  539. deprecated="not deprecated">
  540. <param name="check" type="java.util.function.Supplier"/>
  541. <param name="checkEveryMillis" type="int"/>
  542. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  543. <doc>
  544. <![CDATA[Wait for <code>check</code> to return true for each
  545. <code>checkEveryMillis</code> ms.
  546. See also {@link #waitFor(java.util.function.Supplier, int, int)}
  547. @param check user defined checker
  548. @param checkEveryMillis interval to call <code>check</code>]]>
  549. </doc>
  550. </method>
  551. <method name="waitFor"
  552. abstract="false" native="false" synchronized="false"
  553. static="false" final="false" visibility="public"
  554. deprecated="not deprecated">
  555. <param name="check" type="java.util.function.Supplier"/>
  556. <param name="checkEveryMillis" type="int"/>
  557. <param name="logInterval" type="int"/>
  558. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  559. <doc>
  560. <![CDATA[Wait for <code>check</code> to return true for each
  561. <code>checkEveryMillis</code> ms. In the main loop, this method will log
  562. the message "waiting in main loop" for each <code>logInterval</code> times
  563. iteration to confirm the thread is alive.
  564. @param check user defined checker
  565. @param checkEveryMillis interval to call <code>check</code>
  566. @param logInterval interval to log for each]]>
  567. </doc>
  568. </method>
  569. </class>
  570. <!-- end class org.apache.hadoop.yarn.client.api.AMRMClient -->
  571. <!-- start class org.apache.hadoop.yarn.client.api.AppAdminClient -->
  572. <class name="AppAdminClient" extends="org.apache.hadoop.service.CompositeService"
  573. abstract="true"
  574. static="false" final="false" visibility="public"
  575. deprecated="not deprecated">
  576. <constructor name="AppAdminClient"
  577. static="false" final="false" visibility="protected"
  578. deprecated="not deprecated">
  579. </constructor>
  580. <method name="createAppAdminClient" return="org.apache.hadoop.yarn.client.api.AppAdminClient"
  581. abstract="false" native="false" synchronized="false"
  582. static="true" final="false" visibility="public"
  583. deprecated="not deprecated">
  584. <param name="appType" type="java.lang.String"/>
  585. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  586. <doc>
  587. <![CDATA[<p>
  588. Create a new instance of AppAdminClient.
  589. </p>
  590. @param appType application type
  591. @param conf configuration
  592. @return app admin client]]>
  593. </doc>
  594. </method>
  595. <method name="actionLaunch" return="int"
  596. abstract="true" native="false" synchronized="false"
  597. static="false" final="false" visibility="public"
  598. deprecated="not deprecated">
  599. <param name="fileName" type="java.lang.String"/>
  600. <param name="appName" type="java.lang.String"/>
  601. <param name="lifetime" type="java.lang.Long"/>
  602. <param name="queue" type="java.lang.String"/>
  603. <exception name="IOException" type="java.io.IOException"/>
  604. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  605. <doc>
  606. <![CDATA[<p>
  607. Launch a new YARN application.
  608. </p>
  609. @param fileName specification of application
  610. @param appName name of the application
  611. @param lifetime lifetime of the application
  612. @param queue queue of the application
  613. @return exit code
  614. @throws IOException IOException
  615. @throws YarnException exception in client or server]]>
  616. </doc>
  617. </method>
  618. <method name="actionStop" return="int"
  619. abstract="true" native="false" synchronized="false"
  620. static="false" final="false" visibility="public"
  621. deprecated="not deprecated">
  622. <param name="appName" type="java.lang.String"/>
  623. <exception name="IOException" type="java.io.IOException"/>
  624. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  625. <doc>
  626. <![CDATA[<p>
  627. Stop a YARN application (attempt to stop gracefully before killing the
  628. application). In the case of a long-running service, the service may be
  629. restarted later.
  630. </p>
  631. @param appName the name of the application
  632. @return exit code
  633. @throws IOException IOException
  634. @throws YarnException exception in client or server]]>
  635. </doc>
  636. </method>
  637. <method name="actionStart" return="int"
  638. abstract="true" native="false" synchronized="false"
  639. static="false" final="false" visibility="public"
  640. deprecated="not deprecated">
  641. <param name="appName" type="java.lang.String"/>
  642. <exception name="IOException" type="java.io.IOException"/>
  643. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  644. <doc>
  645. <![CDATA[<p>
  646. Start a YARN application from a previously saved specification. In the
  647. case of a long-running service, the service must have been previously
  648. launched/started and then stopped, or previously saved but not started.
  649. </p>
  650. @param appName the name of the application
  651. @return exit code
  652. @throws IOException IOException
  653. @throws YarnException exception in client or server]]>
  654. </doc>
  655. </method>
  656. <method name="actionSave" return="int"
  657. abstract="true" native="false" synchronized="false"
  658. static="false" final="false" visibility="public"
  659. deprecated="not deprecated">
  660. <param name="fileName" type="java.lang.String"/>
  661. <param name="appName" type="java.lang.String"/>
  662. <param name="lifetime" type="java.lang.Long"/>
  663. <param name="queue" type="java.lang.String"/>
  664. <exception name="IOException" type="java.io.IOException"/>
  665. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  666. <doc>
  667. <![CDATA[<p>
  668. Save the specification for a YARN application / long-running service.
  669. The application may be started later.
  670. </p>
  671. @param fileName specification of application to save
  672. @param appName name of the application
  673. @param lifetime lifetime of the application
  674. @param queue queue of the application
  675. @return exit code
  676. @throws IOException IOException
  677. @throws YarnException exception in client or server]]>
  678. </doc>
  679. </method>
  680. <method name="actionDestroy" return="int"
  681. abstract="true" native="false" synchronized="false"
  682. static="false" final="false" visibility="public"
  683. deprecated="not deprecated">
  684. <param name="appName" type="java.lang.String"/>
  685. <exception name="IOException" type="java.io.IOException"/>
  686. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  687. <doc>
  688. <![CDATA[<p>
  689. Remove the specification and all application data for a YARN application.
  690. The application cannot be running.
  691. </p>
  692. @param appName the name of the application
  693. @return exit code
  694. @throws IOException IOException
  695. @throws YarnException exception in client or server]]>
  696. </doc>
  697. </method>
  698. <method name="actionFlex" return="int"
  699. abstract="true" native="false" synchronized="false"
  700. static="false" final="false" visibility="public"
  701. deprecated="not deprecated">
  702. <param name="appName" type="java.lang.String"/>
  703. <param name="componentCounts" type="java.util.Map"/>
  704. <exception name="IOException" type="java.io.IOException"/>
  705. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  706. <doc>
  707. <![CDATA[<p>
  708. Change the number of running containers for a component of a YARN
  709. application / long-running service.
  710. </p>
  711. @param appName the name of the application
  712. @param componentCounts map of component name to new component count or
  713. amount to change existing component count (e.g.
  714. 5, +5, -5)
  715. @return exit code
  716. @throws IOException IOException
  717. @throws YarnException exception in client or server]]>
  718. </doc>
  719. </method>
  720. <method name="enableFastLaunch" return="int"
  721. abstract="true" native="false" synchronized="false"
  722. static="false" final="false" visibility="public"
  723. deprecated="not deprecated">
  724. <param name="destinationFolder" type="java.lang.String"/>
  725. <exception name="IOException" type="java.io.IOException"/>
  726. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  727. <doc>
  728. <![CDATA[<p>
  729. Upload AM dependencies to HDFS. This makes future application launches
  730. faster since the dependencies do not have to be uploaded on each launch.
  731. </p>
  732. @param destinationFolder
  733. an optional HDFS folder where dependency tarball will be uploaded
  734. @return exit code
  735. @throws IOException
  736. IOException
  737. @throws YarnException
  738. exception in client or server]]>
  739. </doc>
  740. </method>
  741. <method name="getStatusString" return="java.lang.String"
  742. abstract="true" native="false" synchronized="false"
  743. static="false" final="false" visibility="public"
  744. deprecated="not deprecated">
  745. <param name="appIdOrName" type="java.lang.String"/>
  746. <exception name="IOException" type="java.io.IOException"/>
  747. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  748. <doc>
  749. <![CDATA[<p>
  750. Get detailed app specific status string for a YARN application.
  751. </p>
  752. @param appIdOrName appId or appName
  753. @return status string
  754. @throws IOException IOException
  755. @throws YarnException exception in client or server]]>
  756. </doc>
  757. </method>
  758. <field name="YARN_APP_ADMIN_CLIENT_PREFIX" type="java.lang.String"
  759. transient="false" volatile="false"
  760. static="true" final="true" visibility="public"
  761. deprecated="not deprecated">
  762. </field>
  763. <field name="DEFAULT_TYPE" type="java.lang.String"
  764. transient="false" volatile="false"
  765. static="true" final="true" visibility="public"
  766. deprecated="not deprecated">
  767. </field>
  768. <field name="DEFAULT_CLASS_NAME" type="java.lang.String"
  769. transient="false" volatile="false"
  770. static="true" final="true" visibility="public"
  771. deprecated="not deprecated">
  772. </field>
  773. <field name="UNIT_TEST_TYPE" type="java.lang.String"
  774. transient="false" volatile="false"
  775. static="true" final="true" visibility="public"
  776. deprecated="not deprecated">
  777. </field>
  778. <field name="UNIT_TEST_CLASS_NAME" type="java.lang.String"
  779. transient="false" volatile="false"
  780. static="true" final="true" visibility="public"
  781. deprecated="not deprecated">
  782. </field>
  783. <doc>
  784. <![CDATA[Client for managing applications.]]>
  785. </doc>
  786. </class>
  787. <!-- end class org.apache.hadoop.yarn.client.api.AppAdminClient -->
  788. <!-- start class org.apache.hadoop.yarn.client.api.NMClient -->
  789. <class name="NMClient" extends="org.apache.hadoop.service.AbstractService"
  790. abstract="true"
  791. static="false" final="false" visibility="public"
  792. deprecated="not deprecated">
  793. <constructor name="NMClient" type="java.lang.String"
  794. static="false" final="false" visibility="protected"
  795. deprecated="not deprecated">
  796. </constructor>
  797. <method name="createNMClient" return="org.apache.hadoop.yarn.client.api.NMClient"
  798. abstract="false" native="false" synchronized="false"
  799. static="true" final="false" visibility="public"
  800. deprecated="not deprecated">
  801. <doc>
  802. <![CDATA[Create a new instance of NMClient.]]>
  803. </doc>
  804. </method>
  805. <method name="createNMClient" return="org.apache.hadoop.yarn.client.api.NMClient"
  806. abstract="false" native="false" synchronized="false"
  807. static="true" final="false" visibility="public"
  808. deprecated="not deprecated">
  809. <param name="name" type="java.lang.String"/>
  810. <doc>
  811. <![CDATA[Create a new instance of NMClient.]]>
  812. </doc>
  813. </method>
  814. <method name="startContainer" return="java.util.Map"
  815. abstract="true" native="false" synchronized="false"
  816. static="false" final="false" visibility="public"
  817. deprecated="not deprecated">
  818. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  819. <param name="containerLaunchContext" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
  820. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  821. <exception name="IOException" type="java.io.IOException"/>
  822. <doc>
  823. <![CDATA[<p>Start an allocated container.</p>
  824. <p>The <code>ApplicationMaster</code> or other applications that use the
  825. client must provide the details of the allocated container, including the
  826. Id, the assigned node's Id and the token via {@link Container}. In
  827. addition, the AM needs to provide the {@link ContainerLaunchContext} as
  828. well.</p>
  829. @param container the allocated container
  830. @param containerLaunchContext the context information needed by the
  831. <code>NodeManager</code> to launch the
  832. container
  833. @return a map between the auxiliary service names and their outputs
  834. @throws YarnException YarnException.
  835. @throws IOException IOException.]]>
  836. </doc>
  837. </method>
  838. <method name="increaseContainerResource"
  839. abstract="true" native="false" synchronized="false"
  840. static="false" final="false" visibility="public"
  841. deprecated="not deprecated">
  842. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  843. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  844. <exception name="IOException" type="java.io.IOException"/>
  845. <doc>
  846. <![CDATA[<p>Increase the resource of a container.</p>
  847. <p>The <code>ApplicationMaster</code> or other applications that use the
  848. client must provide the details of the container, including the Id and
  849. the target resource encapsulated in the updated container token via
  850. {@link Container}.
  851. </p>
  852. @param container the container with updated token.
  853. @throws YarnException YarnException.
  854. @throws IOException IOException.]]>
  855. </doc>
  856. </method>
  857. <method name="updateContainerResource"
  858. abstract="true" native="false" synchronized="false"
  859. static="false" final="false" visibility="public"
  860. deprecated="not deprecated">
  861. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  862. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  863. <exception name="IOException" type="java.io.IOException"/>
  864. <doc>
  865. <![CDATA[<p>Update the resources of a container.</p>
  866. <p>The <code>ApplicationMaster</code> or other applications that use the
  867. client must provide the details of the container, including the Id and
  868. the target resource encapsulated in the updated container token via
  869. {@link Container}.
  870. </p>
  871. @param container the container with updated token.
  872. @throws YarnException YarnException.
  873. @throws IOException IOException.]]>
  874. </doc>
  875. </method>
  876. <method name="stopContainer"
  877. abstract="true" native="false" synchronized="false"
  878. static="false" final="false" visibility="public"
  879. deprecated="not deprecated">
  880. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  881. <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
  882. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  883. <exception name="IOException" type="java.io.IOException"/>
  884. <doc>
  885. <![CDATA[<p>Stop an started container.</p>
  886. @param containerId the Id of the started container
  887. @param nodeId the Id of the <code>NodeManager</code>
  888. @throws YarnException YarnException.
  889. @throws IOException IOException.]]>
  890. </doc>
  891. </method>
  892. <method name="getContainerStatus" return="org.apache.hadoop.yarn.api.records.ContainerStatus"
  893. abstract="true" native="false" synchronized="false"
  894. static="false" final="false" visibility="public"
  895. deprecated="not deprecated">
  896. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  897. <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
  898. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  899. <exception name="IOException" type="java.io.IOException"/>
  900. <doc>
  901. <![CDATA[<p>Query the status of a container.</p>
  902. @param containerId the Id of the started container
  903. @param nodeId the Id of the <code>NodeManager</code>
  904. @return the status of a container.
  905. @throws YarnException YarnException.
  906. @throws IOException IOException.]]>
  907. </doc>
  908. </method>
  909. <method name="reInitializeContainer"
  910. abstract="true" native="false" synchronized="false"
  911. static="false" final="false" visibility="public"
  912. deprecated="not deprecated">
  913. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  914. <param name="containerLaunchContex" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
  915. <param name="autoCommit" type="boolean"/>
  916. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  917. <exception name="IOException" type="java.io.IOException"/>
  918. <doc>
  919. <![CDATA[<p>Re-Initialize the Container.</p>
  920. @param containerId the Id of the container to Re-Initialize.
  921. @param containerLaunchContex the updated ContainerLaunchContext.
  922. @param autoCommit commit re-initialization automatically ?
  923. @throws YarnException YarnException.
  924. @throws IOException IOException.]]>
  925. </doc>
  926. </method>
  927. <method name="restartContainer"
  928. abstract="true" native="false" synchronized="false"
  929. static="false" final="false" visibility="public"
  930. deprecated="not deprecated">
  931. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  932. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  933. <exception name="IOException" type="java.io.IOException"/>
  934. <doc>
  935. <![CDATA[<p>Restart the specified container.</p>
  936. @param containerId the Id of the container to restart.
  937. @throws YarnException YarnException.
  938. @throws IOException IOException.]]>
  939. </doc>
  940. </method>
  941. <method name="rollbackLastReInitialization"
  942. abstract="true" native="false" synchronized="false"
  943. static="false" final="false" visibility="public"
  944. deprecated="not deprecated">
  945. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  946. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  947. <exception name="IOException" type="java.io.IOException"/>
  948. <doc>
  949. <![CDATA[<p>Rollback last reInitialization of the specified container.</p>
  950. @param containerId the Id of the container to restart.
  951. @throws YarnException YarnException.
  952. @throws IOException IOException.]]>
  953. </doc>
  954. </method>
  955. <method name="commitLastReInitialization"
  956. abstract="true" native="false" synchronized="false"
  957. static="false" final="false" visibility="public"
  958. deprecated="not deprecated">
  959. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  960. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  961. <exception name="IOException" type="java.io.IOException"/>
  962. <doc>
  963. <![CDATA[<p>Commit last reInitialization of the specified container.</p>
  964. @param containerId the Id of the container to commit reInitialize.
  965. @throws YarnException YarnException.
  966. @throws IOException IOException.]]>
  967. </doc>
  968. </method>
  969. <method name="cleanupRunningContainersOnStop"
  970. abstract="true" native="false" synchronized="false"
  971. static="false" final="false" visibility="public"
  972. deprecated="not deprecated">
  973. <param name="enabled" type="boolean"/>
  974. <doc>
  975. <![CDATA[<p>Set whether the containers that are started by this client, and are
  976. still running should be stopped when the client stops. By default, the
  977. feature should be enabled.</p> However, containers will be stopped only
  978. when service is stopped. i.e. after {@link NMClient#stop()}.
  979. @param enabled whether the feature is enabled or not]]>
  980. </doc>
  981. </method>
  982. <method name="setNMTokenCache"
  983. abstract="false" native="false" synchronized="false"
  984. static="false" final="false" visibility="public"
  985. deprecated="not deprecated">
  986. <param name="nmTokenCache" type="org.apache.hadoop.yarn.client.api.NMTokenCache"/>
  987. <doc>
  988. <![CDATA[Set the NM Token cache of the <code>NMClient</code>. This cache must be
  989. shared with the {@link AMRMClient} that requested the containers managed
  990. by this <code>NMClient</code>
  991. <p>
  992. If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
  993. singleton instance will be used.
  994. @param nmTokenCache the NM token cache to use.]]>
  995. </doc>
  996. </method>
  997. <method name="getNMTokenCache" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
  998. abstract="false" native="false" synchronized="false"
  999. static="false" final="false" visibility="public"
  1000. deprecated="not deprecated">
  1001. <doc>
  1002. <![CDATA[Get the NM token cache of the <code>NMClient</code>. This cache must be
  1003. shared with the {@link AMRMClient} that requested the containers managed
  1004. by this <code>NMClient</code>
  1005. <p>
  1006. If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
  1007. singleton instance will be used.
  1008. @return the NM token cache]]>
  1009. </doc>
  1010. </method>
  1011. <method name="getNodeIdOfStartedContainer" return="org.apache.hadoop.yarn.api.records.NodeId"
  1012. abstract="false" native="false" synchronized="false"
  1013. static="false" final="false" visibility="public"
  1014. deprecated="not deprecated">
  1015. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1016. <doc>
  1017. <![CDATA[Get the NodeId of the node on which container is running. It returns
  1018. null if the container if container is not found or if it is not running.
  1019. @param containerId Container Id of the container.
  1020. @return NodeId of the container on which it is running.]]>
  1021. </doc>
  1022. </method>
  1023. </class>
  1024. <!-- end class org.apache.hadoop.yarn.client.api.NMClient -->
  1025. <!-- start class org.apache.hadoop.yarn.client.api.NMTokenCache -->
  1026. <class name="NMTokenCache" extends="java.lang.Object"
  1027. abstract="false"
  1028. static="false" final="false" visibility="public"
  1029. deprecated="not deprecated">
  1030. <constructor name="NMTokenCache"
  1031. static="false" final="false" visibility="public"
  1032. deprecated="not deprecated">
  1033. <doc>
  1034. <![CDATA[Creates a NM token cache instance.]]>
  1035. </doc>
  1036. </constructor>
  1037. <method name="getSingleton" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
  1038. abstract="false" native="false" synchronized="false"
  1039. static="true" final="false" visibility="public"
  1040. deprecated="not deprecated">
  1041. <doc>
  1042. <![CDATA[Returns the singleton NM token cache.
  1043. @return the singleton NM token cache.]]>
  1044. </doc>
  1045. </method>
  1046. <method name="getNMToken" return="org.apache.hadoop.yarn.api.records.Token"
  1047. abstract="false" native="false" synchronized="false"
  1048. static="true" final="false" visibility="public"
  1049. deprecated="not deprecated">
  1050. <param name="nodeAddr" type="java.lang.String"/>
  1051. <doc>
  1052. <![CDATA[Returns NMToken, null if absent. Only the singleton obtained from
  1053. {@link #getSingleton()} is looked at for the tokens. If you are using your
  1054. own NMTokenCache that is different from the singleton, use
  1055. {@link #getToken(String) }
  1056. @param nodeAddr
  1057. @return {@link Token} NMToken required for communicating with node manager]]>
  1058. </doc>
  1059. </method>
  1060. <method name="setNMToken"
  1061. abstract="false" native="false" synchronized="false"
  1062. static="true" final="false" visibility="public"
  1063. deprecated="not deprecated">
  1064. <param name="nodeAddr" type="java.lang.String"/>
  1065. <param name="token" type="org.apache.hadoop.yarn.api.records.Token"/>
  1066. <doc>
  1067. <![CDATA[Sets the NMToken for node address only in the singleton obtained from
  1068. {@link #getSingleton()}. If you are using your own NMTokenCache that is
  1069. different from the singleton, use {@link #setToken(String, Token) }
  1070. @param nodeAddr
  1071. node address (host:port)
  1072. @param token
  1073. NMToken]]>
  1074. </doc>
  1075. </method>
  1076. <method name="getToken" return="org.apache.hadoop.yarn.api.records.Token"
  1077. abstract="false" native="false" synchronized="false"
  1078. static="false" final="false" visibility="public"
  1079. deprecated="not deprecated">
  1080. <param name="nodeAddr" type="java.lang.String"/>
  1081. <doc>
  1082. <![CDATA[Returns NMToken, null if absent
  1083. @param nodeAddr
  1084. @return {@link Token} NMToken required for communicating with node
  1085. manager]]>
  1086. </doc>
  1087. </method>
  1088. <method name="setToken"
  1089. abstract="false" native="false" synchronized="false"
  1090. static="false" final="false" visibility="public"
  1091. deprecated="not deprecated">
  1092. <param name="nodeAddr" type="java.lang.String"/>
  1093. <param name="token" type="org.apache.hadoop.yarn.api.records.Token"/>
  1094. <doc>
  1095. <![CDATA[Sets the NMToken for node address
  1096. @param nodeAddr node address (host:port)
  1097. @param token NMToken]]>
  1098. </doc>
  1099. </method>
  1100. <doc>
  1101. <![CDATA[NMTokenCache manages NMTokens required for an Application Master
  1102. communicating with individual NodeManagers.
  1103. <p>
  1104. By default YARN client libraries {@link AMRMClient} and {@link NMClient} use
  1105. {@link #getSingleton()} instance of the cache.
  1106. <ul>
  1107. <li>
  1108. Using the singleton instance of the cache is appropriate when running a
  1109. single ApplicationMaster in the same JVM.
  1110. </li>
  1111. <li>
  1112. When using the singleton, users don't need to do anything special,
  1113. {@link AMRMClient} and {@link NMClient} are already set up to use the
  1114. default singleton {@link NMTokenCache}
  1115. </li>
  1116. </ul>
  1117. If running multiple Application Masters in the same JVM, a different cache
  1118. instance should be used for each Application Master.
  1119. <ul>
  1120. <li>
  1121. If using the {@link AMRMClient} and the {@link NMClient}, setting up
  1122. and using an instance cache is as follows:
  1123. <pre>
  1124. NMTokenCache nmTokenCache = new NMTokenCache();
  1125. AMRMClient rmClient = AMRMClient.createAMRMClient();
  1126. NMClient nmClient = NMClient.createNMClient();
  1127. nmClient.setNMTokenCache(nmTokenCache);
  1128. ...
  1129. </pre>
  1130. </li>
  1131. <li>
  1132. If using the {@link AMRMClientAsync} and the {@link NMClientAsync},
  1133. setting up and using an instance cache is as follows:
  1134. <pre>
  1135. NMTokenCache nmTokenCache = new NMTokenCache();
  1136. AMRMClient rmClient = AMRMClient.createAMRMClient();
  1137. NMClient nmClient = NMClient.createNMClient();
  1138. nmClient.setNMTokenCache(nmTokenCache);
  1139. AMRMClientAsync rmClientAsync = new AMRMClientAsync(rmClient, 1000, [AMRM_CALLBACK]);
  1140. NMClientAsync nmClientAsync = new NMClientAsync("nmClient", nmClient, [NM_CALLBACK]);
  1141. ...
  1142. </pre>
  1143. </li>
  1144. <li>
  1145. If using {@link ApplicationMasterProtocol} and
  1146. {@link ContainerManagementProtocol} directly, setting up and using an
  1147. instance cache is as follows:
  1148. <pre>
  1149. NMTokenCache nmTokenCache = new NMTokenCache();
  1150. ...
  1151. ApplicationMasterProtocol amPro = ClientRMProxy.createRMProxy(conf, ApplicationMasterProtocol.class);
  1152. ...
  1153. AllocateRequest allocateRequest = ...
  1154. ...
  1155. AllocateResponse allocateResponse = rmClient.allocate(allocateRequest);
  1156. for (NMToken token : allocateResponse.getNMTokens()) {
  1157. nmTokenCache.setToken(token.getNodeId().toString(), token.getToken());
  1158. }
  1159. ...
  1160. ContainerManagementProtocolProxy nmPro = ContainerManagementProtocolProxy(conf, nmTokenCache);
  1161. ...
  1162. nmPro.startContainer(container, containerContext);
  1163. ...
  1164. </pre>
  1165. </li>
  1166. </ul>
  1167. It is also possible to mix the usage of a client ({@code AMRMClient} or
  1168. {@code NMClient}, or the async versions of them) with a protocol proxy
  1169. ({@code ContainerManagementProtocolProxy} or
  1170. {@code ApplicationMasterProtocol}).]]>
  1171. </doc>
  1172. </class>
  1173. <!-- end class org.apache.hadoop.yarn.client.api.NMTokenCache -->
  1174. <!-- start class org.apache.hadoop.yarn.client.api.SharedCacheClient -->
  1175. <class name="SharedCacheClient" extends="org.apache.hadoop.service.AbstractService"
  1176. abstract="true"
  1177. static="false" final="false" visibility="public"
  1178. deprecated="not deprecated">
  1179. <constructor name="SharedCacheClient" type="java.lang.String"
  1180. static="false" final="false" visibility="public"
  1181. deprecated="not deprecated">
  1182. </constructor>
  1183. <method name="createSharedCacheClient" return="org.apache.hadoop.yarn.client.api.SharedCacheClient"
  1184. abstract="false" native="false" synchronized="false"
  1185. static="true" final="false" visibility="public"
  1186. deprecated="not deprecated">
  1187. </method>
  1188. <method name="use" return="org.apache.hadoop.yarn.api.records.URL"
  1189. abstract="true" native="false" synchronized="false"
  1190. static="false" final="false" visibility="public"
  1191. deprecated="not deprecated">
  1192. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1193. <param name="resourceKey" type="java.lang.String"/>
  1194. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1195. <doc>
  1196. <![CDATA[<p>
  1197. The method to claim a resource with the <code>SharedCacheManager.</code>
  1198. The client uses a checksum to identify the resource and an
  1199. {@link ApplicationId} to identify which application will be using the
  1200. resource.
  1201. </p>
  1202. <p>
  1203. The <code>SharedCacheManager</code> responds with whether or not the
  1204. resource exists in the cache. If the resource exists, a <code>URL</code> to
  1205. the resource in the shared cache is returned. If the resource does not
  1206. exist, null is returned instead.
  1207. </p>
  1208. <p>
  1209. Once a URL has been returned for a resource, that URL is safe to use for
  1210. the lifetime of the application that corresponds to the provided
  1211. ApplicationId.
  1212. </p>
  1213. @param applicationId ApplicationId of the application using the resource
  1214. @param resourceKey the key (i.e. checksum) that identifies the resource
  1215. @return URL to the resource, or null if it does not exist]]>
  1216. </doc>
  1217. </method>
  1218. <method name="release"
  1219. abstract="true" native="false" synchronized="false"
  1220. static="false" final="false" visibility="public"
  1221. deprecated="not deprecated">
  1222. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1223. <param name="resourceKey" type="java.lang.String"/>
  1224. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1225. <doc>
  1226. <![CDATA[<p>
  1227. The method to release a resource with the <code>SharedCacheManager.</code>
  1228. This method is called once an application is no longer using a claimed
  1229. resource in the shared cache. The client uses a checksum to identify the
  1230. resource and an {@link ApplicationId} to identify which application is
  1231. releasing the resource.
  1232. </p>
  1233. <p>
  1234. Note: This method is an optimization and the client is not required to call
  1235. it for correctness.
  1236. </p>
  1237. @param applicationId ApplicationId of the application releasing the
  1238. resource
  1239. @param resourceKey the key (i.e. checksum) that identifies the resource]]>
  1240. </doc>
  1241. </method>
  1242. <method name="getFileChecksum" return="java.lang.String"
  1243. abstract="true" native="false" synchronized="false"
  1244. static="false" final="false" visibility="public"
  1245. deprecated="not deprecated">
  1246. <param name="sourceFile" type="org.apache.hadoop.fs.Path"/>
  1247. <exception name="IOException" type="java.io.IOException"/>
  1248. <doc>
  1249. <![CDATA[A convenience method to calculate the checksum of a specified file.
  1250. @param sourceFile A path to the input file
  1251. @return A hex string containing the checksum digest
  1252. @throws IOException]]>
  1253. </doc>
  1254. </method>
  1255. <doc>
  1256. <![CDATA[This is the client for YARN's shared cache.]]>
  1257. </doc>
  1258. </class>
  1259. <!-- end class org.apache.hadoop.yarn.client.api.SharedCacheClient -->
  1260. <!-- start class org.apache.hadoop.yarn.client.api.YarnClient -->
  1261. <class name="YarnClient" extends="org.apache.hadoop.service.AbstractService"
  1262. abstract="true"
  1263. static="false" final="false" visibility="public"
  1264. deprecated="not deprecated">
  1265. <constructor name="YarnClient" type="java.lang.String"
  1266. static="false" final="false" visibility="protected"
  1267. deprecated="not deprecated">
  1268. </constructor>
  1269. <method name="createYarnClient" return="org.apache.hadoop.yarn.client.api.YarnClient"
  1270. abstract="false" native="false" synchronized="false"
  1271. static="true" final="false" visibility="public"
  1272. deprecated="not deprecated">
  1273. <doc>
  1274. <![CDATA[Create a new instance of YarnClient.]]>
  1275. </doc>
  1276. </method>
  1277. <method name="createApplication" return="org.apache.hadoop.yarn.client.api.YarnClientApplication"
  1278. abstract="true" native="false" synchronized="false"
  1279. static="false" final="false" visibility="public"
  1280. deprecated="not deprecated">
  1281. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1282. <exception name="IOException" type="java.io.IOException"/>
  1283. <doc>
  1284. <![CDATA[<p>
  1285. Obtain a {@link YarnClientApplication} for a new application,
  1286. which in turn contains the {@link ApplicationSubmissionContext} and
  1287. {@link org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse}
  1288. objects.
  1289. </p>
  1290. @return {@link YarnClientApplication} built for a new application
  1291. @throws YarnException
  1292. @throws IOException]]>
  1293. </doc>
  1294. </method>
  1295. <method name="submitApplication" return="org.apache.hadoop.yarn.api.records.ApplicationId"
  1296. abstract="true" native="false" synchronized="false"
  1297. static="false" final="false" visibility="public"
  1298. deprecated="not deprecated">
  1299. <param name="appContext" type="org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"/>
  1300. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1301. <exception name="IOException" type="java.io.IOException"/>
  1302. <doc>
  1303. <![CDATA[<p>
  1304. Submit a new application to <code>YARN.</code> It is a blocking call - it
  1305. will not return {@link ApplicationId} until the submitted application is
  1306. submitted successfully and accepted by the ResourceManager.
  1307. </p>
  1308. <p>
  1309. Users should provide an {@link ApplicationId} as part of the parameter
  1310. {@link ApplicationSubmissionContext} when submitting a new application,
  1311. otherwise it will throw the {@link ApplicationIdNotProvidedException}.
  1312. </p>
  1313. <p>This internally calls {@link ApplicationClientProtocol#submitApplication
  1314. (SubmitApplicationRequest)}, and after that, it internally invokes
  1315. {@link ApplicationClientProtocol#getApplicationReport
  1316. (GetApplicationReportRequest)} and waits till it can make sure that the
  1317. application gets properly submitted. If RM fails over or RM restart
  1318. happens before ResourceManager saves the application's state,
  1319. {@link ApplicationClientProtocol
  1320. #getApplicationReport(GetApplicationReportRequest)} will throw
  1321. the {@link ApplicationNotFoundException}. This API automatically resubmits
  1322. the application with the same {@link ApplicationSubmissionContext} when it
  1323. catches the {@link ApplicationNotFoundException}</p>
  1324. @param appContext
  1325. {@link ApplicationSubmissionContext} containing all the details
  1326. needed to submit a new application
  1327. @return {@link ApplicationId} of the accepted application
  1328. @throws YarnException
  1329. @throws IOException
  1330. @see #createApplication()]]>
  1331. </doc>
  1332. </method>
  1333. <method name="failApplicationAttempt"
  1334. abstract="true" native="false" synchronized="false"
  1335. static="false" final="false" visibility="public"
  1336. deprecated="not deprecated">
  1337. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  1338. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1339. <exception name="IOException" type="java.io.IOException"/>
  1340. <doc>
  1341. <![CDATA[<p>
  1342. Fail an application attempt identified by given ID.
  1343. </p>
  1344. @param applicationAttemptId
  1345. {@link ApplicationAttemptId} of the attempt to fail.
  1346. @throws YarnException
  1347. in case of errors or if YARN rejects the request due to
  1348. access-control restrictions.
  1349. @throws IOException
  1350. @see #getQueueAclsInfo()]]>
  1351. </doc>
  1352. </method>
  1353. <method name="killApplication"
  1354. abstract="true" native="false" synchronized="false"
  1355. static="false" final="false" visibility="public"
  1356. deprecated="not deprecated">
  1357. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1358. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1359. <exception name="IOException" type="java.io.IOException"/>
  1360. <doc>
  1361. <![CDATA[<p>
  1362. Kill an application identified by given ID.
  1363. </p>
  1364. @param applicationId
  1365. {@link ApplicationId} of the application that needs to be killed
  1366. @throws YarnException
  1367. in case of errors or if YARN rejects the request due to
  1368. access-control restrictions.
  1369. @throws IOException
  1370. @see #getQueueAclsInfo()]]>
  1371. </doc>
  1372. </method>
  1373. <method name="killApplication"
  1374. abstract="true" native="false" synchronized="false"
  1375. static="false" final="false" visibility="public"
  1376. deprecated="not deprecated">
  1377. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1378. <param name="diagnostics" type="java.lang.String"/>
  1379. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1380. <exception name="IOException" type="java.io.IOException"/>
  1381. <doc>
  1382. <![CDATA[<p>
  1383. Kill an application identified by given ID.
  1384. </p>
  1385. @param applicationId {@link ApplicationId} of the application that needs to
  1386. be killed
  1387. @param diagnostics for killing an application.
  1388. @throws YarnException in case of errors or if YARN rejects the request due
  1389. to access-control restrictions.
  1390. @throws IOException]]>
  1391. </doc>
  1392. </method>
  1393. <method name="getApplicationReport" return="org.apache.hadoop.yarn.api.records.ApplicationReport"
  1394. abstract="true" native="false" synchronized="false"
  1395. static="false" final="false" visibility="public"
  1396. deprecated="not deprecated">
  1397. <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1398. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1399. <exception name="IOException" type="java.io.IOException"/>
  1400. <doc>
  1401. <![CDATA[<p>
  1402. Get a report of the given Application.
  1403. </p>
  1404. <p>
  1405. In secure mode, <code>YARN</code> verifies access to the application, queue
  1406. etc. before accepting the request.
  1407. </p>
  1408. <p>
  1409. If the user does not have <code>VIEW_APP</code> access then the following
  1410. fields in the report will be set to stubbed values:
  1411. <ul>
  1412. <li>host - set to "N/A"</li>
  1413. <li>RPC port - set to -1</li>
  1414. <li>client token - set to "N/A"</li>
  1415. <li>diagnostics - set to "N/A"</li>
  1416. <li>tracking URL - set to "N/A"</li>
  1417. <li>original tracking URL - set to "N/A"</li>
  1418. <li>resource usage report - all values are -1</li>
  1419. </ul>
  1420. @param appId
  1421. {@link ApplicationId} of the application that needs a report
  1422. @return application report
  1423. @throws YarnException
  1424. @throws IOException]]>
  1425. </doc>
  1426. </method>
  1427. <method name="getAMRMToken" return="org.apache.hadoop.security.token.Token"
  1428. abstract="true" native="false" synchronized="false"
  1429. static="false" final="false" visibility="public"
  1430. deprecated="not deprecated">
  1431. <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1432. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1433. <exception name="IOException" type="java.io.IOException"/>
  1434. <doc>
  1435. <![CDATA[Get the AMRM token of the application.
  1436. <p>
  1437. The AMRM token is required for AM to RM scheduling operations. For
  1438. managed Application Masters YARN takes care of injecting it. For unmanaged
  1439. Applications Masters, the token must be obtained via this method and set
  1440. in the {@link org.apache.hadoop.security.UserGroupInformation} of the
  1441. current user.
  1442. <p>
  1443. The AMRM token will be returned only if all the following conditions are
  1444. met:
  1445. <ul>
  1446. <li>the requester is the owner of the ApplicationMaster</li>
  1447. <li>the application master is an unmanaged ApplicationMaster</li>
  1448. <li>the application master is in ACCEPTED state</li>
  1449. </ul>
  1450. Else this method returns NULL.
  1451. @param appId {@link ApplicationId} of the application to get the AMRM token
  1452. @return the AMRM token if available
  1453. @throws YarnException
  1454. @throws IOException]]>
  1455. </doc>
  1456. </method>
  1457. <method name="getApplications" return="java.util.List"
  1458. abstract="true" native="false" synchronized="false"
  1459. static="false" final="false" visibility="public"
  1460. deprecated="not deprecated">
  1461. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1462. <exception name="IOException" type="java.io.IOException"/>
  1463. <doc>
  1464. <![CDATA[<p>
  1465. Get a report (ApplicationReport) of all Applications in the cluster.
  1466. </p>
  1467. <p>
  1468. If the user does not have <code>VIEW_APP</code> access for an application
  1469. then the corresponding report will be filtered as described in
  1470. {@link #getApplicationReport(ApplicationId)}.
  1471. </p>
  1472. @return a list of reports of all running applications
  1473. @throws YarnException
  1474. @throws IOException]]>
  1475. </doc>
  1476. </method>
  1477. <method name="getApplications" return="java.util.List"
  1478. abstract="true" native="false" synchronized="false"
  1479. static="false" final="false" visibility="public"
  1480. deprecated="not deprecated">
  1481. <param name="applicationTypes" type="java.util.Set"/>
  1482. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1483. <exception name="IOException" type="java.io.IOException"/>
  1484. <doc>
  1485. <![CDATA[<p>
  1486. Get a report (ApplicationReport) of Applications
  1487. matching the given application types in the cluster.
  1488. </p>
  1489. <p>
  1490. If the user does not have <code>VIEW_APP</code> access for an application
  1491. then the corresponding report will be filtered as described in
  1492. {@link #getApplicationReport(ApplicationId)}.
  1493. </p>
  1494. @param applicationTypes set of application types you are interested in
  1495. @return a list of reports of applications
  1496. @throws YarnException
  1497. @throws IOException]]>
  1498. </doc>
  1499. </method>
  1500. <method name="getApplications" return="java.util.List"
  1501. abstract="true" native="false" synchronized="false"
  1502. static="false" final="false" visibility="public"
  1503. deprecated="not deprecated">
  1504. <param name="applicationStates" type="java.util.EnumSet"/>
  1505. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1506. <exception name="IOException" type="java.io.IOException"/>
  1507. <doc>
  1508. <![CDATA[<p>
  1509. Get a report (ApplicationReport) of Applications matching the given
  1510. application states in the cluster.
  1511. </p>
  1512. <p>
  1513. If the user does not have <code>VIEW_APP</code> access for an application
  1514. then the corresponding report will be filtered as described in
  1515. {@link #getApplicationReport(ApplicationId)}.
  1516. </p>
  1517. @param applicationStates set of application states you are interested in
  1518. @return a list of reports of applications
  1519. @throws YarnException
  1520. @throws IOException]]>
  1521. </doc>
  1522. </method>
  1523. <method name="getApplications" return="java.util.List"
  1524. abstract="true" native="false" synchronized="false"
  1525. static="false" final="false" visibility="public"
  1526. deprecated="not deprecated">
  1527. <param name="applicationTypes" type="java.util.Set"/>
  1528. <param name="applicationStates" type="java.util.EnumSet"/>
  1529. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1530. <exception name="IOException" type="java.io.IOException"/>
  1531. <doc>
  1532. <![CDATA[<p>
  1533. Get a report (ApplicationReport) of Applications matching the given
  1534. application types and application states in the cluster.
  1535. </p>
  1536. <p>
  1537. If the user does not have <code>VIEW_APP</code> access for an application
  1538. then the corresponding report will be filtered as described in
  1539. {@link #getApplicationReport(ApplicationId)}.
  1540. </p>
  1541. @param applicationTypes set of application types you are interested in
  1542. @param applicationStates set of application states you are interested in
  1543. @return a list of reports of applications
  1544. @throws YarnException
  1545. @throws IOException]]>
  1546. </doc>
  1547. </method>
  1548. <method name="getApplications" return="java.util.List"
  1549. abstract="true" native="false" synchronized="false"
  1550. static="false" final="false" visibility="public"
  1551. deprecated="not deprecated">
  1552. <param name="applicationTypes" type="java.util.Set"/>
  1553. <param name="applicationStates" type="java.util.EnumSet"/>
  1554. <param name="applicationTags" type="java.util.Set"/>
  1555. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1556. <exception name="IOException" type="java.io.IOException"/>
  1557. <doc>
  1558. <![CDATA[<p>
  1559. Get a report (ApplicationReport) of Applications matching the given
  1560. application types, application states and application tags in the cluster.
  1561. </p>
  1562. <p>
  1563. If the user does not have <code>VIEW_APP</code> access for an application
  1564. then the corresponding report will be filtered as described in
  1565. {@link #getApplicationReport(ApplicationId)}.
  1566. </p>
  1567. @param applicationTypes set of application types you are interested in
  1568. @param applicationStates set of application states you are interested in
  1569. @param applicationTags set of application tags you are interested in
  1570. @return a list of reports of applications
  1571. @throws YarnException
  1572. @throws IOException]]>
  1573. </doc>
  1574. </method>
  1575. <method name="getApplications" return="java.util.List"
  1576. abstract="true" native="false" synchronized="false"
  1577. static="false" final="false" visibility="public"
  1578. deprecated="not deprecated">
  1579. <param name="queues" type="java.util.Set"/>
  1580. <param name="users" type="java.util.Set"/>
  1581. <param name="applicationTypes" type="java.util.Set"/>
  1582. <param name="applicationStates" type="java.util.EnumSet"/>
  1583. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1584. <exception name="IOException" type="java.io.IOException"/>
  1585. <doc>
  1586. <![CDATA[<p>
  1587. Get a report (ApplicationReport) of Applications matching the given users,
  1588. queues, application types and application states in the cluster. If any of
  1589. the params is set to null, it is not used when filtering.
  1590. </p>
  1591. <p>
  1592. If the user does not have <code>VIEW_APP</code> access for an application
  1593. then the corresponding report will be filtered as described in
  1594. {@link #getApplicationReport(ApplicationId)}.
  1595. </p>
  1596. @param queues set of queues you are interested in
  1597. @param users set of users you are interested in
  1598. @param applicationTypes set of application types you are interested in
  1599. @param applicationStates set of application states you are interested in
  1600. @return a list of reports of applications
  1601. @throws YarnException
  1602. @throws IOException]]>
  1603. </doc>
  1604. </method>
  1605. <method name="getApplications" return="java.util.List"
  1606. abstract="false" native="false" synchronized="false"
  1607. static="false" final="false" visibility="public"
  1608. deprecated="not deprecated">
  1609. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest"/>
  1610. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1611. <exception name="IOException" type="java.io.IOException"/>
  1612. <doc>
  1613. <![CDATA[<p>
  1614. Get a list of ApplicationReports that match the given
  1615. {@link GetApplicationsRequest}.
  1616. </p>
  1617. <p>
  1618. If the user does not have <code>VIEW_APP</code> access for an application
  1619. then the corresponding report will be filtered as described in
  1620. {@link #getApplicationReport(ApplicationId)}.
  1621. </p>
  1622. @param request the request object to get the list of applications.
  1623. @return The list of ApplicationReports that match the request
  1624. @throws YarnException Exception specific to YARN.
  1625. @throws IOException Exception mostly related to connection errors.]]>
  1626. </doc>
  1627. </method>
  1628. <method name="getYarnClusterMetrics" return="org.apache.hadoop.yarn.api.records.YarnClusterMetrics"
  1629. abstract="true" native="false" synchronized="false"
  1630. static="false" final="false" visibility="public"
  1631. deprecated="not deprecated">
  1632. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1633. <exception name="IOException" type="java.io.IOException"/>
  1634. <doc>
  1635. <![CDATA[<p>
  1636. Get metrics ({@link YarnClusterMetrics}) about the cluster.
  1637. </p>
  1638. @return cluster metrics
  1639. @throws YarnException
  1640. @throws IOException]]>
  1641. </doc>
  1642. </method>
  1643. <method name="getNodeReports" return="java.util.List"
  1644. abstract="true" native="false" synchronized="false"
  1645. static="false" final="false" visibility="public"
  1646. deprecated="not deprecated">
  1647. <param name="states" type="org.apache.hadoop.yarn.api.records.NodeState[]"/>
  1648. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1649. <exception name="IOException" type="java.io.IOException"/>
  1650. <doc>
  1651. <![CDATA[<p>
  1652. Get a report of nodes ({@link NodeReport}) in the cluster.
  1653. </p>
  1654. @param states The {@link NodeState}s to filter on. If no filter states are
  1655. given, nodes in all states will be returned.
  1656. @return A list of node reports
  1657. @throws YarnException
  1658. @throws IOException]]>
  1659. </doc>
  1660. </method>
  1661. <method name="getRMDelegationToken" return="org.apache.hadoop.yarn.api.records.Token"
  1662. abstract="true" native="false" synchronized="false"
  1663. static="false" final="false" visibility="public"
  1664. deprecated="not deprecated">
  1665. <param name="renewer" type="org.apache.hadoop.io.Text"/>
  1666. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1667. <exception name="IOException" type="java.io.IOException"/>
  1668. <doc>
  1669. <![CDATA[<p>
  1670. Get a delegation token so as to be able to talk to YARN using those tokens.
  1671. @param renewer
  1672. Address of the renewer who can renew these tokens when needed by
  1673. securely talking to YARN.
  1674. @return a delegation token ({@link Token}) that can be used to
  1675. talk to YARN
  1676. @throws YarnException
  1677. @throws IOException]]>
  1678. </doc>
  1679. </method>
  1680. <method name="getQueueInfo" return="org.apache.hadoop.yarn.api.records.QueueInfo"
  1681. abstract="true" native="false" synchronized="false"
  1682. static="false" final="false" visibility="public"
  1683. deprecated="not deprecated">
  1684. <param name="queueName" type="java.lang.String"/>
  1685. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1686. <exception name="IOException" type="java.io.IOException"/>
  1687. <doc>
  1688. <![CDATA[<p>
  1689. Get information ({@link QueueInfo}) about a given <em>queue</em>.
  1690. </p>
  1691. @param queueName
  1692. Name of the queue whose information is needed
  1693. @return queue information
  1694. @throws YarnException
  1695. in case of errors or if YARN rejects the request due to
  1696. access-control restrictions.
  1697. @throws IOException]]>
  1698. </doc>
  1699. </method>
  1700. <method name="getAllQueues" return="java.util.List"
  1701. abstract="true" native="false" synchronized="false"
  1702. static="false" final="false" visibility="public"
  1703. deprecated="not deprecated">
  1704. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1705. <exception name="IOException" type="java.io.IOException"/>
  1706. <doc>
  1707. <![CDATA[<p>
  1708. Get information ({@link QueueInfo}) about all queues, recursively if there
  1709. is a hierarchy
  1710. </p>
  1711. @return a list of queue-information for all queues
  1712. @throws YarnException
  1713. @throws IOException]]>
  1714. </doc>
  1715. </method>
  1716. <method name="getRootQueueInfos" return="java.util.List"
  1717. abstract="true" native="false" synchronized="false"
  1718. static="false" final="false" visibility="public"
  1719. deprecated="not deprecated">
  1720. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1721. <exception name="IOException" type="java.io.IOException"/>
  1722. <doc>
  1723. <![CDATA[<p>
  1724. Get information ({@link QueueInfo}) about top level queues.
  1725. </p>
  1726. @return a list of queue-information for all the top-level queues
  1727. @throws YarnException
  1728. @throws IOException]]>
  1729. </doc>
  1730. </method>
  1731. <method name="getChildQueueInfos" return="java.util.List"
  1732. abstract="true" native="false" synchronized="false"
  1733. static="false" final="false" visibility="public"
  1734. deprecated="not deprecated">
  1735. <param name="parent" type="java.lang.String"/>
  1736. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1737. <exception name="IOException" type="java.io.IOException"/>
  1738. <doc>
  1739. <![CDATA[<p>
  1740. Get information ({@link QueueInfo}) about all the immediate children queues
  1741. of the given queue
  1742. </p>
  1743. @param parent
  1744. Name of the queue whose child-queues' information is needed
  1745. @return a list of queue-information for all queues who are direct children
  1746. of the given parent queue.
  1747. @throws YarnException
  1748. @throws IOException]]>
  1749. </doc>
  1750. </method>
  1751. <method name="getQueueAclsInfo" return="java.util.List"
  1752. abstract="true" native="false" synchronized="false"
  1753. static="false" final="false" visibility="public"
  1754. deprecated="not deprecated">
  1755. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1756. <exception name="IOException" type="java.io.IOException"/>
  1757. <doc>
  1758. <![CDATA[<p>
  1759. Get information about <em>acls</em> for <em>current user</em> on all the
  1760. existing queues.
  1761. </p>
  1762. @return a list of queue acls ({@link QueueUserACLInfo}) for
  1763. <em>current user</em>
  1764. @throws YarnException
  1765. @throws IOException]]>
  1766. </doc>
  1767. </method>
  1768. <method name="getApplicationAttemptReport" return="org.apache.hadoop.yarn.api.records.ApplicationAttemptReport"
  1769. abstract="true" native="false" synchronized="false"
  1770. static="false" final="false" visibility="public"
  1771. deprecated="not deprecated">
  1772. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  1773. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1774. <exception name="IOException" type="java.io.IOException"/>
  1775. <doc>
  1776. <![CDATA[<p>
  1777. Get a report of the given ApplicationAttempt.
  1778. </p>
  1779. <p>
  1780. In secure mode, <code>YARN</code> verifies access to the application, queue
  1781. etc. before accepting the request.
  1782. </p>
  1783. @param applicationAttemptId
  1784. {@link ApplicationAttemptId} of the application attempt that needs
  1785. a report
  1786. @return application attempt report
  1787. @throws YarnException
  1788. @throws ApplicationAttemptNotFoundException if application attempt
  1789. not found
  1790. @throws IOException]]>
  1791. </doc>
  1792. </method>
  1793. <method name="getApplicationAttempts" return="java.util.List"
  1794. abstract="true" native="false" synchronized="false"
  1795. static="false" final="false" visibility="public"
  1796. deprecated="not deprecated">
  1797. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1798. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1799. <exception name="IOException" type="java.io.IOException"/>
  1800. <doc>
  1801. <![CDATA[<p>
  1802. Get a report of all (ApplicationAttempts) of Application in the cluster.
  1803. </p>
  1804. @param applicationId application id of the app
  1805. @return a list of reports for all application attempts for specified
  1806. application.
  1807. @throws YarnException
  1808. @throws IOException]]>
  1809. </doc>
  1810. </method>
  1811. <method name="getContainerReport" return="org.apache.hadoop.yarn.api.records.ContainerReport"
  1812. abstract="true" native="false" synchronized="false"
  1813. static="false" final="false" visibility="public"
  1814. deprecated="not deprecated">
  1815. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  1816. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1817. <exception name="IOException" type="java.io.IOException"/>
  1818. <doc>
  1819. <![CDATA[<p>
  1820. Get a report of the given Container.
  1821. </p>
  1822. <p>
  1823. In secure mode, <code>YARN</code> verifies access to the application, queue
  1824. etc. before accepting the request.
  1825. </p>
  1826. @param containerId
  1827. {@link ContainerId} of the container that needs a report
  1828. @return container report
  1829. @throws YarnException
  1830. @throws ContainerNotFoundException if container not found.
  1831. @throws IOException]]>
  1832. </doc>
  1833. </method>
  1834. <method name="getContainers" return="java.util.List"
  1835. abstract="true" native="false" synchronized="false"
  1836. static="false" final="false" visibility="public"
  1837. deprecated="not deprecated">
  1838. <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
  1839. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1840. <exception name="IOException" type="java.io.IOException"/>
  1841. <doc>
  1842. <![CDATA[<p>
  1843. Get a report of all (Containers) of ApplicationAttempt in the cluster.
  1844. </p>
  1845. @param applicationAttemptId application attempt id
  1846. @return a list of reports of all containers for specified application
  1847. attempts
  1848. @throws YarnException
  1849. @throws IOException]]>
  1850. </doc>
  1851. </method>
  1852. <method name="moveApplicationAcrossQueues"
  1853. abstract="true" native="false" synchronized="false"
  1854. static="false" final="false" visibility="public"
  1855. deprecated="not deprecated">
  1856. <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  1857. <param name="queue" type="java.lang.String"/>
  1858. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1859. <exception name="IOException" type="java.io.IOException"/>
  1860. <doc>
  1861. <![CDATA[<p>
  1862. Attempts to move the given application to the given queue.
  1863. </p>
  1864. @param appId
  1865. Application to move.
  1866. @param queue
  1867. Queue to place it in to.
  1868. @throws YarnException
  1869. @throws IOException]]>
  1870. </doc>
  1871. </method>
  1872. <method name="createReservation" return="org.apache.hadoop.yarn.api.protocolrecords.GetNewReservationResponse"
  1873. abstract="true" native="false" synchronized="false"
  1874. static="false" final="false" visibility="public"
  1875. deprecated="not deprecated">
  1876. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1877. <exception name="IOException" type="java.io.IOException"/>
  1878. <doc>
  1879. <![CDATA[<p>
  1880. Obtain a {@link GetNewReservationResponse} for a new reservation,
  1881. which contains the {@link ReservationId} object.
  1882. </p>
  1883. @return The {@link GetNewReservationResponse} containing a new
  1884. {@link ReservationId} object.
  1885. @throws YarnException if reservation cannot be created.
  1886. @throws IOException if reservation cannot be created.]]>
  1887. </doc>
  1888. </method>
  1889. <method name="submitReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionResponse"
  1890. abstract="true" native="false" synchronized="false"
  1891. static="false" final="false" visibility="public"
  1892. deprecated="not deprecated">
  1893. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest"/>
  1894. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1895. <exception name="IOException" type="java.io.IOException"/>
  1896. <doc>
  1897. <![CDATA[<p>
  1898. The interface used by clients to submit a new reservation to the
  1899. {@code ResourceManager}.
  1900. </p>
  1901. <p>
  1902. The client packages all details of its request in a
  1903. {@link ReservationSubmissionRequest} object. This contains information
  1904. about the amount of capacity, temporal constraints, and gang needs.
  1905. Furthermore, the reservation might be composed of multiple stages, with
  1906. ordering dependencies among them.
  1907. </p>
  1908. <p>
  1909. In order to respond, a new admission control component in the
  1910. {@code ResourceManager} performs an analysis of the resources that have
  1911. been committed over the period of time the user is requesting, verify that
  1912. the user requests can be fulfilled, and that it respect a sharing policy
  1913. (e.g., {@code CapacityOverTimePolicy}). Once it has positively determined
  1914. that the ReservationRequest is satisfiable the {@code ResourceManager}
  1915. answers with a {@link ReservationSubmissionResponse} that includes a
  1916. {@link ReservationId}. Upon failure to find a valid allocation the response
  1917. is an exception with the message detailing the reason of failure.
  1918. </p>
  1919. <p>
  1920. The semantics guarantees that the {@link ReservationId} returned,
  1921. corresponds to a valid reservation existing in the time-range request by
  1922. the user. The amount of capacity dedicated to such reservation can vary
  1923. overtime, depending of the allocation that has been determined. But it is
  1924. guaranteed to satisfy all the constraint expressed by the user in the
  1925. {@link ReservationDefinition}
  1926. </p>
  1927. @param request request to submit a new Reservation
  1928. @return response contains the {@link ReservationId} on accepting the
  1929. submission
  1930. @throws YarnException if the reservation cannot be created successfully
  1931. @throws IOException]]>
  1932. </doc>
  1933. </method>
  1934. <method name="updateReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateResponse"
  1935. abstract="true" native="false" synchronized="false"
  1936. static="false" final="false" visibility="public"
  1937. deprecated="not deprecated">
  1938. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest"/>
  1939. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1940. <exception name="IOException" type="java.io.IOException"/>
  1941. <doc>
  1942. <![CDATA[<p>
  1943. The interface used by clients to update an existing Reservation. This is
  1944. referred to as a re-negotiation process, in which a user that has
  1945. previously submitted a Reservation.
  1946. </p>
  1947. <p>
  1948. The allocation is attempted by virtually substituting all previous
  1949. allocations related to this Reservation with new ones, that satisfy the new
  1950. {@link ReservationDefinition}. Upon success the previous allocation is
  1951. atomically substituted by the new one, and on failure (i.e., if the system
  1952. cannot find a valid allocation for the updated request), the previous
  1953. allocation remains valid.
  1954. </p>
  1955. @param request to update an existing Reservation (the
  1956. {@link ReservationUpdateRequest} should refer to an existing valid
  1957. {@link ReservationId})
  1958. @return response empty on successfully updating the existing reservation
  1959. @throws YarnException if the request is invalid or reservation cannot be
  1960. updated successfully
  1961. @throws IOException]]>
  1962. </doc>
  1963. </method>
  1964. <method name="deleteReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteResponse"
  1965. abstract="true" native="false" synchronized="false"
  1966. static="false" final="false" visibility="public"
  1967. deprecated="not deprecated">
  1968. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest"/>
  1969. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1970. <exception name="IOException" type="java.io.IOException"/>
  1971. <doc>
  1972. <![CDATA[<p>
  1973. The interface used by clients to remove an existing Reservation.
  1974. </p>
  1975. @param request to remove an existing Reservation (the
  1976. {@link ReservationDeleteRequest} should refer to an existing valid
  1977. {@link ReservationId})
  1978. @return response empty on successfully deleting the existing reservation
  1979. @throws YarnException if the request is invalid or reservation cannot be
  1980. deleted successfully
  1981. @throws IOException]]>
  1982. </doc>
  1983. </method>
  1984. <method name="listReservations" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationListResponse"
  1985. abstract="true" native="false" synchronized="false"
  1986. static="false" final="false" visibility="public"
  1987. deprecated="not deprecated">
  1988. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationListRequest"/>
  1989. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  1990. <exception name="IOException" type="java.io.IOException"/>
  1991. <doc>
  1992. <![CDATA[<p>
  1993. The interface used by clients to get the list of reservations in a plan.
  1994. The reservationId will be used to search for reservations to list if it is
  1995. provided. Otherwise, it will select active reservations within the
  1996. startTime and endTime (inclusive).
  1997. </p>
  1998. @param request to list reservations in a plan. Contains fields to select
  1999. String queue, ReservationId reservationId, long startTime,
  2000. long endTime, and a bool includeReservationAllocations.
  2001. queue: Required. Cannot be null or empty. Refers to the
  2002. reservable queue in the scheduler that was selected when
  2003. creating a reservation submission
  2004. {@link ReservationSubmissionRequest}.
  2005. reservationId: Optional. If provided, other fields will
  2006. be ignored.
  2007. startTime: Optional. If provided, only reservations that
  2008. end after the startTime will be selected. This defaults
  2009. to 0 if an invalid number is used.
  2010. endTime: Optional. If provided, only reservations that
  2011. start on or before endTime will be selected. This defaults
  2012. to Long.MAX_VALUE if an invalid number is used.
  2013. includeReservationAllocations: Optional. Flag that
  2014. determines whether the entire reservation allocations are
  2015. to be returned. Reservation allocations are subject to
  2016. change in the event of re-planning as described by
  2017. {@link ReservationDefinition}.
  2018. @return response that contains information about reservations that are
  2019. being searched for.
  2020. @throws YarnException if the request is invalid
  2021. @throws IOException if the request failed otherwise]]>
  2022. </doc>
  2023. </method>
  2024. <method name="getNodeToLabels" return="java.util.Map"
  2025. abstract="true" native="false" synchronized="false"
  2026. static="false" final="false" visibility="public"
  2027. deprecated="not deprecated">
  2028. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2029. <exception name="IOException" type="java.io.IOException"/>
  2030. <doc>
  2031. <![CDATA[<p>
  2032. The interface used by client to get node to labels mappings in existing cluster
  2033. </p>
  2034. @return node to labels mappings
  2035. @throws YarnException
  2036. @throws IOException]]>
  2037. </doc>
  2038. </method>
  2039. <method name="getLabelsToNodes" return="java.util.Map"
  2040. abstract="true" native="false" synchronized="false"
  2041. static="false" final="false" visibility="public"
  2042. deprecated="not deprecated">
  2043. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2044. <exception name="IOException" type="java.io.IOException"/>
  2045. <doc>
  2046. <![CDATA[<p>
  2047. The interface used by client to get labels to nodes mapping
  2048. in existing cluster
  2049. </p>
  2050. @return node to labels mappings
  2051. @throws YarnException
  2052. @throws IOException]]>
  2053. </doc>
  2054. </method>
  2055. <method name="getLabelsToNodes" return="java.util.Map"
  2056. abstract="true" native="false" synchronized="false"
  2057. static="false" final="false" visibility="public"
  2058. deprecated="not deprecated">
  2059. <param name="labels" type="java.util.Set"/>
  2060. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2061. <exception name="IOException" type="java.io.IOException"/>
  2062. <doc>
  2063. <![CDATA[<p>
  2064. The interface used by client to get labels to nodes mapping
  2065. for specified labels in existing cluster
  2066. </p>
  2067. @param labels labels for which labels to nodes mapping has to be retrieved
  2068. @return labels to nodes mappings for specific labels
  2069. @throws YarnException
  2070. @throws IOException]]>
  2071. </doc>
  2072. </method>
  2073. <method name="getClusterNodeLabels" return="java.util.List"
  2074. abstract="true" native="false" synchronized="false"
  2075. static="false" final="false" visibility="public"
  2076. deprecated="not deprecated">
  2077. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2078. <exception name="IOException" type="java.io.IOException"/>
  2079. <doc>
  2080. <![CDATA[<p>
  2081. The interface used by client to get node labels in the cluster
  2082. </p>
  2083. @return cluster node labels collection
  2084. @throws YarnException when there is a failure in
  2085. {@link ApplicationClientProtocol}
  2086. @throws IOException when there is a failure in
  2087. {@link ApplicationClientProtocol}]]>
  2088. </doc>
  2089. </method>
  2090. <method name="updateApplicationPriority" return="org.apache.hadoop.yarn.api.records.Priority"
  2091. abstract="true" native="false" synchronized="false"
  2092. static="false" final="false" visibility="public"
  2093. deprecated="not deprecated">
  2094. <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
  2095. <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
  2096. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2097. <exception name="IOException" type="java.io.IOException"/>
  2098. <doc>
  2099. <![CDATA[<p>
  2100. The interface used by client to set priority of an application
  2101. </p>
  2102. @param applicationId
  2103. @param priority
  2104. @return updated priority of an application.
  2105. @throws YarnException
  2106. @throws IOException]]>
  2107. </doc>
  2108. </method>
  2109. <method name="signalToContainer"
  2110. abstract="true" native="false" synchronized="false"
  2111. static="false" final="false" visibility="public"
  2112. deprecated="not deprecated">
  2113. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2114. <param name="command" type="org.apache.hadoop.yarn.api.records.SignalContainerCommand"/>
  2115. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2116. <exception name="IOException" type="java.io.IOException"/>
  2117. <doc>
  2118. <![CDATA[<p>
  2119. Signal a container identified by given ID.
  2120. </p>
  2121. @param containerId
  2122. {@link ContainerId} of the container that needs to be signaled
  2123. @param command the signal container command
  2124. @throws YarnException
  2125. @throws IOException]]>
  2126. </doc>
  2127. </method>
  2128. <method name="updateApplicationTimeouts" return="org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsResponse"
  2129. abstract="false" native="false" synchronized="false"
  2130. static="false" final="false" visibility="public"
  2131. deprecated="not deprecated">
  2132. <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsRequest"/>
  2133. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2134. <exception name="IOException" type="java.io.IOException"/>
  2135. </method>
  2136. <method name="getResourceProfiles" return="java.util.Map"
  2137. abstract="true" native="false" synchronized="false"
  2138. static="false" final="false" visibility="public"
  2139. deprecated="not deprecated">
  2140. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2141. <exception name="IOException" type="java.io.IOException"/>
  2142. <doc>
  2143. <![CDATA[<p>
  2144. Get the resource profiles available in the RM.
  2145. </p>
  2146. @return a Map of the resource profile names to their capabilities
  2147. @throws YARNFeatureNotEnabledException if resource-profile is disabled
  2148. @throws YarnException if any error happens inside YARN
  2149. @throws IOException in case of other errors]]>
  2150. </doc>
  2151. </method>
  2152. <method name="getResourceProfile" return="org.apache.hadoop.yarn.api.records.Resource"
  2153. abstract="true" native="false" synchronized="false"
  2154. static="false" final="false" visibility="public"
  2155. deprecated="not deprecated">
  2156. <param name="profile" type="java.lang.String"/>
  2157. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2158. <exception name="IOException" type="java.io.IOException"/>
  2159. <doc>
  2160. <![CDATA[<p>
  2161. Get the details of a specific resource profile from the RM.
  2162. </p>
  2163. @param profile the profile name
  2164. @return resource profile name with its capabilities
  2165. @throws YARNFeatureNotEnabledException if resource-profile is disabled
  2166. @throws YarnException if any error happens inside YARN
  2167. @throws IOException in case of other others]]>
  2168. </doc>
  2169. </method>
  2170. <method name="getResourceTypeInfo" return="java.util.List"
  2171. abstract="true" native="false" synchronized="false"
  2172. static="false" final="false" visibility="public"
  2173. deprecated="not deprecated">
  2174. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2175. <exception name="IOException" type="java.io.IOException"/>
  2176. <doc>
  2177. <![CDATA[<p>
  2178. Get available resource types supported by RM.
  2179. </p>
  2180. @return list of supported resource types with detailed information
  2181. @throws YarnException if any issue happens inside YARN
  2182. @throws IOException in case of other others]]>
  2183. </doc>
  2184. </method>
  2185. </class>
  2186. <!-- end class org.apache.hadoop.yarn.client.api.YarnClient -->
  2187. <!-- start class org.apache.hadoop.yarn.client.api.YarnClientApplication -->
  2188. <class name="YarnClientApplication" extends="java.lang.Object"
  2189. abstract="false"
  2190. static="false" final="false" visibility="public"
  2191. deprecated="not deprecated">
  2192. <constructor name="YarnClientApplication" type="org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"
  2193. static="false" final="false" visibility="public"
  2194. deprecated="not deprecated">
  2195. </constructor>
  2196. <method name="getNewApplicationResponse" return="org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse"
  2197. abstract="false" native="false" synchronized="false"
  2198. static="false" final="false" visibility="public"
  2199. deprecated="not deprecated">
  2200. </method>
  2201. <method name="getApplicationSubmissionContext" return="org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"
  2202. abstract="false" native="false" synchronized="false"
  2203. static="false" final="false" visibility="public"
  2204. deprecated="not deprecated">
  2205. </method>
  2206. </class>
  2207. <!-- end class org.apache.hadoop.yarn.client.api.YarnClientApplication -->
  2208. </package>
  2209. <package name="org.apache.hadoop.yarn.client.api.async">
  2210. <!-- start class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync -->
  2211. <class name="AMRMClientAsync" extends="org.apache.hadoop.service.AbstractService"
  2212. abstract="true"
  2213. static="false" final="false" visibility="public"
  2214. deprecated="not deprecated">
  2215. <constructor name="AMRMClientAsync" type="int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.AbstractCallbackHandler"
  2216. static="false" final="false" visibility="protected"
  2217. deprecated="not deprecated">
  2218. </constructor>
  2219. <constructor name="AMRMClientAsync" type="org.apache.hadoop.yarn.client.api.AMRMClient, int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.AbstractCallbackHandler"
  2220. static="false" final="false" visibility="protected"
  2221. deprecated="not deprecated">
  2222. </constructor>
  2223. <constructor name="AMRMClientAsync" type="int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
  2224. static="false" final="false" visibility="protected"
  2225. deprecated="not deprecated">
  2226. </constructor>
  2227. <constructor name="AMRMClientAsync" type="org.apache.hadoop.yarn.client.api.AMRMClient, int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
  2228. static="false" final="false" visibility="protected"
  2229. deprecated="not deprecated">
  2230. </constructor>
  2231. <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
  2232. abstract="false" native="false" synchronized="false"
  2233. static="true" final="false" visibility="public"
  2234. deprecated="not deprecated">
  2235. <param name="intervalMs" type="int"/>
  2236. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.AbstractCallbackHandler"/>
  2237. <doc>
  2238. <![CDATA[<p>Create a new instance of AMRMClientAsync.</p>
  2239. @param intervalMs heartbeat interval in milliseconds between AM and RM
  2240. @param callbackHandler callback handler that processes responses from
  2241. the <code>ResourceManager</code>]]>
  2242. </doc>
  2243. </method>
  2244. <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
  2245. abstract="false" native="false" synchronized="false"
  2246. static="true" final="false" visibility="public"
  2247. deprecated="not deprecated">
  2248. <param name="client" type="org.apache.hadoop.yarn.client.api.AMRMClient"/>
  2249. <param name="intervalMs" type="int"/>
  2250. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.AbstractCallbackHandler"/>
  2251. <doc>
  2252. <![CDATA[<p>Create a new instance of AMRMClientAsync.</p>
  2253. @param client the AMRMClient instance
  2254. @param intervalMs heartbeat interval in milliseconds between AM and RM
  2255. @param callbackHandler callback handler that processes responses from
  2256. the <code>ResourceManager</code>]]>
  2257. </doc>
  2258. </method>
  2259. <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
  2260. abstract="false" native="false" synchronized="false"
  2261. static="true" final="false" visibility="public"
  2262. deprecated="Use {@link #createAMRMClientAsync(int,
  2263. AMRMClientAsync.AbstractCallbackHandler)} instead.">
  2264. <param name="intervalMs" type="int"/>
  2265. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"/>
  2266. <doc>
  2267. <![CDATA[@deprecated Use {@link #createAMRMClientAsync(int,
  2268. AMRMClientAsync.AbstractCallbackHandler)} instead.]]>
  2269. </doc>
  2270. </method>
  2271. <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
  2272. abstract="false" native="false" synchronized="false"
  2273. static="true" final="false" visibility="public"
  2274. deprecated="Use {@link #createAMRMClientAsync(AMRMClient,
  2275. int, AMRMClientAsync.AbstractCallbackHandler)} instead.">
  2276. <param name="client" type="org.apache.hadoop.yarn.client.api.AMRMClient"/>
  2277. <param name="intervalMs" type="int"/>
  2278. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"/>
  2279. <doc>
  2280. <![CDATA[@deprecated Use {@link #createAMRMClientAsync(AMRMClient,
  2281. int, AMRMClientAsync.AbstractCallbackHandler)} instead.]]>
  2282. </doc>
  2283. </method>
  2284. <method name="setHeartbeatInterval"
  2285. abstract="false" native="false" synchronized="false"
  2286. static="false" final="false" visibility="public"
  2287. deprecated="not deprecated">
  2288. <param name="interval" type="int"/>
  2289. </method>
  2290. <method name="getMatchingRequests" return="java.util.List"
  2291. abstract="true" native="false" synchronized="false"
  2292. static="false" final="false" visibility="public"
  2293. deprecated="not deprecated">
  2294. <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
  2295. <param name="resourceName" type="java.lang.String"/>
  2296. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  2297. </method>
  2298. <method name="addSchedulingRequests"
  2299. abstract="false" native="false" synchronized="false"
  2300. static="false" final="false" visibility="public"
  2301. deprecated="not deprecated">
  2302. <param name="schedulingRequests" type="java.util.Collection"/>
  2303. <doc>
  2304. <![CDATA[Add a Collection of SchedulingRequests. The AMRMClient will ensure that
  2305. all requests in the same batch are sent in the same allocate call.
  2306. @param schedulingRequests Collection of Scheduling Requests.]]>
  2307. </doc>
  2308. </method>
  2309. <method name="getMatchingRequests" return="java.util.List"
  2310. abstract="false" native="false" synchronized="false"
  2311. static="false" final="false" visibility="public"
  2312. deprecated="not deprecated">
  2313. <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
  2314. <param name="resourceName" type="java.lang.String"/>
  2315. <param name="executionType" type="org.apache.hadoop.yarn.api.records.ExecutionType"/>
  2316. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  2317. <doc>
  2318. <![CDATA[Returns all matching ContainerRequests that match the given Priority,
  2319. ResourceName, ExecutionType and Capability.
  2320. NOTE: This matches only requests that were made by the client WITHOUT the
  2321. allocationRequestId specified.
  2322. @param priority Priority.
  2323. @param resourceName Location.
  2324. @param executionType ExecutionType.
  2325. @param capability Capability.
  2326. @return All matching ContainerRequests]]>
  2327. </doc>
  2328. </method>
  2329. <method name="getMatchingRequests" return="java.util.Collection"
  2330. abstract="false" native="false" synchronized="false"
  2331. static="false" final="false" visibility="public"
  2332. deprecated="not deprecated">
  2333. <param name="allocationRequestId" type="long"/>
  2334. <doc>
  2335. <![CDATA[Returns all matching ContainerRequests that match the given
  2336. AllocationRequestId.
  2337. NOTE: This matches only requests that were made by the client WITH the
  2338. allocationRequestId specified.
  2339. @param allocationRequestId AllocationRequestId.
  2340. @return All matching ContainerRequests]]>
  2341. </doc>
  2342. </method>
  2343. <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
  2344. abstract="true" native="false" synchronized="false"
  2345. static="false" final="false" visibility="public"
  2346. deprecated="not deprecated">
  2347. <param name="appHostName" type="java.lang.String"/>
  2348. <param name="appHostPort" type="int"/>
  2349. <param name="appTrackingUrl" type="java.lang.String"/>
  2350. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2351. <exception name="IOException" type="java.io.IOException"/>
  2352. <doc>
  2353. <![CDATA[Registers this application master with the resource manager. On successful
  2354. registration, starts the heartbeating thread.
  2355. @throws YarnException
  2356. @throws IOException]]>
  2357. </doc>
  2358. </method>
  2359. <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
  2360. abstract="false" native="false" synchronized="false"
  2361. static="false" final="false" visibility="public"
  2362. deprecated="not deprecated">
  2363. <param name="appHostName" type="java.lang.String"/>
  2364. <param name="appHostPort" type="int"/>
  2365. <param name="appTrackingUrl" type="java.lang.String"/>
  2366. <param name="placementConstraints" type="java.util.Map"/>
  2367. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2368. <exception name="IOException" type="java.io.IOException"/>
  2369. <doc>
  2370. <![CDATA[Register the application master. This must be called before any
  2371. other interaction
  2372. @param appHostName Name of the host on which master is running
  2373. @param appHostPort Port master is listening on
  2374. @param appTrackingUrl URL at which the master info can be seen
  2375. @param placementConstraints Placement Constraints mappings.
  2376. @return <code>RegisterApplicationMasterResponse</code>
  2377. @throws YarnException
  2378. @throws IOException]]>
  2379. </doc>
  2380. </method>
  2381. <method name="unregisterApplicationMaster"
  2382. abstract="true" native="false" synchronized="false"
  2383. static="false" final="false" visibility="public"
  2384. deprecated="not deprecated">
  2385. <param name="appStatus" type="org.apache.hadoop.yarn.api.records.FinalApplicationStatus"/>
  2386. <param name="appMessage" type="java.lang.String"/>
  2387. <param name="appTrackingUrl" type="java.lang.String"/>
  2388. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2389. <exception name="IOException" type="java.io.IOException"/>
  2390. <doc>
  2391. <![CDATA[Unregister the application master. This must be called in the end.
  2392. @param appStatus Success/Failure status of the master
  2393. @param appMessage Diagnostics message on failure
  2394. @param appTrackingUrl New URL to get master info
  2395. @throws YarnException
  2396. @throws IOException]]>
  2397. </doc>
  2398. </method>
  2399. <method name="addContainerRequest"
  2400. abstract="true" native="false" synchronized="false"
  2401. static="false" final="false" visibility="public"
  2402. deprecated="not deprecated">
  2403. <param name="req" type="T"/>
  2404. <doc>
  2405. <![CDATA[Request containers for resources before calling <code>allocate</code>
  2406. @param req Resource request]]>
  2407. </doc>
  2408. </method>
  2409. <method name="removeContainerRequest"
  2410. abstract="true" native="false" synchronized="false"
  2411. static="false" final="false" visibility="public"
  2412. deprecated="not deprecated">
  2413. <param name="req" type="T"/>
  2414. <doc>
  2415. <![CDATA[Remove previous container request. The previous container request may have
  2416. already been sent to the ResourceManager. So even after the remove request
  2417. the app must be prepared to receive an allocation for the previous request
  2418. even after the remove request
  2419. @param req Resource request]]>
  2420. </doc>
  2421. </method>
  2422. <method name="requestContainerResourceChange"
  2423. abstract="false" native="false" synchronized="false"
  2424. static="false" final="false" visibility="public"
  2425. deprecated="use
  2426. {@link #requestContainerUpdate(Container, UpdateContainerRequest)}">
  2427. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  2428. <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
  2429. <doc>
  2430. <![CDATA[Request container resource change before calling <code>allocate</code>.
  2431. Any previous pending resource change request of the same container will be
  2432. removed.
  2433. Application that calls this method is expected to maintain the
  2434. <code>Container</code>s that are returned from previous successful
  2435. allocations or resource changes. By passing in the existing container and a
  2436. target resource capability to this method, the application requests the
  2437. ResourceManager to change the existing resource allocation to the target
  2438. resource allocation.
  2439. @deprecated use
  2440. {@link #requestContainerUpdate(Container, UpdateContainerRequest)}
  2441. @param container The container returned from the last successful resource
  2442. allocation or resource change
  2443. @param capability The target resource capability of the container]]>
  2444. </doc>
  2445. </method>
  2446. <method name="requestContainerUpdate"
  2447. abstract="true" native="false" synchronized="false"
  2448. static="false" final="false" visibility="public"
  2449. deprecated="not deprecated">
  2450. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  2451. <param name="updateContainerRequest" type="org.apache.hadoop.yarn.api.records.UpdateContainerRequest"/>
  2452. <doc>
  2453. <![CDATA[Request a container update before calling <code>allocate</code>.
  2454. Any previous pending update request of the same container will be
  2455. removed.
  2456. @param container The container returned from the last successful resource
  2457. allocation or update
  2458. @param updateContainerRequest The <code>UpdateContainerRequest</code>.]]>
  2459. </doc>
  2460. </method>
  2461. <method name="releaseAssignedContainer"
  2462. abstract="true" native="false" synchronized="false"
  2463. static="false" final="false" visibility="public"
  2464. deprecated="not deprecated">
  2465. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2466. <doc>
  2467. <![CDATA[Release containers assigned by the Resource Manager. If the app cannot use
  2468. the container or wants to give up the container then it can release them.
  2469. The app needs to make new requests for the released resource capability if
  2470. it still needs it. eg. it released non-local resources
  2471. @param containerId]]>
  2472. </doc>
  2473. </method>
  2474. <method name="getAvailableResources" return="org.apache.hadoop.yarn.api.records.Resource"
  2475. abstract="true" native="false" synchronized="false"
  2476. static="false" final="false" visibility="public"
  2477. deprecated="not deprecated">
  2478. <doc>
  2479. <![CDATA[Get the currently available resources in the cluster.
  2480. A valid value is available after a call to allocate has been made
  2481. @return Currently available resources]]>
  2482. </doc>
  2483. </method>
  2484. <method name="getClusterNodeCount" return="int"
  2485. abstract="true" native="false" synchronized="false"
  2486. static="false" final="false" visibility="public"
  2487. deprecated="not deprecated">
  2488. <doc>
  2489. <![CDATA[Get the current number of nodes in the cluster.
  2490. A valid values is available after a call to allocate has been made
  2491. @return Current number of nodes in the cluster]]>
  2492. </doc>
  2493. </method>
  2494. <method name="registerTimelineV2Client"
  2495. abstract="false" native="false" synchronized="false"
  2496. static="false" final="false" visibility="public"
  2497. deprecated="not deprecated">
  2498. <param name="timelineClient" type="org.apache.hadoop.yarn.client.api.TimelineV2Client"/>
  2499. <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
  2500. <doc>
  2501. <![CDATA[Register TimelineClient to AMRMClient.
  2502. @param timelineClient
  2503. @throws YarnException when this method is invoked even when ATS V2 is not
  2504. configured.]]>
  2505. </doc>
  2506. </method>
  2507. <method name="getRegisteredTimelineV2Client" return="org.apache.hadoop.yarn.client.api.TimelineV2Client"
  2508. abstract="false" native="false" synchronized="false"
  2509. static="false" final="false" visibility="public"
  2510. deprecated="not deprecated">
  2511. <doc>
  2512. <![CDATA[Get registered timeline client.
  2513. @return the registered timeline client]]>
  2514. </doc>
  2515. </method>
  2516. <method name="updateBlacklist"
  2517. abstract="true" native="false" synchronized="false"
  2518. static="false" final="false" visibility="public"
  2519. deprecated="not deprecated">
  2520. <param name="blacklistAdditions" type="java.util.List"/>
  2521. <param name="blacklistRemovals" type="java.util.List"/>
  2522. <doc>
  2523. <![CDATA[Update application's blacklist with addition or removal resources.
  2524. @param blacklistAdditions list of resources which should be added to the
  2525. application blacklist
  2526. @param blacklistRemovals list of resources which should be removed from the
  2527. application blacklist]]>
  2528. </doc>
  2529. </method>
  2530. <method name="waitFor"
  2531. abstract="false" native="false" synchronized="false"
  2532. static="false" final="false" visibility="public"
  2533. deprecated="not deprecated">
  2534. <param name="check" type="java.util.function.Supplier"/>
  2535. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2536. <doc>
  2537. <![CDATA[Wait for <code>check</code> to return true for each 1000 ms.
  2538. See also {@link #waitFor(java.util.function.Supplier, int)}
  2539. and {@link #waitFor(java.util.function.Supplier, int, int)}
  2540. @param check the condition for which it should wait]]>
  2541. </doc>
  2542. </method>
  2543. <method name="waitFor"
  2544. abstract="false" native="false" synchronized="false"
  2545. static="false" final="false" visibility="public"
  2546. deprecated="not deprecated">
  2547. <param name="check" type="java.util.function.Supplier"/>
  2548. <param name="checkEveryMillis" type="int"/>
  2549. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2550. <doc>
  2551. <![CDATA[Wait for <code>check</code> to return true for each
  2552. <code>checkEveryMillis</code> ms.
  2553. See also {@link #waitFor(java.util.function.Supplier, int, int)}
  2554. @param check user defined checker
  2555. @param checkEveryMillis interval to call <code>check</code>]]>
  2556. </doc>
  2557. </method>
  2558. <method name="waitFor"
  2559. abstract="false" native="false" synchronized="false"
  2560. static="false" final="false" visibility="public"
  2561. deprecated="not deprecated">
  2562. <param name="check" type="java.util.function.Supplier"/>
  2563. <param name="checkEveryMillis" type="int"/>
  2564. <param name="logInterval" type="int"/>
  2565. <exception name="InterruptedException" type="java.lang.InterruptedException"/>
  2566. <doc>
  2567. <![CDATA[Wait for <code>check</code> to return true for each
  2568. <code>checkEveryMillis</code> ms. In the main loop, this method will log
  2569. the message "waiting in main loop" for each <code>logInterval</code> times
  2570. iteration to confirm the thread is alive.
  2571. @param check user defined checker
  2572. @param checkEveryMillis interval to call <code>check</code>
  2573. @param logInterval interval to log for each]]>
  2574. </doc>
  2575. </method>
  2576. <field name="client" type="org.apache.hadoop.yarn.client.api.AMRMClient"
  2577. transient="false" volatile="false"
  2578. static="false" final="true" visibility="protected"
  2579. deprecated="not deprecated">
  2580. </field>
  2581. <field name="handler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
  2582. transient="false" volatile="false"
  2583. static="false" final="true" visibility="protected"
  2584. deprecated="not deprecated">
  2585. </field>
  2586. <field name="heartbeatIntervalMs" type="java.util.concurrent.atomic.AtomicInteger"
  2587. transient="false" volatile="false"
  2588. static="false" final="true" visibility="protected"
  2589. deprecated="not deprecated">
  2590. </field>
  2591. <doc>
  2592. <![CDATA[<code>AMRMClientAsync</code> handles communication with the ResourceManager
  2593. and provides asynchronous updates on events such as container allocations and
  2594. completions. It contains a thread that sends periodic heartbeats to the
  2595. ResourceManager.
  2596. It should be used by implementing a CallbackHandler:
  2597. <pre>
  2598. {@code
  2599. class MyCallbackHandler extends AMRMClientAsync.AbstractCallbackHandler {
  2600. public void onContainersAllocated(List<Container> containers) {
  2601. [run tasks on the containers]
  2602. }
  2603. public void onContainersUpdated(List<Container> containers) {
  2604. [determine if resource allocation of containers have been increased in
  2605. the ResourceManager, and if so, inform the NodeManagers to increase the
  2606. resource monitor/enforcement on the containers]
  2607. }
  2608. public void onContainersCompleted(List<ContainerStatus> statuses) {
  2609. [update progress, check whether app is done]
  2610. }
  2611. public void onNodesUpdated(List<NodeReport> updated) {}
  2612. public void onReboot() {}
  2613. }
  2614. }
  2615. </pre>
  2616. The client's lifecycle should be managed similarly to the following:
  2617. <pre>
  2618. {@code
  2619. AMRMClientAsync asyncClient =
  2620. createAMRMClientAsync(appAttId, 1000, new MyCallbackhandler());
  2621. asyncClient.init(conf);
  2622. asyncClient.start();
  2623. RegisterApplicationMasterResponse response = asyncClient
  2624. .registerApplicationMaster(appMasterHostname, appMasterRpcPort,
  2625. appMasterTrackingUrl);
  2626. asyncClient.addContainerRequest(containerRequest);
  2627. [... wait for application to complete]
  2628. asyncClient.unregisterApplicationMaster(status, appMsg, trackingUrl);
  2629. asyncClient.stop();
  2630. }
  2631. </pre>]]>
  2632. </doc>
  2633. </class>
  2634. <!-- end class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync -->
  2635. <!-- start class org.apache.hadoop.yarn.client.api.async.NMClientAsync -->
  2636. <class name="NMClientAsync" extends="org.apache.hadoop.service.AbstractService"
  2637. abstract="true"
  2638. static="false" final="false" visibility="public"
  2639. deprecated="not deprecated">
  2640. <constructor name="NMClientAsync" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler"
  2641. static="false" final="false" visibility="protected"
  2642. deprecated="not deprecated">
  2643. </constructor>
  2644. <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler"
  2645. static="false" final="false" visibility="protected"
  2646. deprecated="not deprecated">
  2647. </constructor>
  2648. <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.NMClient, org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler"
  2649. static="false" final="false" visibility="protected"
  2650. deprecated="not deprecated">
  2651. </constructor>
  2652. <constructor name="NMClientAsync" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  2653. static="false" final="false" visibility="protected"
  2654. deprecated="Use {@link #NMClientAsync(AbstractCallbackHandler)}
  2655. instead.">
  2656. <doc>
  2657. <![CDATA[@deprecated Use {@link #NMClientAsync(AbstractCallbackHandler)}
  2658. instead.]]>
  2659. </doc>
  2660. </constructor>
  2661. <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  2662. static="false" final="false" visibility="protected"
  2663. deprecated="Use {@link #NMClientAsync(String, AbstractCallbackHandler)}
  2664. instead.">
  2665. <doc>
  2666. <![CDATA[@deprecated Use {@link #NMClientAsync(String, AbstractCallbackHandler)}
  2667. instead.]]>
  2668. </doc>
  2669. </constructor>
  2670. <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.NMClient, org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  2671. static="false" final="false" visibility="protected"
  2672. deprecated="not deprecated">
  2673. </constructor>
  2674. <method name="createNMClientAsync" return="org.apache.hadoop.yarn.client.api.async.NMClientAsync"
  2675. abstract="false" native="false" synchronized="false"
  2676. static="true" final="false" visibility="public"
  2677. deprecated="not deprecated">
  2678. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler"/>
  2679. </method>
  2680. <method name="createNMClientAsync" return="org.apache.hadoop.yarn.client.api.async.NMClientAsync"
  2681. abstract="false" native="false" synchronized="false"
  2682. static="true" final="false" visibility="public"
  2683. deprecated="Use {@link #createNMClientAsync(AbstractCallbackHandler)}
  2684. instead.">
  2685. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"/>
  2686. <doc>
  2687. <![CDATA[@deprecated Use {@link #createNMClientAsync(AbstractCallbackHandler)}
  2688. instead.]]>
  2689. </doc>
  2690. </method>
  2691. <method name="startContainerAsync"
  2692. abstract="true" native="false" synchronized="false"
  2693. static="false" final="false" visibility="public"
  2694. deprecated="not deprecated">
  2695. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  2696. <param name="containerLaunchContext" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
  2697. </method>
  2698. <method name="increaseContainerResourceAsync"
  2699. abstract="true" native="false" synchronized="false"
  2700. static="false" final="false" visibility="public"
  2701. deprecated="not deprecated">
  2702. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  2703. </method>
  2704. <method name="updateContainerResourceAsync"
  2705. abstract="true" native="false" synchronized="false"
  2706. static="false" final="false" visibility="public"
  2707. deprecated="not deprecated">
  2708. <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
  2709. <doc>
  2710. <![CDATA[<p>Update the resources of a container.</p>
  2711. <p>The <code>ApplicationMaster</code> or other applications that use the
  2712. client must provide the details of the container, including the Id and
  2713. the target resource encapsulated in the updated container token via
  2714. {@link Container}.
  2715. </p>
  2716. @param container the container with updated token.]]>
  2717. </doc>
  2718. </method>
  2719. <method name="reInitializeContainerAsync"
  2720. abstract="true" native="false" synchronized="false"
  2721. static="false" final="false" visibility="public"
  2722. deprecated="not deprecated">
  2723. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2724. <param name="containerLaunchContex" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
  2725. <param name="autoCommit" type="boolean"/>
  2726. <doc>
  2727. <![CDATA[<p>Re-Initialize the Container.</p>
  2728. @param containerId the Id of the container to Re-Initialize.
  2729. @param containerLaunchContex the updated ContainerLaunchContext.
  2730. @param autoCommit commit re-initialization automatically ?]]>
  2731. </doc>
  2732. </method>
  2733. <method name="restartContainerAsync"
  2734. abstract="true" native="false" synchronized="false"
  2735. static="false" final="false" visibility="public"
  2736. deprecated="not deprecated">
  2737. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2738. <doc>
  2739. <![CDATA[<p>Restart the specified container.</p>
  2740. @param containerId the Id of the container to restart.]]>
  2741. </doc>
  2742. </method>
  2743. <method name="rollbackLastReInitializationAsync"
  2744. abstract="true" native="false" synchronized="false"
  2745. static="false" final="false" visibility="public"
  2746. deprecated="not deprecated">
  2747. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2748. <doc>
  2749. <![CDATA[<p>Rollback last reInitialization of the specified container.</p>
  2750. @param containerId the Id of the container to restart.]]>
  2751. </doc>
  2752. </method>
  2753. <method name="commitLastReInitializationAsync"
  2754. abstract="true" native="false" synchronized="false"
  2755. static="false" final="false" visibility="public"
  2756. deprecated="not deprecated">
  2757. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2758. <doc>
  2759. <![CDATA[<p>Commit last reInitialization of the specified container.</p>
  2760. @param containerId the Id of the container to commit reInitialize.]]>
  2761. </doc>
  2762. </method>
  2763. <method name="stopContainerAsync"
  2764. abstract="true" native="false" synchronized="false"
  2765. static="false" final="false" visibility="public"
  2766. deprecated="not deprecated">
  2767. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2768. <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
  2769. </method>
  2770. <method name="getContainerStatusAsync"
  2771. abstract="true" native="false" synchronized="false"
  2772. static="false" final="false" visibility="public"
  2773. deprecated="not deprecated">
  2774. <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
  2775. <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
  2776. </method>
  2777. <method name="getClient" return="org.apache.hadoop.yarn.client.api.NMClient"
  2778. abstract="false" native="false" synchronized="false"
  2779. static="false" final="false" visibility="public"
  2780. deprecated="not deprecated">
  2781. </method>
  2782. <method name="setClient"
  2783. abstract="false" native="false" synchronized="false"
  2784. static="false" final="false" visibility="public"
  2785. deprecated="not deprecated">
  2786. <param name="client" type="org.apache.hadoop.yarn.client.api.NMClient"/>
  2787. </method>
  2788. <method name="getCallbackHandler" return="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  2789. abstract="false" native="false" synchronized="false"
  2790. static="false" final="false" visibility="public"
  2791. deprecated="not deprecated">
  2792. </method>
  2793. <method name="setCallbackHandler"
  2794. abstract="false" native="false" synchronized="false"
  2795. static="false" final="false" visibility="public"
  2796. deprecated="not deprecated">
  2797. <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"/>
  2798. </method>
  2799. <field name="client" type="org.apache.hadoop.yarn.client.api.NMClient"
  2800. transient="false" volatile="false"
  2801. static="false" final="false" visibility="protected"
  2802. deprecated="not deprecated">
  2803. </field>
  2804. <field name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
  2805. transient="false" volatile="false"
  2806. static="false" final="false" visibility="protected"
  2807. deprecated="not deprecated">
  2808. </field>
  2809. <doc>
  2810. <![CDATA[<code>NMClientAsync</code> handles communication with all the NodeManagers
  2811. and provides asynchronous updates on getting responses from them. It
  2812. maintains a thread pool to communicate with individual NMs where a number of
  2813. worker threads process requests to NMs by using {@link NMClientImpl}. The max
  2814. size of the thread pool is configurable through
  2815. {@link YarnConfiguration#NM_CLIENT_ASYNC_THREAD_POOL_MAX_SIZE}.
  2816. It should be used in conjunction with a CallbackHandler. For example
  2817. <pre>
  2818. {@code
  2819. class MyCallbackHandler extends NMClientAsync.AbstractCallbackHandler {
  2820. public void onContainerStarted(ContainerId containerId,
  2821. Map<String, ByteBuffer> allServiceResponse) {
  2822. [post process after the container is started, process the response]
  2823. }
  2824. public void onContainerResourceIncreased(ContainerId containerId,
  2825. Resource resource) {
  2826. [post process after the container resource is increased]
  2827. }
  2828. public void onContainerStatusReceived(ContainerId containerId,
  2829. ContainerStatus containerStatus) {
  2830. [make use of the status of the container]
  2831. }
  2832. public void onContainerStopped(ContainerId containerId) {
  2833. [post process after the container is stopped]
  2834. }
  2835. public void onStartContainerError(
  2836. ContainerId containerId, Throwable t) {
  2837. [handle the raised exception]
  2838. }
  2839. public void onGetContainerStatusError(
  2840. ContainerId containerId, Throwable t) {
  2841. [handle the raised exception]
  2842. }
  2843. public void onStopContainerError(
  2844. ContainerId containerId, Throwable t) {
  2845. [handle the raised exception]
  2846. }
  2847. }
  2848. }
  2849. </pre>
  2850. The client's life-cycle should be managed like the following:
  2851. <pre>
  2852. {@code
  2853. NMClientAsync asyncClient =
  2854. NMClientAsync.createNMClientAsync(new MyCallbackhandler());
  2855. asyncClient.init(conf);
  2856. asyncClient.start();
  2857. asyncClient.startContainer(container, containerLaunchContext);
  2858. [... wait for container being started]
  2859. asyncClient.getContainerStatus(container.getId(), container.getNodeId(),
  2860. container.getContainerToken());
  2861. [... handle the status in the callback instance]
  2862. asyncClient.stopContainer(container.getId(), container.getNodeId(),
  2863. container.getContainerToken());
  2864. [... wait for container being stopped]
  2865. asyncClient.stop();
  2866. }
  2867. </pre>]]>
  2868. </doc>
  2869. </class>
  2870. <!-- end class org.apache.hadoop.yarn.client.api.async.NMClientAsync -->
  2871. </package>
  2872. <package name="org.apache.hadoop.yarn.client.api.async.impl">
  2873. </package>
  2874. <package name="org.apache.hadoop.yarn.client.api.impl">
  2875. </package>
  2876. <package name="org.apache.hadoop.yarn.client.cli">
  2877. <!-- start class org.apache.hadoop.yarn.client.cli.LogsCLI -->
  2878. <class name="LogsCLI" extends="org.apache.hadoop.conf.Configured"
  2879. abstract="false"
  2880. static="false" final="false" visibility="public"
  2881. deprecated="not deprecated">
  2882. <implements name="org.apache.hadoop.util.Tool"/>
  2883. <constructor name="LogsCLI"
  2884. static="false" final="false" visibility="public"
  2885. deprecated="not deprecated">
  2886. </constructor>
  2887. <method name="run" return="int"
  2888. abstract="false" native="false" synchronized="false"
  2889. static="false" final="false" visibility="public"
  2890. deprecated="not deprecated">
  2891. <param name="args" type="java.lang.String[]"/>
  2892. <exception name="Exception" type="java.lang.Exception"/>
  2893. </method>
  2894. <method name="createYarnClient" return="org.apache.hadoop.yarn.client.api.YarnClient"
  2895. abstract="false" native="false" synchronized="false"
  2896. static="false" final="false" visibility="protected"
  2897. deprecated="not deprecated">
  2898. </method>
  2899. <method name="main"
  2900. abstract="false" native="false" synchronized="false"
  2901. static="true" final="false" visibility="public"
  2902. deprecated="not deprecated">
  2903. <param name="args" type="java.lang.String[]"/>
  2904. <exception name="Exception" type="java.lang.Exception"/>
  2905. </method>
  2906. <method name="getAMContainerInfoForRMWebService" return="java.util.List"
  2907. abstract="false" native="false" synchronized="false"
  2908. static="false" final="false" visibility="protected"
  2909. deprecated="not deprecated">
  2910. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2911. <param name="appId" type="java.lang.String"/>
  2912. <exception name="ClientHandlerException" type="com.sun.jersey.api.client.ClientHandlerException"/>
  2913. <exception name="UniformInterfaceException" type="com.sun.jersey.api.client.UniformInterfaceException"/>
  2914. <exception name="JSONException" type="org.codehaus.jettison.json.JSONException"/>
  2915. </method>
  2916. <method name="getMatchedContainerLogFiles" return="java.util.Set"
  2917. abstract="false" native="false" synchronized="false"
  2918. static="false" final="false" visibility="public"
  2919. deprecated="not deprecated">
  2920. <param name="request" type="org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest"/>
  2921. <param name="useRegex" type="boolean"/>
  2922. <param name="ignoreSizeLimit" type="boolean"/>
  2923. <exception name="IOException" type="java.io.IOException"/>
  2924. </method>
  2925. <method name="getResponeFromNMWebService" return="com.sun.jersey.api.client.ClientResponse"
  2926. abstract="false" native="false" synchronized="false"
  2927. static="false" final="false" visibility="public"
  2928. deprecated="not deprecated">
  2929. <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
  2930. <param name="webServiceClient" type="com.sun.jersey.api.client.Client"/>
  2931. <param name="request" type="org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest"/>
  2932. <param name="logFile" type="java.lang.String"/>
  2933. </method>
  2934. <method name="getNodeHttpAddressFromRMWebString" return="java.lang.String"
  2935. abstract="false" native="false" synchronized="false"
  2936. static="false" final="false" visibility="public"
  2937. deprecated="not deprecated">
  2938. <param name="request" type="org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest"/>
  2939. <exception name="ClientHandlerException" type="com.sun.jersey.api.client.ClientHandlerException"/>
  2940. <exception name="UniformInterfaceException" type="com.sun.jersey.api.client.UniformInterfaceException"/>
  2941. <exception name="JSONException" type="org.codehaus.jettison.json.JSONException"/>
  2942. </method>
  2943. <field name="HELP_CMD" type="java.lang.String"
  2944. transient="false" volatile="false"
  2945. static="true" final="true" visibility="public"
  2946. deprecated="not deprecated">
  2947. </field>
  2948. </class>
  2949. <!-- end class org.apache.hadoop.yarn.client.cli.LogsCLI -->
  2950. <!-- start class org.apache.hadoop.yarn.client.cli.SchedConfCLI -->
  2951. <class name="SchedConfCLI" extends="org.apache.hadoop.conf.Configured"
  2952. abstract="false"
  2953. static="false" final="false" visibility="public"
  2954. deprecated="not deprecated">
  2955. <implements name="org.apache.hadoop.util.Tool"/>
  2956. <constructor name="SchedConfCLI"
  2957. static="false" final="false" visibility="public"
  2958. deprecated="not deprecated">
  2959. </constructor>
  2960. <method name="main"
  2961. abstract="false" native="false" synchronized="false"
  2962. static="true" final="false" visibility="public"
  2963. deprecated="not deprecated">
  2964. <param name="args" type="java.lang.String[]"/>
  2965. <exception name="Exception" type="java.lang.Exception"/>
  2966. </method>
  2967. <method name="run" return="int"
  2968. abstract="false" native="false" synchronized="false"
  2969. static="false" final="false" visibility="public"
  2970. deprecated="not deprecated">
  2971. <param name="args" type="java.lang.String[]"/>
  2972. <exception name="Exception" type="java.lang.Exception"/>
  2973. </method>
  2974. <doc>
  2975. <![CDATA[CLI for modifying scheduler configuration.]]>
  2976. </doc>
  2977. </class>
  2978. <!-- end class org.apache.hadoop.yarn.client.cli.SchedConfCLI -->
  2979. </package>
  2980. <package name="org.apache.hadoop.yarn.client.util">
  2981. </package>
  2982. </api>