12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146 |
- <?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
- <!-- Generated by the JDiff Javadoc doclet -->
- <!-- (http://www.jdiff.org) -->
- <!-- on Fri Mar 30 00:31:23 UTC 2018 -->
- <api
- xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
- xsi:noNamespaceSchemaLocation='api.xsd'
- name="Apache Hadoop YARN Client 3.1.0"
- jdversion="1.0.9">
- <!-- 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 -->
- <package name="org.apache.hadoop.yarn.client">
- </package>
- <package name="org.apache.hadoop.yarn.client.api">
- <!-- start class org.apache.hadoop.yarn.client.api.AHSClient -->
- <class name="AHSClient" extends="org.apache.hadoop.service.AbstractService"
- abstract="true"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="AHSClient" type="java.lang.String"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </constructor>
- <method name="createAHSClient" return="org.apache.hadoop.yarn.client.api.AHSClient"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Create a new instance of AHSClient.]]>
- </doc>
- </method>
- <method name="getApplicationReport" return="org.apache.hadoop.yarn.api.records.ApplicationReport"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Get a report of the given Application.
- <p>
- In secure mode, <code>YARN</code> verifies access to the application, queue
- etc. before accepting the request.
- <p>
- If the user does not have <code>VIEW_APP</code> access then the following
- fields in the report will be set to stubbed values:
- <ul>
- <li>host - set to "N/A"</li>
- <li>RPC port - set to -1</li>
- <li>client token - set to "N/A"</li>
- <li>diagnostics - set to "N/A"</li>
- <li>tracking URL - set to "N/A"</li>
- <li>original tracking URL - set to "N/A"</li>
- <li>resource usage report - all values are -1</li>
- </ul>
-
- @param appId
- {@link ApplicationId} of the application that needs a report
- @return application report
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplications" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report (ApplicationReport) of all Applications in the cluster.
- </p>
-
- <p>
- If the user does not have <code>VIEW_APP</code> access for an application
- then the corresponding report will be filtered as described in
- {@link #getApplicationReport(ApplicationId)}.
- </p>
-
- @return a list of reports for all applications
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplicationAttemptReport" return="org.apache.hadoop.yarn.api.records.ApplicationAttemptReport"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of the given ApplicationAttempt.
- </p>
-
- <p>
- In secure mode, <code>YARN</code> verifies access to the application, queue
- etc. before accepting the request.
- </p>
-
- @param applicationAttemptId
- {@link ApplicationAttemptId} of the application attempt that needs
- a report
- @return application attempt report
- @throws YarnException
- @throws ApplicationAttemptNotFoundException if application attempt
- not found
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplicationAttempts" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of all (ApplicationAttempts) of Application in the cluster.
- </p>
-
- @param applicationId
- @return a list of reports for all application attempts for specified
- application
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getContainerReport" return="org.apache.hadoop.yarn.api.records.ContainerReport"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of the given Container.
- </p>
-
- <p>
- In secure mode, <code>YARN</code> verifies access to the application, queue
- etc. before accepting the request.
- </p>
-
- @param containerId
- {@link ContainerId} of the container that needs a report
- @return container report
- @throws YarnException
- @throws ContainerNotFoundException if container not found
- @throws IOException]]>
- </doc>
- </method>
- <method name="getContainers" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of all (Containers) of ApplicationAttempt in the cluster.
- </p>
-
- @param applicationAttemptId
- @return a list of reports of all containers for specified application
- attempt
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.AHSClient -->
- <!-- start class org.apache.hadoop.yarn.client.api.AMRMClient -->
- <class name="AMRMClient" extends="org.apache.hadoop.service.AbstractService"
- abstract="true"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="AMRMClient" type="java.lang.String"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <method name="createAMRMClient" return="org.apache.hadoop.yarn.client.api.AMRMClient"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Create a new instance of AMRMClient.
- For usage:
- <pre>
- {@code
- AMRMClient.<T>createAMRMClientContainerRequest()
- }</pre>
- @return the newly create AMRMClient instance.]]>
- </doc>
- </method>
- <method name="addSchedulingRequests"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="schedulingRequests" type="java.util.Collection"/>
- <doc>
- <![CDATA[Add a Collection of SchedulingRequests. The AMRMClient will ensure that
- all requests in the same batch are sent in the same allocate call.
- @param schedulingRequests Collection of Scheduling Requests.]]>
- </doc>
- </method>
- <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appHostName" type="java.lang.String"/>
- <param name="appHostPort" type="int"/>
- <param name="appTrackingUrl" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Register the application master. This must be called before any
- other interaction
- @param appHostName Name of the host on which master is running
- @param appHostPort Port master is listening on
- @param appTrackingUrl URL at which the master info can be seen
- @return <code>RegisterApplicationMasterResponse</code>
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appHostName" type="java.lang.String"/>
- <param name="appHostPort" type="int"/>
- <param name="appTrackingUrl" type="java.lang.String"/>
- <param name="placementConstraints" type="java.util.Map"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Register the application master. This must be called before any
- other interaction
- @param appHostName Name of the host on which master is running
- @param appHostPort Port master is listening on
- @param appTrackingUrl URL at which the master info can be seen
- @param placementConstraints Placement Constraints mappings.
- @return <code>RegisterApplicationMasterResponse</code>
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="allocate" return="org.apache.hadoop.yarn.api.protocolrecords.AllocateResponse"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="progressIndicator" type="float"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Request additional containers and receive new container allocations.
- Requests made via <code>addContainerRequest</code> are sent to the
- <code>ResourceManager</code>. New containers assigned to the master are
- retrieved. Status of completed containers and node health updates are also
- retrieved. This also doubles up as a heartbeat to the ResourceManager and
- must be made periodically. The call may not always return any new
- allocations of containers. App should not make concurrent allocate
- requests. May cause request loss.
-
- <p>
- Note : If the user has not removed container requests that have already
- been satisfied, then the re-register may end up sending the entire
- container requests to the RM (including matched requests). Which would mean
- the RM could end up giving it a lot of new allocated containers.
- </p>
-
- @param progressIndicator Indicates progress made by the master
- @return the response of the allocate request
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="unregisterApplicationMaster"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appStatus" type="org.apache.hadoop.yarn.api.records.FinalApplicationStatus"/>
- <param name="appMessage" type="java.lang.String"/>
- <param name="appTrackingUrl" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Unregister the application master. This must be called in the end.
- @param appStatus Success/Failure status of the master
- @param appMessage Diagnostics message on failure
- @param appTrackingUrl New URL to get master info
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="addContainerRequest"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="req" type="T"/>
- <doc>
- <![CDATA[Request containers for resources before calling <code>allocate</code>
- @param req Resource request]]>
- </doc>
- </method>
- <method name="removeContainerRequest"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="req" type="T"/>
- <doc>
- <![CDATA[Remove previous container request. The previous container request may have
- already been sent to the ResourceManager. So even after the remove request
- the app must be prepared to receive an allocation for the previous request
- even after the remove request
- @param req Resource request]]>
- </doc>
- </method>
- <method name="requestContainerResourceChange"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="use
- {@link #requestContainerUpdate(Container, UpdateContainerRequest)}">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
- <doc>
- <![CDATA[Request container resource change before calling <code>allocate</code>.
- Any previous pending resource change request of the same container will be
- removed.
- Application that calls this method is expected to maintain the
- <code>Container</code>s that are returned from previous successful
- allocations or resource changes. By passing in the existing container and a
- target resource capability to this method, the application requests the
- ResourceManager to change the existing resource allocation to the target
- resource allocation.
- @deprecated use
- {@link #requestContainerUpdate(Container, UpdateContainerRequest)}
- @param container The container returned from the last successful resource
- allocation or resource change
- @param capability The target resource capability of the container]]>
- </doc>
- </method>
- <method name="requestContainerUpdate"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <param name="updateContainerRequest" type="org.apache.hadoop.yarn.api.records.UpdateContainerRequest"/>
- <doc>
- <![CDATA[Request a container update before calling <code>allocate</code>.
- Any previous pending update request of the same container will be
- removed.
- @param container The container returned from the last successful resource
- allocation or update
- @param updateContainerRequest The <code>UpdateContainerRequest</code>.]]>
- </doc>
- </method>
- <method name="releaseAssignedContainer"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <doc>
- <![CDATA[Release containers assigned by the Resource Manager. If the app cannot use
- the container or wants to give up the container then it can release them.
- The app needs to make new requests for the released resource capability if
- it still needs it. eg. it released non-local resources
- @param containerId]]>
- </doc>
- </method>
- <method name="getAvailableResources" return="org.apache.hadoop.yarn.api.records.Resource"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Get the currently available resources in the cluster.
- A valid value is available after a call to allocate has been made
- @return Currently available resources]]>
- </doc>
- </method>
- <method name="getClusterNodeCount" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Get the current number of nodes in the cluster.
- A valid values is available after a call to allocate has been made
- @return Current number of nodes in the cluster]]>
- </doc>
- </method>
- <method name="getMatchingRequests" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
- <param name="resourceName" type="java.lang.String"/>
- <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
- <doc>
- <![CDATA[Get outstanding <code>ContainerRequest</code>s matching the given
- parameters. These ContainerRequests should have been added via
- <code>addContainerRequest</code> earlier in the lifecycle. For performance,
- the AMRMClient may return its internal collection directly without creating
- a copy. Users should not perform mutable operations on the return value.
- Each collection in the list contains requests with identical
- <code>Resource</code> size that fit in the given capability. In a
- collection, requests will be returned in the same order as they were added.
- NOTE: This API only matches Container requests that were created by the
- client WITHOUT the allocationRequestId being set.
- @return Collection of request matching the parameters]]>
- </doc>
- </method>
- <method name="getMatchingRequests" return="java.util.List"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
- <param name="resourceName" type="java.lang.String"/>
- <param name="executionType" type="org.apache.hadoop.yarn.api.records.ExecutionType"/>
- <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
- <doc>
- <![CDATA[Get outstanding <code>ContainerRequest</code>s matching the given
- parameters. These ContainerRequests should have been added via
- <code>addContainerRequest</code> earlier in the lifecycle. For performance,
- the AMRMClient may return its internal collection directly without creating
- a copy. Users should not perform mutable operations on the return value.
- Each collection in the list contains requests with identical
- <code>Resource</code> size that fit in the given capability. In a
- collection, requests will be returned in the same order as they were added.
- specify an <code>ExecutionType</code>.
- NOTE: This API only matches Container requests that were created by the
- client WITHOUT the allocationRequestId being set.
- @param priority Priority
- @param resourceName Location
- @param executionType ExecutionType
- @param capability Capability
- @return Collection of request matching the parameters]]>
- </doc>
- </method>
- <method name="getMatchingRequests" return="java.util.List"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
- <param name="resourceName" type="java.lang.String"/>
- <param name="executionType" type="org.apache.hadoop.yarn.api.records.ExecutionType"/>
- <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
- <param name="profile" type="java.lang.String"/>
- </method>
- <method name="getMatchingRequests" return="java.util.Collection"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="allocationRequestId" type="long"/>
- <doc>
- <![CDATA[Get outstanding <code>ContainerRequest</code>s matching the given
- allocationRequestId. These ContainerRequests should have been added via
- <code>addContainerRequest</code> earlier in the lifecycle. For performance,
- the AMRMClient may return its internal collection directly without creating
- a copy. Users should not perform mutable operations on the return value.
- NOTE: This API only matches Container requests that were created by the
- client WITH the allocationRequestId being set to a non-default value.
- @param allocationRequestId Allocation Request Id
- @return Collection of request matching the parameters]]>
- </doc>
- </method>
- <method name="updateBlacklist"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="blacklistAdditions" type="java.util.List"/>
- <param name="blacklistRemovals" type="java.util.List"/>
- <doc>
- <![CDATA[Update application's blacklist with addition or removal resources.
-
- @param blacklistAdditions list of resources which should be added to the
- application blacklist
- @param blacklistRemovals list of resources which should be removed from the
- application blacklist]]>
- </doc>
- </method>
- <method name="setNMTokenCache"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="nmTokenCache" type="org.apache.hadoop.yarn.client.api.NMTokenCache"/>
- <doc>
- <![CDATA[Set the NM token cache for the <code>AMRMClient</code>. This cache must
- be shared with the {@link NMClient} used to manage containers for the
- <code>AMRMClient</code>
- <p>
- If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
- singleton instance will be used.
- @param nmTokenCache the NM token cache to use.]]>
- </doc>
- </method>
- <method name="getNMTokenCache" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Get the NM token cache of the <code>AMRMClient</code>. This cache must be
- shared with the {@link NMClient} used to manage containers for the
- <code>AMRMClient</code>.
- <p>
- If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
- singleton instance will be used.
- @return the NM token cache.]]>
- </doc>
- </method>
- <method name="registerTimelineV2Client"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="client" type="org.apache.hadoop.yarn.client.api.TimelineV2Client"/>
- <doc>
- <![CDATA[Register TimelineV2Client to AMRMClient. Writer's address for the timeline
- V2 client will be updated dynamically if registered.
- @param client the timeline v2 client to register]]>
- </doc>
- </method>
- <method name="getRegisteredTimelineV2Client" return="org.apache.hadoop.yarn.client.api.TimelineV2Client"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Get registered timeline v2 client.
- @return the registered timeline v2 client]]>
- </doc>
- </method>
- <method name="waitFor"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="check" type="java.util.function.Supplier"/>
- <exception name="InterruptedException" type="java.lang.InterruptedException"/>
- <doc>
- <![CDATA[Wait for <code>check</code> to return true for each 1000 ms.
- See also {@link #waitFor(java.util.function.Supplier, int)}
- and {@link #waitFor(java.util.function.Supplier, int, int)}
- @param check the condition for which it should wait]]>
- </doc>
- </method>
- <method name="waitFor"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="check" type="java.util.function.Supplier"/>
- <param name="checkEveryMillis" type="int"/>
- <exception name="InterruptedException" type="java.lang.InterruptedException"/>
- <doc>
- <![CDATA[Wait for <code>check</code> to return true for each
- <code>checkEveryMillis</code> ms.
- See also {@link #waitFor(java.util.function.Supplier, int, int)}
- @param check user defined checker
- @param checkEveryMillis interval to call <code>check</code>]]>
- </doc>
- </method>
- <method name="waitFor"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="check" type="java.util.function.Supplier"/>
- <param name="checkEveryMillis" type="int"/>
- <param name="logInterval" type="int"/>
- <exception name="InterruptedException" type="java.lang.InterruptedException"/>
- <doc>
- <![CDATA[Wait for <code>check</code> to return true for each
- <code>checkEveryMillis</code> ms. In the main loop, this method will log
- the message "waiting in main loop" for each <code>logInterval</code> times
- iteration to confirm the thread is alive.
- @param check user defined checker
- @param checkEveryMillis interval to call <code>check</code>
- @param logInterval interval to log for each]]>
- </doc>
- </method>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.AMRMClient -->
- <!-- start class org.apache.hadoop.yarn.client.api.AppAdminClient -->
- <class name="AppAdminClient" extends="org.apache.hadoop.service.CompositeService"
- abstract="true"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="AppAdminClient"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <method name="createAppAdminClient" return="org.apache.hadoop.yarn.client.api.AppAdminClient"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appType" type="java.lang.String"/>
- <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
- <doc>
- <![CDATA[<p>
- Create a new instance of AppAdminClient.
- </p>
- @param appType application type
- @param conf configuration
- @return app admin client]]>
- </doc>
- </method>
- <method name="actionLaunch" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="fileName" type="java.lang.String"/>
- <param name="appName" type="java.lang.String"/>
- <param name="lifetime" type="java.lang.Long"/>
- <param name="queue" type="java.lang.String"/>
- <exception name="IOException" type="java.io.IOException"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- Launch a new YARN application.
- </p>
- @param fileName specification of application
- @param appName name of the application
- @param lifetime lifetime of the application
- @param queue queue of the application
- @return exit code
- @throws IOException IOException
- @throws YarnException exception in client or server]]>
- </doc>
- </method>
- <method name="actionStop" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appName" type="java.lang.String"/>
- <exception name="IOException" type="java.io.IOException"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- Stop a YARN application (attempt to stop gracefully before killing the
- application). In the case of a long-running service, the service may be
- restarted later.
- </p>
- @param appName the name of the application
- @return exit code
- @throws IOException IOException
- @throws YarnException exception in client or server]]>
- </doc>
- </method>
- <method name="actionStart" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appName" type="java.lang.String"/>
- <exception name="IOException" type="java.io.IOException"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- Start a YARN application from a previously saved specification. In the
- case of a long-running service, the service must have been previously
- launched/started and then stopped, or previously saved but not started.
- </p>
- @param appName the name of the application
- @return exit code
- @throws IOException IOException
- @throws YarnException exception in client or server]]>
- </doc>
- </method>
- <method name="actionSave" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="fileName" type="java.lang.String"/>
- <param name="appName" type="java.lang.String"/>
- <param name="lifetime" type="java.lang.Long"/>
- <param name="queue" type="java.lang.String"/>
- <exception name="IOException" type="java.io.IOException"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- Save the specification for a YARN application / long-running service.
- The application may be started later.
- </p>
- @param fileName specification of application to save
- @param appName name of the application
- @param lifetime lifetime of the application
- @param queue queue of the application
- @return exit code
- @throws IOException IOException
- @throws YarnException exception in client or server]]>
- </doc>
- </method>
- <method name="actionDestroy" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appName" type="java.lang.String"/>
- <exception name="IOException" type="java.io.IOException"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- Remove the specification and all application data for a YARN application.
- The application cannot be running.
- </p>
- @param appName the name of the application
- @return exit code
- @throws IOException IOException
- @throws YarnException exception in client or server]]>
- </doc>
- </method>
- <method name="actionFlex" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appName" type="java.lang.String"/>
- <param name="componentCounts" type="java.util.Map"/>
- <exception name="IOException" type="java.io.IOException"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- Change the number of running containers for a component of a YARN
- application / long-running service.
- </p>
- @param appName the name of the application
- @param componentCounts map of component name to new component count or
- amount to change existing component count (e.g.
- 5, +5, -5)
- @return exit code
- @throws IOException IOException
- @throws YarnException exception in client or server]]>
- </doc>
- </method>
- <method name="enableFastLaunch" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="destinationFolder" type="java.lang.String"/>
- <exception name="IOException" type="java.io.IOException"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- Upload AM dependencies to HDFS. This makes future application launches
- faster since the dependencies do not have to be uploaded on each launch.
- </p>
- @param destinationFolder
- an optional HDFS folder where dependency tarball will be uploaded
- @return exit code
- @throws IOException
- IOException
- @throws YarnException
- exception in client or server]]>
- </doc>
- </method>
- <method name="getStatusString" return="java.lang.String"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appIdOrName" type="java.lang.String"/>
- <exception name="IOException" type="java.io.IOException"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- Get detailed app specific status string for a YARN application.
- </p>
- @param appIdOrName appId or appName
- @return status string
- @throws IOException IOException
- @throws YarnException exception in client or server]]>
- </doc>
- </method>
- <field name="YARN_APP_ADMIN_CLIENT_PREFIX" type="java.lang.String"
- transient="false" volatile="false"
- static="true" final="true" visibility="public"
- deprecated="not deprecated">
- </field>
- <field name="DEFAULT_TYPE" type="java.lang.String"
- transient="false" volatile="false"
- static="true" final="true" visibility="public"
- deprecated="not deprecated">
- </field>
- <field name="DEFAULT_CLASS_NAME" type="java.lang.String"
- transient="false" volatile="false"
- static="true" final="true" visibility="public"
- deprecated="not deprecated">
- </field>
- <field name="UNIT_TEST_TYPE" type="java.lang.String"
- transient="false" volatile="false"
- static="true" final="true" visibility="public"
- deprecated="not deprecated">
- </field>
- <field name="UNIT_TEST_CLASS_NAME" type="java.lang.String"
- transient="false" volatile="false"
- static="true" final="true" visibility="public"
- deprecated="not deprecated">
- </field>
- <doc>
- <![CDATA[Client for managing applications.]]>
- </doc>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.AppAdminClient -->
- <!-- start class org.apache.hadoop.yarn.client.api.NMClient -->
- <class name="NMClient" extends="org.apache.hadoop.service.AbstractService"
- abstract="true"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="NMClient" type="java.lang.String"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <method name="createNMClient" return="org.apache.hadoop.yarn.client.api.NMClient"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Create a new instance of NMClient.]]>
- </doc>
- </method>
- <method name="createNMClient" return="org.apache.hadoop.yarn.client.api.NMClient"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="name" type="java.lang.String"/>
- <doc>
- <![CDATA[Create a new instance of NMClient.]]>
- </doc>
- </method>
- <method name="startContainer" return="java.util.Map"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <param name="containerLaunchContext" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Start an allocated container.</p>
- <p>The <code>ApplicationMaster</code> or other applications that use the
- client must provide the details of the allocated container, including the
- Id, the assigned node's Id and the token via {@link Container}. In
- addition, the AM needs to provide the {@link ContainerLaunchContext} as
- well.</p>
- @param container the allocated container
- @param containerLaunchContext the context information needed by the
- <code>NodeManager</code> to launch the
- container
- @return a map between the auxiliary service names and their outputs
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="increaseContainerResource"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Increase the resource of a container.</p>
- <p>The <code>ApplicationMaster</code> or other applications that use the
- client must provide the details of the container, including the Id and
- the target resource encapsulated in the updated container token via
- {@link Container}.
- </p>
- @param container the container with updated token.
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="updateContainerResource"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Update the resources of a container.</p>
- <p>The <code>ApplicationMaster</code> or other applications that use the
- client must provide the details of the container, including the Id and
- the target resource encapsulated in the updated container token via
- {@link Container}.
- </p>
- @param container the container with updated token.
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="stopContainer"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Stop an started container.</p>
- @param containerId the Id of the started container
- @param nodeId the Id of the <code>NodeManager</code>
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="getContainerStatus" return="org.apache.hadoop.yarn.api.records.ContainerStatus"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Query the status of a container.</p>
- @param containerId the Id of the started container
- @param nodeId the Id of the <code>NodeManager</code>
-
- @return the status of a container.
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="reInitializeContainer"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <param name="containerLaunchContex" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
- <param name="autoCommit" type="boolean"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Re-Initialize the Container.</p>
- @param containerId the Id of the container to Re-Initialize.
- @param containerLaunchContex the updated ContainerLaunchContext.
- @param autoCommit commit re-initialization automatically ?
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="restartContainer"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Restart the specified container.</p>
- @param containerId the Id of the container to restart.
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="rollbackLastReInitialization"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Rollback last reInitialization of the specified container.</p>
- @param containerId the Id of the container to restart.
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="commitLastReInitialization"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>Commit last reInitialization of the specified container.</p>
- @param containerId the Id of the container to commit reInitialize.
- @throws YarnException YarnException.
- @throws IOException IOException.]]>
- </doc>
- </method>
- <method name="cleanupRunningContainersOnStop"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="enabled" type="boolean"/>
- <doc>
- <![CDATA[<p>Set whether the containers that are started by this client, and are
- still running should be stopped when the client stops. By default, the
- feature should be enabled.</p> However, containers will be stopped only
- when service is stopped. i.e. after {@link NMClient#stop()}.
- @param enabled whether the feature is enabled or not]]>
- </doc>
- </method>
- <method name="setNMTokenCache"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="nmTokenCache" type="org.apache.hadoop.yarn.client.api.NMTokenCache"/>
- <doc>
- <![CDATA[Set the NM Token cache of the <code>NMClient</code>. This cache must be
- shared with the {@link AMRMClient} that requested the containers managed
- by this <code>NMClient</code>
- <p>
- If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
- singleton instance will be used.
- @param nmTokenCache the NM token cache to use.]]>
- </doc>
- </method>
- <method name="getNMTokenCache" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Get the NM token cache of the <code>NMClient</code>. This cache must be
- shared with the {@link AMRMClient} that requested the containers managed
- by this <code>NMClient</code>
- <p>
- If a NM token cache is not set, the {@link NMTokenCache#getSingleton()}
- singleton instance will be used.
- @return the NM token cache]]>
- </doc>
- </method>
- <method name="getNodeIdOfStartedContainer" return="org.apache.hadoop.yarn.api.records.NodeId"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <doc>
- <![CDATA[Get the NodeId of the node on which container is running. It returns
- null if the container if container is not found or if it is not running.
- @param containerId Container Id of the container.
- @return NodeId of the container on which it is running.]]>
- </doc>
- </method>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.NMClient -->
- <!-- start class org.apache.hadoop.yarn.client.api.NMTokenCache -->
- <class name="NMTokenCache" extends="java.lang.Object"
- abstract="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="NMTokenCache"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Creates a NM token cache instance.]]>
- </doc>
- </constructor>
- <method name="getSingleton" return="org.apache.hadoop.yarn.client.api.NMTokenCache"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Returns the singleton NM token cache.
- @return the singleton NM token cache.]]>
- </doc>
- </method>
- <method name="getNMToken" return="org.apache.hadoop.yarn.api.records.Token"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="nodeAddr" type="java.lang.String"/>
- <doc>
- <![CDATA[Returns NMToken, null if absent. Only the singleton obtained from
- {@link #getSingleton()} is looked at for the tokens. If you are using your
- own NMTokenCache that is different from the singleton, use
- {@link #getToken(String) }
-
- @param nodeAddr
- @return {@link Token} NMToken required for communicating with node manager]]>
- </doc>
- </method>
- <method name="setNMToken"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="nodeAddr" type="java.lang.String"/>
- <param name="token" type="org.apache.hadoop.yarn.api.records.Token"/>
- <doc>
- <![CDATA[Sets the NMToken for node address only in the singleton obtained from
- {@link #getSingleton()}. If you are using your own NMTokenCache that is
- different from the singleton, use {@link #setToken(String, Token) }
-
- @param nodeAddr
- node address (host:port)
- @param token
- NMToken]]>
- </doc>
- </method>
- <method name="getToken" return="org.apache.hadoop.yarn.api.records.Token"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="nodeAddr" type="java.lang.String"/>
- <doc>
- <![CDATA[Returns NMToken, null if absent
- @param nodeAddr
- @return {@link Token} NMToken required for communicating with node
- manager]]>
- </doc>
- </method>
- <method name="setToken"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="nodeAddr" type="java.lang.String"/>
- <param name="token" type="org.apache.hadoop.yarn.api.records.Token"/>
- <doc>
- <![CDATA[Sets the NMToken for node address
- @param nodeAddr node address (host:port)
- @param token NMToken]]>
- </doc>
- </method>
- <doc>
- <![CDATA[NMTokenCache manages NMTokens required for an Application Master
- communicating with individual NodeManagers.
- <p>
- By default YARN client libraries {@link AMRMClient} and {@link NMClient} use
- {@link #getSingleton()} instance of the cache.
- <ul>
- <li>
- Using the singleton instance of the cache is appropriate when running a
- single ApplicationMaster in the same JVM.
- </li>
- <li>
- When using the singleton, users don't need to do anything special,
- {@link AMRMClient} and {@link NMClient} are already set up to use the
- default singleton {@link NMTokenCache}
- </li>
- </ul>
- If running multiple Application Masters in the same JVM, a different cache
- instance should be used for each Application Master.
- <ul>
- <li>
- If using the {@link AMRMClient} and the {@link NMClient}, setting up
- and using an instance cache is as follows:
- <pre>
- NMTokenCache nmTokenCache = new NMTokenCache();
- AMRMClient rmClient = AMRMClient.createAMRMClient();
- NMClient nmClient = NMClient.createNMClient();
- nmClient.setNMTokenCache(nmTokenCache);
- ...
- </pre>
- </li>
- <li>
- If using the {@link AMRMClientAsync} and the {@link NMClientAsync},
- setting up and using an instance cache is as follows:
- <pre>
- NMTokenCache nmTokenCache = new NMTokenCache();
- AMRMClient rmClient = AMRMClient.createAMRMClient();
- NMClient nmClient = NMClient.createNMClient();
- nmClient.setNMTokenCache(nmTokenCache);
- AMRMClientAsync rmClientAsync = new AMRMClientAsync(rmClient, 1000, [AMRM_CALLBACK]);
- NMClientAsync nmClientAsync = new NMClientAsync("nmClient", nmClient, [NM_CALLBACK]);
- ...
- </pre>
- </li>
- <li>
- If using {@link ApplicationMasterProtocol} and
- {@link ContainerManagementProtocol} directly, setting up and using an
- instance cache is as follows:
- <pre>
- NMTokenCache nmTokenCache = new NMTokenCache();
- ...
- ApplicationMasterProtocol amPro = ClientRMProxy.createRMProxy(conf, ApplicationMasterProtocol.class);
- ...
- AllocateRequest allocateRequest = ...
- ...
- AllocateResponse allocateResponse = rmClient.allocate(allocateRequest);
- for (NMToken token : allocateResponse.getNMTokens()) {
- nmTokenCache.setToken(token.getNodeId().toString(), token.getToken());
- }
- ...
- ContainerManagementProtocolProxy nmPro = ContainerManagementProtocolProxy(conf, nmTokenCache);
- ...
- nmPro.startContainer(container, containerContext);
- ...
- </pre>
- </li>
- </ul>
- It is also possible to mix the usage of a client ({@code AMRMClient} or
- {@code NMClient}, or the async versions of them) with a protocol proxy
- ({@code ContainerManagementProtocolProxy} or
- {@code ApplicationMasterProtocol}).]]>
- </doc>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.NMTokenCache -->
- <!-- start class org.apache.hadoop.yarn.client.api.SharedCacheClient -->
- <class name="SharedCacheClient" extends="org.apache.hadoop.service.AbstractService"
- abstract="true"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="SharedCacheClient" type="java.lang.String"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </constructor>
- <method name="createSharedCacheClient" return="org.apache.hadoop.yarn.client.api.SharedCacheClient"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- </method>
- <method name="use" return="org.apache.hadoop.yarn.api.records.URL"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <param name="resourceKey" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- The method to claim a resource with the <code>SharedCacheManager.</code>
- The client uses a checksum to identify the resource and an
- {@link ApplicationId} to identify which application will be using the
- resource.
- </p>
- <p>
- The <code>SharedCacheManager</code> responds with whether or not the
- resource exists in the cache. If the resource exists, a <code>URL</code> to
- the resource in the shared cache is returned. If the resource does not
- exist, null is returned instead.
- </p>
- <p>
- Once a URL has been returned for a resource, that URL is safe to use for
- the lifetime of the application that corresponds to the provided
- ApplicationId.
- </p>
- @param applicationId ApplicationId of the application using the resource
- @param resourceKey the key (i.e. checksum) that identifies the resource
- @return URL to the resource, or null if it does not exist]]>
- </doc>
- </method>
- <method name="release"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <param name="resourceKey" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[<p>
- The method to release a resource with the <code>SharedCacheManager.</code>
- This method is called once an application is no longer using a claimed
- resource in the shared cache. The client uses a checksum to identify the
- resource and an {@link ApplicationId} to identify which application is
- releasing the resource.
- </p>
-
- <p>
- Note: This method is an optimization and the client is not required to call
- it for correctness.
- </p>
-
- @param applicationId ApplicationId of the application releasing the
- resource
- @param resourceKey the key (i.e. checksum) that identifies the resource]]>
- </doc>
- </method>
- <method name="getFileChecksum" return="java.lang.String"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="sourceFile" type="org.apache.hadoop.fs.Path"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[A convenience method to calculate the checksum of a specified file.
-
- @param sourceFile A path to the input file
- @return A hex string containing the checksum digest
- @throws IOException]]>
- </doc>
- </method>
- <doc>
- <![CDATA[This is the client for YARN's shared cache.]]>
- </doc>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.SharedCacheClient -->
- <!-- start class org.apache.hadoop.yarn.client.api.YarnClient -->
- <class name="YarnClient" extends="org.apache.hadoop.service.AbstractService"
- abstract="true"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="YarnClient" type="java.lang.String"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <method name="createYarnClient" return="org.apache.hadoop.yarn.client.api.YarnClient"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Create a new instance of YarnClient.]]>
- </doc>
- </method>
- <method name="createApplication" return="org.apache.hadoop.yarn.client.api.YarnClientApplication"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Obtain a {@link YarnClientApplication} for a new application,
- which in turn contains the {@link ApplicationSubmissionContext} and
- {@link org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse}
- objects.
- </p>
- @return {@link YarnClientApplication} built for a new application
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="submitApplication" return="org.apache.hadoop.yarn.api.records.ApplicationId"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appContext" type="org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Submit a new application to <code>YARN.</code> It is a blocking call - it
- will not return {@link ApplicationId} until the submitted application is
- submitted successfully and accepted by the ResourceManager.
- </p>
-
- <p>
- Users should provide an {@link ApplicationId} as part of the parameter
- {@link ApplicationSubmissionContext} when submitting a new application,
- otherwise it will throw the {@link ApplicationIdNotProvidedException}.
- </p>
- <p>This internally calls {@link ApplicationClientProtocol#submitApplication
- (SubmitApplicationRequest)}, and after that, it internally invokes
- {@link ApplicationClientProtocol#getApplicationReport
- (GetApplicationReportRequest)} and waits till it can make sure that the
- application gets properly submitted. If RM fails over or RM restart
- happens before ResourceManager saves the application's state,
- {@link ApplicationClientProtocol
- #getApplicationReport(GetApplicationReportRequest)} will throw
- the {@link ApplicationNotFoundException}. This API automatically resubmits
- the application with the same {@link ApplicationSubmissionContext} when it
- catches the {@link ApplicationNotFoundException}</p>
- @param appContext
- {@link ApplicationSubmissionContext} containing all the details
- needed to submit a new application
- @return {@link ApplicationId} of the accepted application
- @throws YarnException
- @throws IOException
- @see #createApplication()]]>
- </doc>
- </method>
- <method name="failApplicationAttempt"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Fail an application attempt identified by given ID.
- </p>
- @param applicationAttemptId
- {@link ApplicationAttemptId} of the attempt to fail.
- @throws YarnException
- in case of errors or if YARN rejects the request due to
- access-control restrictions.
- @throws IOException
- @see #getQueueAclsInfo()]]>
- </doc>
- </method>
- <method name="killApplication"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Kill an application identified by given ID.
- </p>
-
- @param applicationId
- {@link ApplicationId} of the application that needs to be killed
- @throws YarnException
- in case of errors or if YARN rejects the request due to
- access-control restrictions.
- @throws IOException
- @see #getQueueAclsInfo()]]>
- </doc>
- </method>
- <method name="killApplication"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <param name="diagnostics" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Kill an application identified by given ID.
- </p>
- @param applicationId {@link ApplicationId} of the application that needs to
- be killed
- @param diagnostics for killing an application.
- @throws YarnException in case of errors or if YARN rejects the request due
- to access-control restrictions.
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplicationReport" return="org.apache.hadoop.yarn.api.records.ApplicationReport"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of the given Application.
- </p>
-
- <p>
- In secure mode, <code>YARN</code> verifies access to the application, queue
- etc. before accepting the request.
- </p>
-
- <p>
- If the user does not have <code>VIEW_APP</code> access then the following
- fields in the report will be set to stubbed values:
- <ul>
- <li>host - set to "N/A"</li>
- <li>RPC port - set to -1</li>
- <li>client token - set to "N/A"</li>
- <li>diagnostics - set to "N/A"</li>
- <li>tracking URL - set to "N/A"</li>
- <li>original tracking URL - set to "N/A"</li>
- <li>resource usage report - all values are -1</li>
- </ul>
-
- @param appId
- {@link ApplicationId} of the application that needs a report
- @return application report
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getAMRMToken" return="org.apache.hadoop.security.token.Token"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Get the AMRM token of the application.
- <p>
- The AMRM token is required for AM to RM scheduling operations. For
- managed Application Masters YARN takes care of injecting it. For unmanaged
- Applications Masters, the token must be obtained via this method and set
- in the {@link org.apache.hadoop.security.UserGroupInformation} of the
- current user.
- <p>
- The AMRM token will be returned only if all the following conditions are
- met:
- <ul>
- <li>the requester is the owner of the ApplicationMaster</li>
- <li>the application master is an unmanaged ApplicationMaster</li>
- <li>the application master is in ACCEPTED state</li>
- </ul>
- Else this method returns NULL.
- @param appId {@link ApplicationId} of the application to get the AMRM token
- @return the AMRM token if available
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplications" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report (ApplicationReport) of all Applications in the cluster.
- </p>
- <p>
- If the user does not have <code>VIEW_APP</code> access for an application
- then the corresponding report will be filtered as described in
- {@link #getApplicationReport(ApplicationId)}.
- </p>
- @return a list of reports of all running applications
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplications" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationTypes" type="java.util.Set"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report (ApplicationReport) of Applications
- matching the given application types in the cluster.
- </p>
- <p>
- If the user does not have <code>VIEW_APP</code> access for an application
- then the corresponding report will be filtered as described in
- {@link #getApplicationReport(ApplicationId)}.
- </p>
- @param applicationTypes set of application types you are interested in
- @return a list of reports of applications
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplications" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationStates" type="java.util.EnumSet"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report (ApplicationReport) of Applications matching the given
- application states in the cluster.
- </p>
- <p>
- If the user does not have <code>VIEW_APP</code> access for an application
- then the corresponding report will be filtered as described in
- {@link #getApplicationReport(ApplicationId)}.
- </p>
- @param applicationStates set of application states you are interested in
- @return a list of reports of applications
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplications" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationTypes" type="java.util.Set"/>
- <param name="applicationStates" type="java.util.EnumSet"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report (ApplicationReport) of Applications matching the given
- application types and application states in the cluster.
- </p>
- <p>
- If the user does not have <code>VIEW_APP</code> access for an application
- then the corresponding report will be filtered as described in
- {@link #getApplicationReport(ApplicationId)}.
- </p>
- @param applicationTypes set of application types you are interested in
- @param applicationStates set of application states you are interested in
- @return a list of reports of applications
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplications" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationTypes" type="java.util.Set"/>
- <param name="applicationStates" type="java.util.EnumSet"/>
- <param name="applicationTags" type="java.util.Set"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report (ApplicationReport) of Applications matching the given
- application types, application states and application tags in the cluster.
- </p>
- <p>
- If the user does not have <code>VIEW_APP</code> access for an application
- then the corresponding report will be filtered as described in
- {@link #getApplicationReport(ApplicationId)}.
- </p>
- @param applicationTypes set of application types you are interested in
- @param applicationStates set of application states you are interested in
- @param applicationTags set of application tags you are interested in
- @return a list of reports of applications
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplications" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="queues" type="java.util.Set"/>
- <param name="users" type="java.util.Set"/>
- <param name="applicationTypes" type="java.util.Set"/>
- <param name="applicationStates" type="java.util.EnumSet"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report (ApplicationReport) of Applications matching the given users,
- queues, application types and application states in the cluster. If any of
- the params is set to null, it is not used when filtering.
- </p>
- <p>
- If the user does not have <code>VIEW_APP</code> access for an application
- then the corresponding report will be filtered as described in
- {@link #getApplicationReport(ApplicationId)}.
- </p>
- @param queues set of queues you are interested in
- @param users set of users you are interested in
- @param applicationTypes set of application types you are interested in
- @param applicationStates set of application states you are interested in
- @return a list of reports of applications
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplications" return="java.util.List"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.GetApplicationsRequest"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a list of ApplicationReports that match the given
- {@link GetApplicationsRequest}.
- </p>
- <p>
- If the user does not have <code>VIEW_APP</code> access for an application
- then the corresponding report will be filtered as described in
- {@link #getApplicationReport(ApplicationId)}.
- </p>
- @param request the request object to get the list of applications.
- @return The list of ApplicationReports that match the request
- @throws YarnException Exception specific to YARN.
- @throws IOException Exception mostly related to connection errors.]]>
- </doc>
- </method>
- <method name="getYarnClusterMetrics" return="org.apache.hadoop.yarn.api.records.YarnClusterMetrics"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get metrics ({@link YarnClusterMetrics}) about the cluster.
- </p>
-
- @return cluster metrics
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getNodeReports" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="states" type="org.apache.hadoop.yarn.api.records.NodeState[]"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of nodes ({@link NodeReport}) in the cluster.
- </p>
-
- @param states The {@link NodeState}s to filter on. If no filter states are
- given, nodes in all states will be returned.
- @return A list of node reports
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getRMDelegationToken" return="org.apache.hadoop.yarn.api.records.Token"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="renewer" type="org.apache.hadoop.io.Text"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a delegation token so as to be able to talk to YARN using those tokens.
-
- @param renewer
- Address of the renewer who can renew these tokens when needed by
- securely talking to YARN.
- @return a delegation token ({@link Token}) that can be used to
- talk to YARN
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getQueueInfo" return="org.apache.hadoop.yarn.api.records.QueueInfo"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="queueName" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get information ({@link QueueInfo}) about a given <em>queue</em>.
- </p>
-
- @param queueName
- Name of the queue whose information is needed
- @return queue information
- @throws YarnException
- in case of errors or if YARN rejects the request due to
- access-control restrictions.
- @throws IOException]]>
- </doc>
- </method>
- <method name="getAllQueues" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get information ({@link QueueInfo}) about all queues, recursively if there
- is a hierarchy
- </p>
-
- @return a list of queue-information for all queues
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getRootQueueInfos" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get information ({@link QueueInfo}) about top level queues.
- </p>
-
- @return a list of queue-information for all the top-level queues
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getChildQueueInfos" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="parent" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get information ({@link QueueInfo}) about all the immediate children queues
- of the given queue
- </p>
-
- @param parent
- Name of the queue whose child-queues' information is needed
- @return a list of queue-information for all queues who are direct children
- of the given parent queue.
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getQueueAclsInfo" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get information about <em>acls</em> for <em>current user</em> on all the
- existing queues.
- </p>
-
- @return a list of queue acls ({@link QueueUserACLInfo}) for
- <em>current user</em>
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplicationAttemptReport" return="org.apache.hadoop.yarn.api.records.ApplicationAttemptReport"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of the given ApplicationAttempt.
- </p>
-
- <p>
- In secure mode, <code>YARN</code> verifies access to the application, queue
- etc. before accepting the request.
- </p>
-
- @param applicationAttemptId
- {@link ApplicationAttemptId} of the application attempt that needs
- a report
- @return application attempt report
- @throws YarnException
- @throws ApplicationAttemptNotFoundException if application attempt
- not found
- @throws IOException]]>
- </doc>
- </method>
- <method name="getApplicationAttempts" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of all (ApplicationAttempts) of Application in the cluster.
- </p>
-
- @param applicationId application id of the app
- @return a list of reports for all application attempts for specified
- application.
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getContainerReport" return="org.apache.hadoop.yarn.api.records.ContainerReport"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of the given Container.
- </p>
-
- <p>
- In secure mode, <code>YARN</code> verifies access to the application, queue
- etc. before accepting the request.
- </p>
-
- @param containerId
- {@link ContainerId} of the container that needs a report
- @return container report
- @throws YarnException
- @throws ContainerNotFoundException if container not found.
- @throws IOException]]>
- </doc>
- </method>
- <method name="getContainers" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationAttemptId" type="org.apache.hadoop.yarn.api.records.ApplicationAttemptId"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get a report of all (Containers) of ApplicationAttempt in the cluster.
- </p>
-
- @param applicationAttemptId application attempt id
- @return a list of reports of all containers for specified application
- attempts
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="moveApplicationAcrossQueues"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <param name="queue" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Attempts to move the given application to the given queue.
- </p>
-
- @param appId
- Application to move.
- @param queue
- Queue to place it in to.
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="createReservation" return="org.apache.hadoop.yarn.api.protocolrecords.GetNewReservationResponse"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Obtain a {@link GetNewReservationResponse} for a new reservation,
- which contains the {@link ReservationId} object.
- </p>
- @return The {@link GetNewReservationResponse} containing a new
- {@link ReservationId} object.
- @throws YarnException if reservation cannot be created.
- @throws IOException if reservation cannot be created.]]>
- </doc>
- </method>
- <method name="submitReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionResponse"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationSubmissionRequest"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by clients to submit a new reservation to the
- {@code ResourceManager}.
- </p>
-
- <p>
- The client packages all details of its request in a
- {@link ReservationSubmissionRequest} object. This contains information
- about the amount of capacity, temporal constraints, and gang needs.
- Furthermore, the reservation might be composed of multiple stages, with
- ordering dependencies among them.
- </p>
-
- <p>
- In order to respond, a new admission control component in the
- {@code ResourceManager} performs an analysis of the resources that have
- been committed over the period of time the user is requesting, verify that
- the user requests can be fulfilled, and that it respect a sharing policy
- (e.g., {@code CapacityOverTimePolicy}). Once it has positively determined
- that the ReservationRequest is satisfiable the {@code ResourceManager}
- answers with a {@link ReservationSubmissionResponse} that includes a
- {@link ReservationId}. Upon failure to find a valid allocation the response
- is an exception with the message detailing the reason of failure.
- </p>
-
- <p>
- The semantics guarantees that the {@link ReservationId} returned,
- corresponds to a valid reservation existing in the time-range request by
- the user. The amount of capacity dedicated to such reservation can vary
- overtime, depending of the allocation that has been determined. But it is
- guaranteed to satisfy all the constraint expressed by the user in the
- {@link ReservationDefinition}
- </p>
-
- @param request request to submit a new Reservation
- @return response contains the {@link ReservationId} on accepting the
- submission
- @throws YarnException if the reservation cannot be created successfully
- @throws IOException]]>
- </doc>
- </method>
- <method name="updateReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateResponse"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationUpdateRequest"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by clients to update an existing Reservation. This is
- referred to as a re-negotiation process, in which a user that has
- previously submitted a Reservation.
- </p>
-
- <p>
- The allocation is attempted by virtually substituting all previous
- allocations related to this Reservation with new ones, that satisfy the new
- {@link ReservationDefinition}. Upon success the previous allocation is
- atomically substituted by the new one, and on failure (i.e., if the system
- cannot find a valid allocation for the updated request), the previous
- allocation remains valid.
- </p>
-
- @param request to update an existing Reservation (the
- {@link ReservationUpdateRequest} should refer to an existing valid
- {@link ReservationId})
- @return response empty on successfully updating the existing reservation
- @throws YarnException if the request is invalid or reservation cannot be
- updated successfully
- @throws IOException]]>
- </doc>
- </method>
- <method name="deleteReservation" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteResponse"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationDeleteRequest"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by clients to remove an existing Reservation.
- </p>
-
- @param request to remove an existing Reservation (the
- {@link ReservationDeleteRequest} should refer to an existing valid
- {@link ReservationId})
- @return response empty on successfully deleting the existing reservation
- @throws YarnException if the request is invalid or reservation cannot be
- deleted successfully
- @throws IOException]]>
- </doc>
- </method>
- <method name="listReservations" return="org.apache.hadoop.yarn.api.protocolrecords.ReservationListResponse"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.ReservationListRequest"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by clients to get the list of reservations in a plan.
- The reservationId will be used to search for reservations to list if it is
- provided. Otherwise, it will select active reservations within the
- startTime and endTime (inclusive).
- </p>
- @param request to list reservations in a plan. Contains fields to select
- String queue, ReservationId reservationId, long startTime,
- long endTime, and a bool includeReservationAllocations.
- queue: Required. Cannot be null or empty. Refers to the
- reservable queue in the scheduler that was selected when
- creating a reservation submission
- {@link ReservationSubmissionRequest}.
- reservationId: Optional. If provided, other fields will
- be ignored.
- startTime: Optional. If provided, only reservations that
- end after the startTime will be selected. This defaults
- to 0 if an invalid number is used.
- endTime: Optional. If provided, only reservations that
- start on or before endTime will be selected. This defaults
- to Long.MAX_VALUE if an invalid number is used.
- includeReservationAllocations: Optional. Flag that
- determines whether the entire reservation allocations are
- to be returned. Reservation allocations are subject to
- change in the event of re-planning as described by
- {@link ReservationDefinition}.
- @return response that contains information about reservations that are
- being searched for.
- @throws YarnException if the request is invalid
- @throws IOException if the request failed otherwise]]>
- </doc>
- </method>
- <method name="getNodeToLabels" return="java.util.Map"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by client to get node to labels mappings in existing cluster
- </p>
-
- @return node to labels mappings
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getLabelsToNodes" return="java.util.Map"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by client to get labels to nodes mapping
- in existing cluster
- </p>
- @return node to labels mappings
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getLabelsToNodes" return="java.util.Map"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="labels" type="java.util.Set"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by client to get labels to nodes mapping
- for specified labels in existing cluster
- </p>
- @param labels labels for which labels to nodes mapping has to be retrieved
- @return labels to nodes mappings for specific labels
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="getClusterNodeLabels" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by client to get node labels in the cluster
- </p>
- @return cluster node labels collection
- @throws YarnException when there is a failure in
- {@link ApplicationClientProtocol}
- @throws IOException when there is a failure in
- {@link ApplicationClientProtocol}]]>
- </doc>
- </method>
- <method name="updateApplicationPriority" return="org.apache.hadoop.yarn.api.records.Priority"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="applicationId" type="org.apache.hadoop.yarn.api.records.ApplicationId"/>
- <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- The interface used by client to set priority of an application
- </p>
- @param applicationId
- @param priority
- @return updated priority of an application.
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="signalToContainer"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <param name="command" type="org.apache.hadoop.yarn.api.records.SignalContainerCommand"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Signal a container identified by given ID.
- </p>
- @param containerId
- {@link ContainerId} of the container that needs to be signaled
- @param command the signal container command
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="updateApplicationTimeouts" return="org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsResponse"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="request" type="org.apache.hadoop.yarn.api.protocolrecords.UpdateApplicationTimeoutsRequest"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- </method>
- <method name="getResourceProfiles" return="java.util.Map"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get the resource profiles available in the RM.
- </p>
- @return a Map of the resource profile names to their capabilities
- @throws YARNFeatureNotEnabledException if resource-profile is disabled
- @throws YarnException if any error happens inside YARN
- @throws IOException in case of other errors]]>
- </doc>
- </method>
- <method name="getResourceProfile" return="org.apache.hadoop.yarn.api.records.Resource"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="profile" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get the details of a specific resource profile from the RM.
- </p>
- @param profile the profile name
- @return resource profile name with its capabilities
- @throws YARNFeatureNotEnabledException if resource-profile is disabled
- @throws YarnException if any error happens inside YARN
- @throws IOException in case of other others]]>
- </doc>
- </method>
- <method name="getResourceTypeInfo" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[<p>
- Get available resource types supported by RM.
- </p>
- @return list of supported resource types with detailed information
- @throws YarnException if any issue happens inside YARN
- @throws IOException in case of other others]]>
- </doc>
- </method>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.YarnClient -->
- <!-- start class org.apache.hadoop.yarn.client.api.YarnClientApplication -->
- <class name="YarnClientApplication" extends="java.lang.Object"
- abstract="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="YarnClientApplication" type="org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse, org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </constructor>
- <method name="getNewApplicationResponse" return="org.apache.hadoop.yarn.api.protocolrecords.GetNewApplicationResponse"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </method>
- <method name="getApplicationSubmissionContext" return="org.apache.hadoop.yarn.api.records.ApplicationSubmissionContext"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </method>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.YarnClientApplication -->
- </package>
- <package name="org.apache.hadoop.yarn.client.api.async">
- <!-- start class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync -->
- <class name="AMRMClientAsync" extends="org.apache.hadoop.service.AbstractService"
- abstract="true"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="AMRMClientAsync" type="int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.AbstractCallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <constructor name="AMRMClientAsync" type="org.apache.hadoop.yarn.client.api.AMRMClient, int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.AbstractCallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <constructor name="AMRMClientAsync" type="int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <constructor name="AMRMClientAsync" type="org.apache.hadoop.yarn.client.api.AMRMClient, int, org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="intervalMs" type="int"/>
- <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.AbstractCallbackHandler"/>
- <doc>
- <![CDATA[<p>Create a new instance of AMRMClientAsync.</p>
- @param intervalMs heartbeat interval in milliseconds between AM and RM
- @param callbackHandler callback handler that processes responses from
- the <code>ResourceManager</code>]]>
- </doc>
- </method>
- <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="client" type="org.apache.hadoop.yarn.client.api.AMRMClient"/>
- <param name="intervalMs" type="int"/>
- <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.AbstractCallbackHandler"/>
- <doc>
- <![CDATA[<p>Create a new instance of AMRMClientAsync.</p>
- @param client the AMRMClient instance
- @param intervalMs heartbeat interval in milliseconds between AM and RM
- @param callbackHandler callback handler that processes responses from
- the <code>ResourceManager</code>]]>
- </doc>
- </method>
- <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="Use {@link #createAMRMClientAsync(int,
- AMRMClientAsync.AbstractCallbackHandler)} instead.">
- <param name="intervalMs" type="int"/>
- <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"/>
- <doc>
- <![CDATA[@deprecated Use {@link #createAMRMClientAsync(int,
- AMRMClientAsync.AbstractCallbackHandler)} instead.]]>
- </doc>
- </method>
- <method name="createAMRMClientAsync" return="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="Use {@link #createAMRMClientAsync(AMRMClient,
- int, AMRMClientAsync.AbstractCallbackHandler)} instead.">
- <param name="client" type="org.apache.hadoop.yarn.client.api.AMRMClient"/>
- <param name="intervalMs" type="int"/>
- <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"/>
- <doc>
- <![CDATA[@deprecated Use {@link #createAMRMClientAsync(AMRMClient,
- int, AMRMClientAsync.AbstractCallbackHandler)} instead.]]>
- </doc>
- </method>
- <method name="setHeartbeatInterval"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="interval" type="int"/>
- </method>
- <method name="getMatchingRequests" return="java.util.List"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
- <param name="resourceName" type="java.lang.String"/>
- <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
- </method>
- <method name="addSchedulingRequests"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="schedulingRequests" type="java.util.Collection"/>
- <doc>
- <![CDATA[Add a Collection of SchedulingRequests. The AMRMClient will ensure that
- all requests in the same batch are sent in the same allocate call.
- @param schedulingRequests Collection of Scheduling Requests.]]>
- </doc>
- </method>
- <method name="getMatchingRequests" return="java.util.List"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="priority" type="org.apache.hadoop.yarn.api.records.Priority"/>
- <param name="resourceName" type="java.lang.String"/>
- <param name="executionType" type="org.apache.hadoop.yarn.api.records.ExecutionType"/>
- <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
- <doc>
- <![CDATA[Returns all matching ContainerRequests that match the given Priority,
- ResourceName, ExecutionType and Capability.
- NOTE: This matches only requests that were made by the client WITHOUT the
- allocationRequestId specified.
- @param priority Priority.
- @param resourceName Location.
- @param executionType ExecutionType.
- @param capability Capability.
- @return All matching ContainerRequests]]>
- </doc>
- </method>
- <method name="getMatchingRequests" return="java.util.Collection"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="allocationRequestId" type="long"/>
- <doc>
- <![CDATA[Returns all matching ContainerRequests that match the given
- AllocationRequestId.
- NOTE: This matches only requests that were made by the client WITH the
- allocationRequestId specified.
- @param allocationRequestId AllocationRequestId.
- @return All matching ContainerRequests]]>
- </doc>
- </method>
- <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appHostName" type="java.lang.String"/>
- <param name="appHostPort" type="int"/>
- <param name="appTrackingUrl" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Registers this application master with the resource manager. On successful
- registration, starts the heartbeating thread.
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="registerApplicationMaster" return="org.apache.hadoop.yarn.api.protocolrecords.RegisterApplicationMasterResponse"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appHostName" type="java.lang.String"/>
- <param name="appHostPort" type="int"/>
- <param name="appTrackingUrl" type="java.lang.String"/>
- <param name="placementConstraints" type="java.util.Map"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Register the application master. This must be called before any
- other interaction
- @param appHostName Name of the host on which master is running
- @param appHostPort Port master is listening on
- @param appTrackingUrl URL at which the master info can be seen
- @param placementConstraints Placement Constraints mappings.
- @return <code>RegisterApplicationMasterResponse</code>
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="unregisterApplicationMaster"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="appStatus" type="org.apache.hadoop.yarn.api.records.FinalApplicationStatus"/>
- <param name="appMessage" type="java.lang.String"/>
- <param name="appTrackingUrl" type="java.lang.String"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <exception name="IOException" type="java.io.IOException"/>
- <doc>
- <![CDATA[Unregister the application master. This must be called in the end.
- @param appStatus Success/Failure status of the master
- @param appMessage Diagnostics message on failure
- @param appTrackingUrl New URL to get master info
- @throws YarnException
- @throws IOException]]>
- </doc>
- </method>
- <method name="addContainerRequest"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="req" type="T"/>
- <doc>
- <![CDATA[Request containers for resources before calling <code>allocate</code>
- @param req Resource request]]>
- </doc>
- </method>
- <method name="removeContainerRequest"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="req" type="T"/>
- <doc>
- <![CDATA[Remove previous container request. The previous container request may have
- already been sent to the ResourceManager. So even after the remove request
- the app must be prepared to receive an allocation for the previous request
- even after the remove request
- @param req Resource request]]>
- </doc>
- </method>
- <method name="requestContainerResourceChange"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="use
- {@link #requestContainerUpdate(Container, UpdateContainerRequest)}">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <param name="capability" type="org.apache.hadoop.yarn.api.records.Resource"/>
- <doc>
- <![CDATA[Request container resource change before calling <code>allocate</code>.
- Any previous pending resource change request of the same container will be
- removed.
- Application that calls this method is expected to maintain the
- <code>Container</code>s that are returned from previous successful
- allocations or resource changes. By passing in the existing container and a
- target resource capability to this method, the application requests the
- ResourceManager to change the existing resource allocation to the target
- resource allocation.
- @deprecated use
- {@link #requestContainerUpdate(Container, UpdateContainerRequest)}
- @param container The container returned from the last successful resource
- allocation or resource change
- @param capability The target resource capability of the container]]>
- </doc>
- </method>
- <method name="requestContainerUpdate"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <param name="updateContainerRequest" type="org.apache.hadoop.yarn.api.records.UpdateContainerRequest"/>
- <doc>
- <![CDATA[Request a container update before calling <code>allocate</code>.
- Any previous pending update request of the same container will be
- removed.
- @param container The container returned from the last successful resource
- allocation or update
- @param updateContainerRequest The <code>UpdateContainerRequest</code>.]]>
- </doc>
- </method>
- <method name="releaseAssignedContainer"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <doc>
- <![CDATA[Release containers assigned by the Resource Manager. If the app cannot use
- the container or wants to give up the container then it can release them.
- The app needs to make new requests for the released resource capability if
- it still needs it. eg. it released non-local resources
- @param containerId]]>
- </doc>
- </method>
- <method name="getAvailableResources" return="org.apache.hadoop.yarn.api.records.Resource"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Get the currently available resources in the cluster.
- A valid value is available after a call to allocate has been made
- @return Currently available resources]]>
- </doc>
- </method>
- <method name="getClusterNodeCount" return="int"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Get the current number of nodes in the cluster.
- A valid values is available after a call to allocate has been made
- @return Current number of nodes in the cluster]]>
- </doc>
- </method>
- <method name="registerTimelineV2Client"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="timelineClient" type="org.apache.hadoop.yarn.client.api.TimelineV2Client"/>
- <exception name="YarnException" type="org.apache.hadoop.yarn.exceptions.YarnException"/>
- <doc>
- <![CDATA[Register TimelineClient to AMRMClient.
- @param timelineClient
- @throws YarnException when this method is invoked even when ATS V2 is not
- configured.]]>
- </doc>
- </method>
- <method name="getRegisteredTimelineV2Client" return="org.apache.hadoop.yarn.client.api.TimelineV2Client"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <doc>
- <![CDATA[Get registered timeline client.
- @return the registered timeline client]]>
- </doc>
- </method>
- <method name="updateBlacklist"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="blacklistAdditions" type="java.util.List"/>
- <param name="blacklistRemovals" type="java.util.List"/>
- <doc>
- <![CDATA[Update application's blacklist with addition or removal resources.
- @param blacklistAdditions list of resources which should be added to the
- application blacklist
- @param blacklistRemovals list of resources which should be removed from the
- application blacklist]]>
- </doc>
- </method>
- <method name="waitFor"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="check" type="java.util.function.Supplier"/>
- <exception name="InterruptedException" type="java.lang.InterruptedException"/>
- <doc>
- <![CDATA[Wait for <code>check</code> to return true for each 1000 ms.
- See also {@link #waitFor(java.util.function.Supplier, int)}
- and {@link #waitFor(java.util.function.Supplier, int, int)}
- @param check the condition for which it should wait]]>
- </doc>
- </method>
- <method name="waitFor"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="check" type="java.util.function.Supplier"/>
- <param name="checkEveryMillis" type="int"/>
- <exception name="InterruptedException" type="java.lang.InterruptedException"/>
- <doc>
- <![CDATA[Wait for <code>check</code> to return true for each
- <code>checkEveryMillis</code> ms.
- See also {@link #waitFor(java.util.function.Supplier, int, int)}
- @param check user defined checker
- @param checkEveryMillis interval to call <code>check</code>]]>
- </doc>
- </method>
- <method name="waitFor"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="check" type="java.util.function.Supplier"/>
- <param name="checkEveryMillis" type="int"/>
- <param name="logInterval" type="int"/>
- <exception name="InterruptedException" type="java.lang.InterruptedException"/>
- <doc>
- <![CDATA[Wait for <code>check</code> to return true for each
- <code>checkEveryMillis</code> ms. In the main loop, this method will log
- the message "waiting in main loop" for each <code>logInterval</code> times
- iteration to confirm the thread is alive.
- @param check user defined checker
- @param checkEveryMillis interval to call <code>check</code>
- @param logInterval interval to log for each]]>
- </doc>
- </method>
- <field name="client" type="org.apache.hadoop.yarn.client.api.AMRMClient"
- transient="false" volatile="false"
- static="false" final="true" visibility="protected"
- deprecated="not deprecated">
- </field>
- <field name="handler" type="org.apache.hadoop.yarn.client.api.async.AMRMClientAsync.CallbackHandler"
- transient="false" volatile="false"
- static="false" final="true" visibility="protected"
- deprecated="not deprecated">
- </field>
- <field name="heartbeatIntervalMs" type="java.util.concurrent.atomic.AtomicInteger"
- transient="false" volatile="false"
- static="false" final="true" visibility="protected"
- deprecated="not deprecated">
- </field>
- <doc>
- <![CDATA[<code>AMRMClientAsync</code> handles communication with the ResourceManager
- and provides asynchronous updates on events such as container allocations and
- completions. It contains a thread that sends periodic heartbeats to the
- ResourceManager.
-
- It should be used by implementing a CallbackHandler:
- <pre>
- {@code
- class MyCallbackHandler extends AMRMClientAsync.AbstractCallbackHandler {
- public void onContainersAllocated(List<Container> containers) {
- [run tasks on the containers]
- }
- public void onContainersUpdated(List<Container> containers) {
- [determine if resource allocation of containers have been increased in
- the ResourceManager, and if so, inform the NodeManagers to increase the
- resource monitor/enforcement on the containers]
- }
- public void onContainersCompleted(List<ContainerStatus> statuses) {
- [update progress, check whether app is done]
- }
-
- public void onNodesUpdated(List<NodeReport> updated) {}
-
- public void onReboot() {}
- }
- }
- </pre>
-
- The client's lifecycle should be managed similarly to the following:
-
- <pre>
- {@code
- AMRMClientAsync asyncClient =
- createAMRMClientAsync(appAttId, 1000, new MyCallbackhandler());
- asyncClient.init(conf);
- asyncClient.start();
- RegisterApplicationMasterResponse response = asyncClient
- .registerApplicationMaster(appMasterHostname, appMasterRpcPort,
- appMasterTrackingUrl);
- asyncClient.addContainerRequest(containerRequest);
- [... wait for application to complete]
- asyncClient.unregisterApplicationMaster(status, appMsg, trackingUrl);
- asyncClient.stop();
- }
- </pre>]]>
- </doc>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.async.AMRMClientAsync -->
- <!-- start class org.apache.hadoop.yarn.client.api.async.NMClientAsync -->
- <class name="NMClientAsync" extends="org.apache.hadoop.service.AbstractService"
- abstract="true"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <constructor name="NMClientAsync" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.NMClient, org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <constructor name="NMClientAsync" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="Use {@link #NMClientAsync(AbstractCallbackHandler)}
- instead.">
- <doc>
- <![CDATA[@deprecated Use {@link #NMClientAsync(AbstractCallbackHandler)}
- instead.]]>
- </doc>
- </constructor>
- <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="Use {@link #NMClientAsync(String, AbstractCallbackHandler)}
- instead.">
- <doc>
- <![CDATA[@deprecated Use {@link #NMClientAsync(String, AbstractCallbackHandler)}
- instead.]]>
- </doc>
- </constructor>
- <constructor name="NMClientAsync" type="java.lang.String, org.apache.hadoop.yarn.client.api.NMClient, org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </constructor>
- <method name="createNMClientAsync" return="org.apache.hadoop.yarn.client.api.async.NMClientAsync"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.AbstractCallbackHandler"/>
- </method>
- <method name="createNMClientAsync" return="org.apache.hadoop.yarn.client.api.async.NMClientAsync"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="Use {@link #createNMClientAsync(AbstractCallbackHandler)}
- instead.">
- <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"/>
- <doc>
- <![CDATA[@deprecated Use {@link #createNMClientAsync(AbstractCallbackHandler)}
- instead.]]>
- </doc>
- </method>
- <method name="startContainerAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <param name="containerLaunchContext" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
- </method>
- <method name="increaseContainerResourceAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- </method>
- <method name="updateContainerResourceAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="container" type="org.apache.hadoop.yarn.api.records.Container"/>
- <doc>
- <![CDATA[<p>Update the resources of a container.</p>
- <p>The <code>ApplicationMaster</code> or other applications that use the
- client must provide the details of the container, including the Id and
- the target resource encapsulated in the updated container token via
- {@link Container}.
- </p>
- @param container the container with updated token.]]>
- </doc>
- </method>
- <method name="reInitializeContainerAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <param name="containerLaunchContex" type="org.apache.hadoop.yarn.api.records.ContainerLaunchContext"/>
- <param name="autoCommit" type="boolean"/>
- <doc>
- <![CDATA[<p>Re-Initialize the Container.</p>
- @param containerId the Id of the container to Re-Initialize.
- @param containerLaunchContex the updated ContainerLaunchContext.
- @param autoCommit commit re-initialization automatically ?]]>
- </doc>
- </method>
- <method name="restartContainerAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <doc>
- <![CDATA[<p>Restart the specified container.</p>
- @param containerId the Id of the container to restart.]]>
- </doc>
- </method>
- <method name="rollbackLastReInitializationAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <doc>
- <![CDATA[<p>Rollback last reInitialization of the specified container.</p>
- @param containerId the Id of the container to restart.]]>
- </doc>
- </method>
- <method name="commitLastReInitializationAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <doc>
- <![CDATA[<p>Commit last reInitialization of the specified container.</p>
- @param containerId the Id of the container to commit reInitialize.]]>
- </doc>
- </method>
- <method name="stopContainerAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
- </method>
- <method name="getContainerStatusAsync"
- abstract="true" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="containerId" type="org.apache.hadoop.yarn.api.records.ContainerId"/>
- <param name="nodeId" type="org.apache.hadoop.yarn.api.records.NodeId"/>
- </method>
- <method name="getClient" return="org.apache.hadoop.yarn.client.api.NMClient"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </method>
- <method name="setClient"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="client" type="org.apache.hadoop.yarn.client.api.NMClient"/>
- </method>
- <method name="getCallbackHandler" return="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </method>
- <method name="setCallbackHandler"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"/>
- </method>
- <field name="client" type="org.apache.hadoop.yarn.client.api.NMClient"
- transient="false" volatile="false"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </field>
- <field name="callbackHandler" type="org.apache.hadoop.yarn.client.api.async.NMClientAsync.CallbackHandler"
- transient="false" volatile="false"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </field>
- <doc>
- <![CDATA[<code>NMClientAsync</code> handles communication with all the NodeManagers
- and provides asynchronous updates on getting responses from them. It
- maintains a thread pool to communicate with individual NMs where a number of
- worker threads process requests to NMs by using {@link NMClientImpl}. The max
- size of the thread pool is configurable through
- {@link YarnConfiguration#NM_CLIENT_ASYNC_THREAD_POOL_MAX_SIZE}.
- It should be used in conjunction with a CallbackHandler. For example
- <pre>
- {@code
- class MyCallbackHandler extends NMClientAsync.AbstractCallbackHandler {
- public void onContainerStarted(ContainerId containerId,
- Map<String, ByteBuffer> allServiceResponse) {
- [post process after the container is started, process the response]
- }
- public void onContainerResourceIncreased(ContainerId containerId,
- Resource resource) {
- [post process after the container resource is increased]
- }
- public void onContainerStatusReceived(ContainerId containerId,
- ContainerStatus containerStatus) {
- [make use of the status of the container]
- }
- public void onContainerStopped(ContainerId containerId) {
- [post process after the container is stopped]
- }
- public void onStartContainerError(
- ContainerId containerId, Throwable t) {
- [handle the raised exception]
- }
- public void onGetContainerStatusError(
- ContainerId containerId, Throwable t) {
- [handle the raised exception]
- }
- public void onStopContainerError(
- ContainerId containerId, Throwable t) {
- [handle the raised exception]
- }
- }
- }
- </pre>
- The client's life-cycle should be managed like the following:
- <pre>
- {@code
- NMClientAsync asyncClient =
- NMClientAsync.createNMClientAsync(new MyCallbackhandler());
- asyncClient.init(conf);
- asyncClient.start();
- asyncClient.startContainer(container, containerLaunchContext);
- [... wait for container being started]
- asyncClient.getContainerStatus(container.getId(), container.getNodeId(),
- container.getContainerToken());
- [... handle the status in the callback instance]
- asyncClient.stopContainer(container.getId(), container.getNodeId(),
- container.getContainerToken());
- [... wait for container being stopped]
- asyncClient.stop();
- }
- </pre>]]>
- </doc>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.api.async.NMClientAsync -->
- </package>
- <package name="org.apache.hadoop.yarn.client.api.async.impl">
- </package>
- <package name="org.apache.hadoop.yarn.client.api.impl">
- </package>
- <package name="org.apache.hadoop.yarn.client.cli">
- <!-- start class org.apache.hadoop.yarn.client.cli.LogsCLI -->
- <class name="LogsCLI" extends="org.apache.hadoop.conf.Configured"
- abstract="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <implements name="org.apache.hadoop.util.Tool"/>
- <constructor name="LogsCLI"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </constructor>
- <method name="run" return="int"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="args" type="java.lang.String[]"/>
- <exception name="Exception" type="java.lang.Exception"/>
- </method>
- <method name="createYarnClient" return="org.apache.hadoop.yarn.client.api.YarnClient"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- </method>
- <method name="main"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="args" type="java.lang.String[]"/>
- <exception name="Exception" type="java.lang.Exception"/>
- </method>
- <method name="getAMContainerInfoForRMWebService" return="java.util.List"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="protected"
- deprecated="not deprecated">
- <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
- <param name="appId" type="java.lang.String"/>
- <exception name="ClientHandlerException" type="com.sun.jersey.api.client.ClientHandlerException"/>
- <exception name="UniformInterfaceException" type="com.sun.jersey.api.client.UniformInterfaceException"/>
- <exception name="JSONException" type="org.codehaus.jettison.json.JSONException"/>
- </method>
- <method name="getMatchedContainerLogFiles" return="java.util.Set"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="request" type="org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest"/>
- <param name="useRegex" type="boolean"/>
- <param name="ignoreSizeLimit" type="boolean"/>
- <exception name="IOException" type="java.io.IOException"/>
- </method>
- <method name="getResponeFromNMWebService" return="com.sun.jersey.api.client.ClientResponse"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="conf" type="org.apache.hadoop.conf.Configuration"/>
- <param name="webServiceClient" type="com.sun.jersey.api.client.Client"/>
- <param name="request" type="org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest"/>
- <param name="logFile" type="java.lang.String"/>
- </method>
- <method name="getNodeHttpAddressFromRMWebString" return="java.lang.String"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="request" type="org.apache.hadoop.yarn.logaggregation.ContainerLogsRequest"/>
- <exception name="ClientHandlerException" type="com.sun.jersey.api.client.ClientHandlerException"/>
- <exception name="UniformInterfaceException" type="com.sun.jersey.api.client.UniformInterfaceException"/>
- <exception name="JSONException" type="org.codehaus.jettison.json.JSONException"/>
- </method>
- <field name="HELP_CMD" type="java.lang.String"
- transient="false" volatile="false"
- static="true" final="true" visibility="public"
- deprecated="not deprecated">
- </field>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.cli.LogsCLI -->
- <!-- start class org.apache.hadoop.yarn.client.cli.SchedConfCLI -->
- <class name="SchedConfCLI" extends="org.apache.hadoop.conf.Configured"
- abstract="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <implements name="org.apache.hadoop.util.Tool"/>
- <constructor name="SchedConfCLI"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- </constructor>
- <method name="main"
- abstract="false" native="false" synchronized="false"
- static="true" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="args" type="java.lang.String[]"/>
- <exception name="Exception" type="java.lang.Exception"/>
- </method>
- <method name="run" return="int"
- abstract="false" native="false" synchronized="false"
- static="false" final="false" visibility="public"
- deprecated="not deprecated">
- <param name="args" type="java.lang.String[]"/>
- <exception name="Exception" type="java.lang.Exception"/>
- </method>
- <doc>
- <![CDATA[CLI for modifying scheduler configuration.]]>
- </doc>
- </class>
- <!-- end class org.apache.hadoop.yarn.client.cli.SchedConfCLI -->
- </package>
- <package name="org.apache.hadoop.yarn.client.util">
- </package>
- </api>
|