When you do Ctrl-C, a shutdown hook is invoked which takes care of shutting down. Another way would be to quickly expose the Shutdown option via JMX Bean and invoke it using JConsole/VisualVM.
I have not played with HDFS sink yet, so cannot provide much insight. Best would be to track this via a JIRA. On Tue, Jun 18, 2013 at 12:40 PM, cherubimsun <[email protected]> wrote: > ** > if we use the kill -9 pid. > > When we kill the process,the hdfs sink file of flume ng will not closed > ever. > It's a bug or we have the second way to stop the flume ng?? > > > thanks very much! > 2013-06-18 > ------------------------------ > cherubimsun > ------------------------------ > *发件人:*GuoWei <[email protected]> > *发送时间:*2013-06-18 14:28 > *主题:*Re: how to stop the flume ng? > *收件人:*"user"<[email protected]> > *抄送:* > > > > ps -ef|grep flume > kill -9 pid > > > Weibo: http://weibo.com/guowee > Web: http://www.wbkit.com > ----------------------------------------------------- > WesternBridge Tech: Professional software service provider. Professional > is MANNER as well CAPABILITY. > > 在 2013-6-18,下午1:58,"cherubimsun" <[email protected]> 写道: > > ** > hi all, > How to stop the flume ng? > > When we wanna to start the ng ,we used:bin/flume-ng agent -n agent_name -c > conf -f conf/flume-conf.properties. > If we prepare to stop it,usually we will kill the pid of flume ng.But when > we kill the process,the hdfs sink file of flume ng will not closed ever. > It's a bug or we have the second way to stop the flume ng?? > > thanks a lot! > > 2013-06-18 > ------------------------------ > cherubimsun > ** > > > -- thanks ashish Blog: http://www.ashishpaliwal.com/blog My Photo Galleries: http://www.pbase.com/ashishpaliwal
