Hadoop CDH4错误:SLF4J:无法加载类“org.slf4j.impl.StaticLoggerBinder”

时间:2014-09-07 20:27:29

标签: java ubuntu cloudera

我正在使用ubuntu 14.04。 CDH4.7 我按照以下链接中给出的步骤进行安装 http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH4/latest/CDH4-Quick-Start/cdh4qs_topic_3_2.html 问题是我无法启动数据节点。我收到错误

naveensrikanthd@ubuntu:/$ for x in `cd /etc/init.d ; ls hadoop-hdfs-*` ; do sudo service $x start ; done
[sudo] password for naveensrikanthd: 
 * Starting Hadoop datanode: 
starting datanode, logging to /var/log/hadoop-hdfs/hadoop-hdfs-datanode-ubuntu.out
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.
 * Starting Hadoop namenode: 
namenode running as process 15437. Stop it first.
 * Starting Hadoop secondarynamenode: 
secondarynamenode running as process 3061. Stop it first.
naveensrikanthd@ubuntu:/$ jps
7467 RunJar
8048 RunJar
18363 Jps

没有Hadoop进程正在运行,上面[slf4J]给出的这三个语句在namenode,datanode之间进行了混乱:

下面给出的是路径的日志文件: /var/log/hadoop-hdfs/hadoop-hdfs-datanode-ubuntu.out SLF4J:无法加载类" org.slf4j.impl.StaticLoggerBinder"。 SLF4J:默认为无操作(NOP)记录器实现 ulimit -a for user hdfs

我应该怎么做才能摆脱这个错误,任何人都可以帮助我们渡过这个错误

1 个答案:

答案 0 :(得分:1)

输出显示实际上名称节点已在运行。你应该仔细检查你认为他们应该在哪里运行以及你的配置说什么,因为它说你已经成功了。

log4j的错误与Hadoop功能无关。