You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by Mohit Anchlia <mo...@gmail.com> on 2012/08/02 21:24:29 UTC
Is Flume sink multithreaded
Trying to understand how flume sink invocation works. I see HBaseSink.java
has start and stop, is this object created once or is this object created
for every event call to sink?
Also, who calls start,process and stop?
Re: Is Flume sink multithreaded
Posted by Juhani Connolly <ju...@cyberagent.co.jp>.
A sink runner and the sink are build from the configuration and started
by the lifecycle manager. The runner then regularly calls process on the
sink.
Sinks and sources are not required to be multithreaded, as they are
normally exclusively accessed by their runners. The exception to this is
the lifecycle manager which may call start/stop pretty much whenever.
On 08/03/2012 04:24 AM, Mohit Anchlia wrote:
> Trying to understand how flume sink invocation works. I see
> HBaseSink.java has start and stop, is this object created once or is
> this object created for every event call to sink?
> Also, who calls start,process and stop?
Re: Is Flume sink multithreaded
Posted by Denny Ye <de...@gmail.com>.
hi Mohit,
Concrete object has been created and invoked by SinkRunner in lifecycle.
-Regards
Denny Ye
2012/8/3 Mohit Anchlia <mo...@gmail.com>
> Trying to understand how flume sink invocation works. I see HBaseSink.java
> has start and stop, is this object created once or is this object created
> for every event call to sink?
>
> Also, who calls start,process and stop?
>