You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by Michael Librodo <mi...@gmail.com> on 2015/03/09 20:34:55 UTC
Stopping the agent process if any sources/sinks fail during start
Hi-
I am currently investigating in a way for the flume agent to "fail fast" if
any of the sources/sinks fail to start. It seems that there is no facility
to do this based on the current architecture. Basically, I am working with
the RMQ source plugin for flume. I would like the agent (jvm process) to
halt if the RMQ source plugin fails to start (i.e. for some reason one of
the preconditions for RMQ is not met). Right now, the only way I can think
of doing this is Runtime.getRuntime().halt(1). It seems here
https://github.com/apache/flume/blob/flume-1.5/flume-ng-core/src/main/java/org/apache/flume/lifecycle/LifecycleSupervisor.java#L249-263
we catch every exception and just move on
thanks in advance for the help
--
-mike.librodo
Re: Stopping the agent process if any sources/sinks fail during start
Posted by Ashish <pa...@gmail.com>.
Can you please log a JIRA?
I am not aware of how to achieve this out of the box.
On Tue, Mar 10, 2015 at 1:04 AM, Michael Librodo <mi...@gmail.com> wrote:
> Hi-
>
> I am currently investigating in a way for the flume agent to "fail fast" if
> any of the sources/sinks fail to start. It seems that there is no facility
> to do this based on the current architecture. Basically, I am working with
> the RMQ source plugin for flume. I would like the agent (jvm process) to
> halt if the RMQ source plugin fails to start (i.e. for some reason one of
> the preconditions for RMQ is not met). Right now, the only way I can think
> of doing this is Runtime.getRuntime().halt(1). It seems here
>
> https://github.com/apache/flume/blob/flume-1.5/flume-ng-core/src/main/java/org/apache/flume/lifecycle/LifecycleSupervisor.java#L249-263
>
> we catch every exception and just move on
>
>
> thanks in advance for the help
>
> --
> -mike.librodo
>
--
thanks
ashish
Blog: http://www.ashishpaliwal.com/blog
My Photo Galleries: http://www.pbase.com/ashishpaliwal