Apache_Hadoop_YARN_Client_3.1.1.xml 133 KB

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