2012-09-05 62 views
1

当我将flume安装到Linux中时。我在运行flume时收到一些警告 我按照此过程安装了一个水槽。Flume在Linux中运行失败

>> sudo tar -xvf flume-ng-1.1.0-cdh4.0.1\(1\).tar.gz 
>> export PATH=/home/hduser/downloads/flume-1.1.0- cdh4.0.1/bin:$PATH 
>> $ sudo cp conf/flume-conf.properties.template conf/flume.conf 

运行水槽我用这个命令

>> $ bin/flume-ng agent -n agent -f conf/flume.conf 

却是露出了一些警告,如果你想从Log4j追加,那么你需要添加输出

[email protected]:/home/hduser/downloads/flume-ng$ sudo bin/flume-ng agent -n agent -f conf/flume.conf 
Warning: No configuration directory set! Use --conf <dir> to override. 
Warning: JAVA_HOME not set! 
+ exec /usr/bin/java -Xmx20m -cp '/home/hduser/downloads/flume-ng/lib/*' -Djava.library.path= org.apache.flume.node.Application -n agent -f conf/flume.conf 
log4j:WARN No appenders could be found for logger (org.apache.flume.lifecycle.LifecycleSupervisor). 
log4j:WARN Please initialize the log4j system properly. 
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 

回答

4

-c conf到你的命令行。例如:

export JAVA_HOME=... # recommended to set JAVA_HOME properly 
./bin/flume-ng agent -c conf -f conf/flume.conf -n agent 
+0

我有'在我的命令-c',还是那里有问题'水槽-NG剂--conf的/ opt/flume/conf/-f /opt/flume/conf/flume.conf -Dflume.root.logger = DEBUG -n supply_agent' – prayagupd

0

请设置HADOOP_HOME env变量。

1

你必须设置JAVA_HOME路径flume-env.sh文件

出口JAVA_HOME = /user/lib/jvm/java_version_name