[
https://issues.apache.org/jira/browse/YARN-417?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13588671#comment-13588671
]
Chris Riccomini commented on YARN-417:
--------------------------------------
Hey Guys,
I also agree with the comments and nits that Sandy/Karthik pointed out.
Just so I'm clear, the way this would be used a main thread would be:
1. instantiate
2. call init
3. call start
4. call register
5. make initial container request
6. wait until containers complete
I think what I'd probably end up doing for #6 is just using a countdown latch
that I'd wait on, and the callback decrements whenever a container completes.
Probably good enough.
Cheers,
Chris
> Add a poller that allows the AM to receive notifications when it is assigned
> containers
> ---------------------------------------------------------------------------------------
>
> Key: YARN-417
> URL: https://issues.apache.org/jira/browse/YARN-417
> Project: Hadoop YARN
> Issue Type: Sub-task
> Components: api, applications
> Affects Versions: 2.0.3-alpha
> Reporter: Sandy Ryza
> Assignee: Sandy Ryza
> Attachments: AMRMClientAsync-1.java, AMRMClientAsync.java,
> YARN-417.patch, YarnAppMaster.java, YarnAppMasterListener.java
>
>
> Writing AMs would be easier for some if they did not have to handle
> heartbeating to the RM on their own.
--
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