Hbase2.2.2 has SLF4J-JAVA package conflicts causing problems warning (Class path contains multiple SLF4J bindings.)

1. Problem: After installing Hadoop3.1.3 version and then installing Hbase2.2.2, an SLF4J package conflict warning appears.

Insert image description here

2. Reasons:

Hbase starts the hbase shell and runs the command to report that Class path contains multiple SLF4J bindings. The error is because the jar package conflicts, so for the jar package that conflicts with the hadoop jar package, you can delete other jar packages. If you are not sure whether the deletion is correct, you can Copy and back up other jar packages or modify their names to ensure that they can be retrieved if the operation fails in the future.

3. Solution

1. Remove any conflicting java package related to hadoop or Hbase files

rm -f   /hadoop/***/slf4j-log4j12-1.7.5.jar 

2. Change the name of the conflicting java package in hadoop or hbase

 cd /home/hadoop/***/hbase-0.98.6-cdh5.3.6/lib/

mv slf4j-log4j12-1.7.5.jar slf4j-log4j12-1.7.5.jar-copy

Guess you like

Origin blog.csdn.net/huangdxian/article/details/121229677