[ https://issues.apache.org/jira/browse/YARN-983?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13721755#comment-13721755 ]
Alejandro Abdelnur commented on YARN-983: ----------------------------------------- Do we need an additional request field to indicate we want it? The current logic already: * returns the AMMR token only for unmanaged AMs * the AMRM token only when in ACCEPTED state Typically you 'monitor' the state of your launch AM until gets to ACCEPTED they you proceed to register, thus effectively the AMRM token will be returned only once. Plus, unmanaged AMs need the AMRM token, so asking them to say they want it seems a bit redundant. > ApplicationReport can return tokens only when users asks for it explicitly > -------------------------------------------------------------------------- > > Key: YARN-983 > URL: https://issues.apache.org/jira/browse/YARN-983 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Vinod Kumar Vavilapalli > > There is no need for ApplicationReport to always fetch client and AMtoRM > Tokens (in case of UnmanagedAMs) everytime ApplicationReport is requested. We > can send it only when users explicitly asks for it via a new field in > GetApplicationReportRequest. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira