错误: 找不到或无法加载主类 org.apache.flume.tools.GetJavaProperty

[root@master ~]# flume-ng version错误: 找不到或无法加载主类 org.apache.flume.tools.GetJavaProperty_第1张图片

[root@master ~]# cd /usr/local/flume/bin

[root@master bin]# vim flume-ng

 配置文件中加入红框代码
# determine HBASE java.library.path and use that for flume
    local HBASE_CLASSPATH=""
    local HBASE_JAVA_LIBRARY_PATH=$(HBASE_CLASSPATH="$FLUME_CLASSPATH" \
        ${HBASE_IN_PATH} org.apache.flume.tools.GetJavaProperty \
        java.library.path 2>/dev/null | grep hbase)

[root@master bin]# flume-ng version
错误: 找不到或无法加载主类 org.apache.flume.tools.GetJavaProperty_第2张图片

你可能感兴趣的:(flume,大数据)