Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9210F105CE for ; Thu, 12 Dec 2013 14:11:44 +0000 (UTC) Received: (qmail 47738 invoked by uid 500); 12 Dec 2013 14:11:36 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 47615 invoked by uid 500); 12 Dec 2013 14:11:35 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 47608 invoked by uid 99); 12 Dec 2013 14:11:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 14:11:35 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,HTML_OBFUSCATE_05_10,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of smarty.juice@gmail.com designates 209.85.219.42 as permitted sender) Received: from [209.85.219.42] (HELO mail-oa0-f42.google.com) (209.85.219.42) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Dec 2013 14:11:28 +0000 Received: by mail-oa0-f42.google.com with SMTP id i4so470910oah.15 for ; Thu, 12 Dec 2013 06:11:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=8jMzXu1XWkoWsw/deAVvoPMPKhAQYm+f2kpCMQQxT3M=; b=OkGbS6StysLDeGDhbEyeB8LH/KGOMA3kI4Up2F3QACk1w+y/pp50bFXNH2+Nu1HoZA FUmb4HlLQQ6F+TewIZuZM8pOz5KeC2MMbReorSTxMzf24kw33BtcG+5H29tMCwqOLYmh nSeFc2l8lTs2vS4Mj/t1BYDRXsYcogjA+7jaxYZV9qW21lZsAk8ppz4SKcbzmSlsdj4U qdyLNlvDtQA57fTg1knpinDKAhPBQb46bi1jKuzV5J7LDiCQwpdb6U6gCnBREp29LeIp R47VL7f00T2ODqiKMaxkrfmjjJWWKS6zWHQw1x+6cReruLIlAGriWlSkoqpNFDwNxRME o2XQ== MIME-Version: 1.0 X-Received: by 10.182.149.168 with SMTP id ub8mr411088obb.74.1386857467896; Thu, 12 Dec 2013 06:11:07 -0800 (PST) Received: by 10.182.28.165 with HTTP; Thu, 12 Dec 2013 06:11:07 -0800 (PST) In-Reply-To: References: Date: Thu, 12 Dec 2013 09:11:07 -0500 Message-ID: Subject: Re: Error starting hadoop-2.2.0 From: Hardik Pandya To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001a11348500ba681404ed56eaf5 X-Virus-Checked: Checked by ClamAV on apache.org --001a11348500ba681404ed56eaf5 Content-Type: text/plain; charset=ISO-8859-1 do you have multiple or mixed version SLF4J jars in your classpath, how about downgrading your SLF4J to 1.5.5 or 1.5.6? please let me know how it works out for you, thanks from the warning slf4j-api version does not match that of the binding An SLF4J binding designates an artifact such as *slf4j-jdk14.jar* or *slf4j-log4j12.jar* used to *bind* slf4j to an underlying logging framework, say, java.util.logging and respectively log4j. Mixing mixing different versions of *slf4j-api.jar* and SLF4J binding can cause problems. For example, if you are using slf4j-api-1.7.5.jar, then you should also use slf4j-simple-1.7.5.jar, using slf4j-simple-1.5.5.jar will not work. NOTE From the client's perspective all versions of slf4j-api are compatible. Client code compiled with *slf4j-api-N.jar* will run perfectly fine with *slf4j-api-M.jar* for any N and M. You only need to ensure that the version of your binding matches that of the slf4j-api.jar. You do not have to worry about the version of slf4j-api.jar used by a given dependency in your project. You can always use any version of *slf4j-api.jar*, and as long as the version of *slf4j-api.jar* and its binding match, you should be fine. At initialization time, if SLF4J suspects that there may be a api vs. binding version mismatch problem, it will emit a warning about the suspected mismatch. On Thu, Dec 12, 2013 at 2:52 AM, Ahmed Eldawy wrote: > Hi, > I've been using Hadoop 1.x for a few months and it was working fine. Now, > I want to migrate to hadoop-2.x but I'm having troubles starting it. In > Hadoop 1.x, I used to configure core-site.xml and mapred-site.xml to be > able to start master and slave on one machine. > In hadoop-2.2.0, I followed the instructions on > http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/hadoop-common/SingleCluster.html > Whenever I start yarn or HDFS I find this error in the logs > java.lang.NoSuchMethodError: > org.slf4j.helpers.MessageFormatter.format(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingTuple; > at org.slf4j.impl.Log4jLoggerAdapter.info > (Log4jLoggerAdapter.java:345) > at org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67) > at org.mortbay.log.Log.(Log.java:79) > at org.mortbay.component.Container.add(Container.java:200) > at org.mortbay.component.Container.update(Container.java:164) > at org.mortbay.component.Container.update(Container.java:106) > at org.mortbay.jetty.Server.setConnectors(Server.java:160) > at org.mortbay.jetty.Server.addConnector(Server.java:134) > at org.apache.hadoop.http.HttpServer.(HttpServer.java:241) > at org.apache.hadoop.http.HttpServer.(HttpServer.java:174) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.startInfoServer(DataNode.java:305) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNode.java:664) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.(DataNode.java:259) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1727) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.instantiateDataNode(DataNode.java:1642) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.createDataNode(DataNode.java:1665) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:1837) > at > org.apache.hadoop.hdfs.server.datanode.DataNode.main(DataNode.java:1858) > 2013-12-12 10:20:12,541 INFO org.apache.hadoop.util.ExitUtil: Exiting with > status 1 > > Also there is a warning that seems to be related. > SLF4J: The requested version 1.6.99 by your slf4j binding is not > compatible with [1.5.5, 1.5.6] > SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further > details. > > Any suggestions of how to fix it? > > > Best regards, > Ahmed Eldawy > --001a11348500ba681404ed56eaf5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

