Could not find or load main class org.apache.flume.tools.GetJavaProperty
如果之前已安装了Hadoop和HBase,启动Flume时会报错:
Could not find or load main class org.apache.flume.tools.GetJavaProperty
解决方法:
打开HBase的hbase-env.sh文件
vim /hbase/conf/hbase-env.sh
1.注释HBASE_CLASSPATH
#export HBASE_CLASSPATH=/hbase/conf
2.把HBASE_CLASSPATH改为JAVA_CLASSPATH
export JAVA_CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar