[root@JXQ-23-27-40 ~]# hadoop fs -ls /
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
Found 1 items
drwxrwx--- - mapred hadoop 0 2015-07-06 16:19 /user
刚装完CDH5.3,执行hadoop命令时,总是报找不到类:
SLF4J: Failed to load class “org.slf4j.impl.StaticLoggerBinder”
我们可以查看一下哪些有slf4j的jar包:
find -name ‘slf4j*’
如我的环境引用的是zookeeper的slf4j配置。
rpm -qa |grep zookeeper
可以看出zookeeper是4.7版本(以前装过CDH4.7),而刚装完的hadoop是5.3版本
rpm -e zookeeper-3.4.5+26-1.cdh4.7.0.p0.17.el6.x86_64 –nodeps
yum -y install zookeeper(自动会根据源装cdh5.3对应的zookeeper)
重新查看一下:
[root@JXQ-23-27-38 /]# hadoop fs -ls /
Found 1 items
drwxrwx--- - mapred hadoop 0 2015-07-06 16:19 /user