2016-12-07 35 views
0

弗卢姆代理我尝试使用水槽与系统日志源和HBase的水槽。
当我运行水槽代理我得到这个错误:Failed to start agent because dependencies were not found in classpath. Error follows. java.lang.NoClassDefFoundError: org/apache/hadoop/hbase/HBaseConfiguration,这意味着(从question)一些HBase的LIB缺失,要解决它,我需要flume-env.sh文件的路径设置为这些lib下,什么我做到了,并运行水槽,但坚持在这里的错误是我用来运行水槽代理命令:bin/flume-ng agent --conf ./conf --conf-file ./conf/flume.properties --name agent -Dflume.root.logger=INFO,console
所以我的问题是,如果我使用的解决方案是正确的(我需要添加的lib到水槽)为什么我仍然得到同样的错误,如果不是如何解决这个问题与系统日志源和HBase的汇

编辑
从文档我读:The flume-ng executable looks for and sources a file named "flume-env.sh" in the conf directory specified by the --conf/-c commandline option.
我还没有测试它,但是我认为这是解决(我只需要确认)

+0

一个解决办法是HBase的罐子从HBASE_HOME/lib添加到FLUME_HOME/lib目录复制和它的作品,但我想知道如何使用flume-env.sh – aName

回答

1

我会建议您下载HBase的全焦油球和设置像HBASE_HOME等环境变量,以正确的位置。然后Flume可以自动从HBase回购库中挑选库。