Flume找不到java(java:command not found,exec:java:not found)

时间:2014-11-20 02:13:05

标签: java apache cloudera flume cloudera-cdh

]# /etc/init.d/flume-master start
Starting Flume master daemon (flume-master): starting master, logging to /var/log/flume/flume-flume-master-localhost.localdomain.log
/usr/lib/flume/bin/flume: line 193: java: command not found
/usr/lib/flume/bin/flume: line 271: exec: java not found

当我执行flume-master和flume-node时,会出现该消息。 我只是按照水槽安装指南(http://www.cloudera.com/content/cloudera/en/documentation/archives/cdh3/v3u6/CDH3-Installation-Guide/cdh3ig_topic_10.html

进行操作

我使用jdk1.8.0_25并在〜/ .bashrc和/ etc / profile上设置java。 请帮帮我

1 个答案:

答案 0 :(得分:0)

/etc/flume-ng/conf.empty/flume-env.sh

中添加此行
  

JAVA_HOME = / usr / lib中/ JVM / JAVA -7-预言

(JAVA_HOME根据您的系统)