每次执行 hbase shell 时,出现如下提示:

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/itcast/hbase-0.98.18-hadoop2/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/itcast/hadoop-2.6.0/share/hadoop/common/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

从提示信息来看,是hadoop的slf4j 与hbase的slf4j jar包发生了冲突,移除其中一个即可

执行:

rm -f /itcast/hbase-0.98.18-hadoop2/lib/slf4j-log4j12-1.6.4.jar

移除jar包即可

相关文章:

  • 2021-12-25
  • 2021-12-19
  • 2022-01-07
  • 2021-07-09
  • 2021-05-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-01
  • 2021-08-17
  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-30
相关资源
相似解决方案