简体   繁体   English

在Apache Flume 1.5中放置自定义罐子的位置?

[英]Where to place custom jars in Apache Flume 1.5?

I need to create a custom source in flume for which i have provided the fully qualified class name in the conf file.But I am unable to figure out as to where I need to place the jar file. 我需要在flume中创建一个自定义源,我在conf文件中提供了完全限定的类名。但是我无法弄清楚我需要放置jar文件的位置。 After reading several posts ,I created a "plugins.d" folder within the Flume directory and placed my jar there.Still during start up ,it is unable to load the jar. 在阅读了几篇文章后,我在Flume目录中创建了一个“plugins.d”文件夹并将我的jar放在那里。在启动时,它无法加载jar。 Should I modify the flume-env.sh ? 我应该修改flume-env.sh吗?

In flume-env.sh add this: 在flume-env.sh中添加:

FLUME_CLASSPATH="/path/to/your/jar:/path/to/another/jar" FLUME_CLASSPATH = “/路径/到/你/罐:/路径/到/其它/罐”

From the Flume documentation : 来自Flume 文档

The plugins.d directory is located at $FLUME_HOME/plugins.d plugins.d目录位于$FLUME_HOME/plugins.d

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

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