运行hbase的命令出现如下提示,意思是hadoop和hbase都存在slf4j-log4j12***.jar包,只是版本不同,需要删除一个即可,原则删除低版本。
我删除了/usr/local/hadoop/lib/slf4j-log4j12-1.4.3.jar
hbase(main):001:0> list
TABLE
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hbase/lib/slf4j-log4j12-1.6.4.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/lib/slf4j-log4j12-1.4.3.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See for an explanation.
hbase_fudk
1 row(s) in 2.0100 seconds
=> ["hbase_fudk"]
删除后正常了
hbase(main):001:0> list
TABLE
hbase_fudk
1 row(s) in 1.9840 seconds
=> ["hbase_fudk"]
hbase(main):002:0>
阅读(2127) | 评论(0) | 转发(0) |