Hi Ajay For the running containers, you can get container report from ResourceManager. For completed/killed containers, you need start ApplicationHistoryServer daemon and use the same API i.e yarnClient.getContainerReport() to get container report. Basically, this API contact RM first for container report. If RM does not have this container Id then yarnClient contact ApplicationHistoryServer to get container report.
Thanks & Regards Rohith Sharma K S On 15 November 2016 at 11:14, AJAY GUPTA <[email protected]> wrote: > Hi > > For monitoring purposes, I need to capture some container information for > my application deployed on Yarn, specially for containers getting killed. > This also included the finishTime of the container i.e., the time when the > container got killed. Is there any API which will provide this information. > Currently, I am able to get information of only RUNNING containers via > yarnClient.getContainerReport(). > > > Thanks, > Ajay > >
