Longda. AFAIK, Flume doesn't have a way to load a plugin on the fly. The plugin class names are in the config file, and shared among all flume nodes + master. Also the class files need to be loaded when flume starts up. When you have a new plugin, you have to 1) reconfigure flume at all nodes, 2) copy the new class file to flume classpath, 3) restart all nodes.
Assume there is a way for flume to dynamically config/load plugin class names, we still need a way to ship the class file to each node which can not be handled by flume easily. Personally I don't think it's a strong operational requirement. Or you can have a script decorator plugin to avoid flume restart: http://blog.infochimps.com/2011/03/02/simple-flume-decorators-with-jruby/ -mingjie On 09/15/2011 10:51 PM, 纪君祥 wrote: > Hi all, > > Could anyone tell me how to avoid restart master when adding one plugin? > Any help are appreciated. > > I found that when I implement my own plugin, if I want to use it, I need > restart the master node, otherwise, it will report configuration error. > > Can we avoid it? > > Thanks a lot > > Longda > > > ------------------------------------------------------------------------ > > This email (including any attachments) is confidential and may be > legally privileged. If you received this email in error, please delete > it immediately and do not copy it or use it for any purpose or disclose > its contents to any other person. Thank you. > > 本电邮(包括任何附件)可能含有机密资料并受法律保护。如您不是正确的收件人, > 请您立即删除本邮件。请不要将本电邮进行复制并用作任何其他用途、或透露本邮 > 件之内容。谢谢。