hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sunil Govind <sunil.gov...@gmail.com>
Subject Re: YARN application start event
Date Sun, 10 Jul 2016 14:23:10 GMT
Hi Alvaro
I suspect YARN is not supporting to register any custom listeners from user
end (for any events).
Through the REST api's, you could query and try to get the STATE of the
application (http://{ip:port}/ws/v1/cluster/apps/{appid}) given the app id.
If the app state is RUNNING, you can consider the application has started.


On Thu, Jul 7, 2016 at 3:12 PM Alvaro Brandon <alvarobrandon@gmail.com>

> Hello everyone:
> I was wondering if there is any way to capture the event of an application
> starting in YARN. The idea is to implement a Listener that every time a
> YARN application starts, will query the REST API to get the current memory
> and cores availables in the cluster. Any ideas on this?
> Thanks in advance,
> Alvaro

View raw message