错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty

今天安装sqoop查看版本报错错误:

找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty

查看hbase版本也出错

错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty

hbase version
错误: 找不到或无法加载主类 org.apache.hadoop.hbase.util.GetJavaProperty
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hadoop/hadoop-2.7.7/share/hadoop/common/lib/slf4j-log4j12-1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hbase-2.1.5/lib/client-facing-thirdparty/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
HBase 2.1.5
Source code repository git://29d022b85cbf/opt/hbase-rm/output/hbase revision=0ba7cc01a13dbb7fec8e6c5d599fc8b4936bae61
Compiled by hbase-rm on Tue May 28 22:25:02 UTC 2019
From source with checksum ff5513ccea4251cc1391a57ddad10edd

出现此错误的原因是hadoop和hbase版本不兼容,我用的hadoop2.7.7,hbase是2.1.5,

然后hbase更换版本为2.0.6

你可能感兴趣的:(遇到过的BUG,hbase,sqoop,hadoop)