启动HBase脚本start-hbase.sh时报Class path contains multiple SLF4J bindings.解决方法

时间:2023-03-09 09:52:50
启动HBase脚本start-hbase.sh时报Class path contains multiple SLF4J bindings.解决方法

1. 使用start-hbase.sh启动HBase时报Class path contains multiple SLF4J bindings.错误,原因是jar包冲突导致的。所以,对于和Hadoop的jar包冲突的,可以将其他jar包删除,如果你不确定是否删除正确,可以将其他的jar包复制备份或者修改名称,确保操作以后失败了,还可以找回。

启动HBase脚本start-hbase.sh时报Class path contains multiple SLF4J bindings.解决方法

 解决方法:

#进入/opt/hbase-2.0./lib目录
[root@hadoop1 ~]# cd /opt/hbase-2.0.5/lib
[root@hadoop1 lib]# mv slf4j-log4j12-1.7..jar slf4j-log4j12-1.7..jar-copy