Apache_Hadoop_YARN_Client_2.10.0.xml 128 KB

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