You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hadoop.apache.org by Alvaro Brandon <al...@gmail.com> on 2016/07/07 09:41:58 UTC

YARN application start event

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

unsubscribe

Posted by siscia <si...@yahoo.com.INVALID>.
unsubscribe

On 10/07/2016 16:23, Sunil Govind wrote:
> 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.
>
> Thanks
> Sunil
>
> On Thu, Jul 7, 2016 at 3:12 PM Alvaro Brandon <alvarobrandon@gmail.com 
> <ma...@gmail.com>> wrote:
>
>     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
>


Re: YARN application start event

Posted by Sunil Govind <su...@gmail.com>.
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.

Thanks
Sunil

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

> 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
>