do you have multiple or mixed version=A0SLF4J jars = in your classpath, how about downgrading your SLF4J to 1.5.5 or 1.5.6?

please let me know how it w= orks out for you, thanks

from the warning


An SLF4J binding designates an artifact such as=A0slf4j-jdk14.jar= =A0or=A0slf4j-log4j12.jar=A0used to=A0bind=A0slf4j to an = underlying logging framework, say, java.util.logging and respectively log4j= .

Mixing mixing different versions of=A0slf4j-api.jar=A0and SLF4J bi= nding can cause problems. For example, if you are using slf4j-api-1.7.5.jar= , then you should also use slf4j-simple-1.7.5.jar, using slf4j-simple-1.5.5= .jar will not work.

NOTE=A0From the c= lient's perspective all versions of slf4j-api are compatible. Client co= de compiled with=A0slf4j-api-N.jar=A0will run perfectly fine with= =A0slf4j-api-M.jar=A0for any N and M. You only need to ensure that= the version of your binding matches that of the slf4j-api.jar. You do not = have to worry about the version of slf4j-api.jar used by a given dependency= in your project. You can always use any version of=A0slf4j-api.jar, and as long as the version of=A0slf4j-api.jar=A0and its binding= match, you should be fine.

At initialization tim= e, if SLF4J suspects that there may be a api vs. binding version mismatch p= roblem, it will emit a warning about the suspected mismatch.



On Thu,= Dec 12, 2013 at 2:52 AM, Ahmed Eldawy <aseldawy@gmail.com>= wrote:
Hi,
=
=A0I've been using Hadoop 1.x for a few months and it was working= fine. Now, I want to migrate to hadoop-2.x but I'm having troubles sta= rting it. In Hadoop 1.x, I used to configure core-site.xml and mapred-site.= xml to be able to start master and slave on one machine.
In hadoop-2.2.0, I followed the instructions on http://hadoop.apache.org/docs/r2.2.0/hadoop-project-dist/= hadoop-common/SingleCluster.html
Whenever I start yarn or HDFS I find this error in the logs
java.l= ang.NoSuchMethodError: org.slf4j.helpers.MessageFormatter.format(Ljava/lang= /String;Ljava/lang/Object;Ljava/lang/Object;)Lorg/slf4j/helpers/FormattingT= uple;
=A0=A0=A0=A0=A0=A0=A0 at org.slf4j.impl.Log4jLoggerAdapter.info(Log4jL= oggerAdapter.java:345)
=A0=A0=A0=A0=A0=A0=A0 at org.mortbay.log.Slf4jLog.info(Slf4jLog.java:67)
=A0=A0=A0=A0=A0=A0=A0 at org.mortbay.log.Log.<clinit>(Log.java:79)=A0=A0=A0=A0=A0=A0=A0 at org.mortbay.component.Container.add(Container.jav= a:200)
=A0=A0=A0=A0=A0=A0=A0 at org.mortbay.component.Container.update(C= ontainer.java:164)
=A0=A0=A0=A0=A0=A0=A0 at org.mortbay.component.Contai= ner.update(Container.java:106)
=A0=A0=A0=A0=A0=A0=A0 at org.mortbay.jetty.Server.setConnectors(Server.java= :160)
=A0=A0=A0=A0=A0=A0=A0 at org.mortbay.jetty.Server.addConnector(Ser= ver.java:134)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.hadoop.http.HttpServer= .<init>(HttpServer.java:241)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.hadoop.http.HttpServer.<init>(Htt= pServer.java:174)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.hadoop.hdfs.server= .datanode.DataNode.startInfoServer(DataNode.java:305)
=A0=A0=A0=A0=A0=A0= =A0 at org.apache.hadoop.hdfs.server.datanode.DataNode.startDataNode(DataNo= de.java:664)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.hadoop.hdfs.server.datanode.DataNode.&l= t;init>(DataNode.java:259)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.hadoop= .hdfs.server.datanode.DataNode.makeInstance(DataNode.java:1727)
=A0=A0= =A0=A0=A0=A0=A0 at org.apache.hadoop.hdfs.server.datanode.DataNode.instanti= ateDataNode(DataNode.java:1642)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.hadoop.hdfs.server.datanode.DataNode.cr= eateDataNode(DataNode.java:1665)
=A0=A0=A0=A0=A0=A0=A0 at org.apache.had= oop.hdfs.server.datanode.DataNode.secureMain(DataNode.java:1837)
=A0=A0= =A0=A0=A0=A0=A0 at org.apache.hadoop.hdfs.server.datanode.DataNode.main(Dat= aNode.java:1858)
2013-12-12 10:20:12,541 INFO org.apache.hadoop.util.ExitUtil: Exiting with = status 1

Also there is a warning that seems to be related.
= SLF4J: The requested version 1.6.99 by your slf4j binding is not compatible= with [1.5.5, 1.5.6]
SLF4J: See
http://www.slf4j.org/codes.html#version_mismatch for fur= ther details.

Any suggestions of how to fix it?


Best regards,
Ahmed Eldawy

--001a11348500ba681404ed56eaf5--