繁体   English   中英

使用拦截器运行水槽代理时出错

[英]Errors running flume agent with interceptor

我正在尝试从使用Linux的终端运行自定义水槽代理。 我正在使用cloudera VM。 运行命令的水槽看起来像:

flume-ng agent --conf . -f spoolDirLocal2hdfs_memoryChannel.conflume.root.logger=DEBUG,console -n Agent5

带有拦截器的源看起来像:

Agent5.sources.spooldir-source.interceptors = i1
Agent5.sources.spooldir-source.interceptors.i1.type = org.flumefiles.flume.HtmlInterceptor$Buider

我已将jar文件都放入/usr/lib/hadoop/lib//usr/lib/flume-ng/lib/ 另外,我还在/usr/lib/flume-ng/plugins.d/创建了plugins.d并将jar放在那里。 但是在运行水槽代理时,我遇到了一个错误:

15/02/18 06:10:46 ERROR channel.ChannelProcessor: Builder class not found. Exception follows.
java.lang.ClassNotFoundException: org.intropro.flume.HtmlInterceptor$Buider
    at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    at java.security.AccessController.doPrivileged(Native Method)

.....

我应该在哪里放置jar文件以使其找到构建器?

将其放入FLUME_HOME / lib,然后重新启动flume。

如果那不起作用,请确保您的拦截器实际上实现了Builder接口。 那可能是另一个原因。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM