遇到报错:Could not find or load main class org.apache.flume.node.Application

通常都是没有设置flume的路径造成的,解决方案如下:

echo -e "export FLUME_HOME=/usr/local/flume\nexport PATH=$PATH:$FLUME_HOME/bin" >> ~/.bashrc
source ~/.bashrc

FLUME_HOME后面是flume的路径,之后即可正常启动。

Related Posts: Could not find or load main class org.apache.flume.node.Application解决方案 :

avatar