Apache_Hadoop_YARN_Client_2.7.2.xml 119 KB

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