Error: Could not find or load main class org.apache.flume.tools.GetJavaProperty
问题:
[root@master conf]# flume-ng version
Error: Could not find or load main class org.apache.flume.tools.GetJavaProperty
解决方法:
将Hbase的配置文件hbas-env.sh修改为:
1、将hbase的hbase.env.sh的一行配置注释掉
# Extra Java CLASSPATH elements. Optional.
#export HBASE_CLASSPATH=/home/hadoop/hbase/conf
2、或者将HBASE_CLASSPATH改为JAVA_CLASSPATH,配置如下
# Extra Java CLASSPATH elements. Optional.
export JAVA_CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar