You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by lars hofhansl <lh...@yahoo.com> on 2012/06/02 14:53:45 UTC

Re: java.lang.ClassNotFoundException: com.google.protobuf.Message

How are you setting up your M/R jobs?
A while ago (0.92 I think) I added the necessary protobuf jars to the jar dependencies in HBase's TableMapReduceUtil.

-- Lars



________________________________
 From: Amit Sela <am...@infolinks.com>
To: user@hbase.apache.org 
Sent: Tuesday, May 29, 2012 8:39 AM
Subject: Re: java.lang.ClassNotFoundException: com.google.protobuf.Message
 
I do.

I tried with protobuf-java-2.4.0a.jar that ships with HBase 0.94, and also
with the older version I had - protobuf-java-2.3.0.jar.

Both times I got the same error..

On Tue, May 29, 2012 at 6:28 PM, Stack <st...@duboce.net> wrote:

> On Tue, May 29, 2012 at 6:13 AM, Amit Sela <am...@infolinks.com> wrote:
> >> 12/05/29 12:32:02 INFO mapred.JobClient: Task Id :
> > attempt_201205291226_0001_r_000000_0, Status : FAILED
> > Error: java.lang.ClassNotFoundException: com.google.protobuf.Message
>
> You have protobuf on your CLASSPATH when the job runs?
>
> St.Ack
>

Re: java.lang.ClassNotFoundException: com.google.protobuf.Message

Posted by yangyang <ya...@chianyu.com>.
NNever <nn...@...> writes:

> 
> I'm sorry i made a mistack. my protobuf's version is 2.4.0.a.jar. I got it
> from Hbase0.94's lib.
> 
> 2012/6/6 Amit Sela <am...@...>
> 
> > you mean protobuf-java-2.4.04.jar or there is a new version like you
> > wrote protobuf-java-2.4.9.a.jar ?
> >
> >
> > On Mon, Jun 4, 2012 at 6:09 AM, NNever <nn...@...> wrote:
> >
> > > Hi  Amit,  I meet this error on the client side when I upgrade 0.92.1 to
> > > 0.94.
> > > I just put protobuf-java-2.4.9.a.jar into the classpath then the problem
> > > sloved.
> > >
> > > if you're sure you have protobuf on your CLASSPATH when the job runs,
> >  have
> > > you just try restart M/R or even Hadoop?
> > > I met some strange classNotFound Exceptions when I run mapR before, just
> > > restart, and everything may return well.
> > >
> >
>
I got a way. just export the hadoop classpath like this: export 
HADOOP_CLASSPATH=/home/chianyu/hbase-0.94.0/hbase-
0.94.0.jar:/home/chianyu/hadoop-1.0.3/hadoop-core-1.0.3.jar:/home/chianyu/hbase-
0.94.0/lib/zookeeper-3.4.3.jar:/home/chianyu/hbase-0.94.0/lib/protobuf-java-
2.4.0a.jar
that's all ok!



Re: java.lang.ClassNotFoundException: com.google.protobuf.Message

Posted by NNever <nn...@gmail.com>.
I'm sorry i made a mistack. my protobuf's version is 2.4.0.a.jar. I got it
from Hbase0.94's lib.

2012/6/6 Amit Sela <am...@infolinks.com>

> you mean protobuf-java-2.4.04.jar or there is a new version like you
> wrote protobuf-java-2.4.9.a.jar ?
>
>
> On Mon, Jun 4, 2012 at 6:09 AM, NNever <nn...@gmail.com> wrote:
>
> > Hi  Amit,  I meet this error on the client side when I upgrade 0.92.1 to
> > 0.94.
> > I just put protobuf-java-2.4.9.a.jar into the classpath then the problem
> > sloved.
> >
> > if you're sure you have protobuf on your CLASSPATH when the job runs,
>  have
> > you just try restart M/R or even Hadoop?
> > I met some strange classNotFound Exceptions when I run mapR before, just
> > restart, and everything may return well.
> >
>

Re: java.lang.ClassNotFoundException: com.google.protobuf.Message

Posted by Amit Sela <am...@infolinks.com>.
you mean protobuf-java-2.4.04.jar or there is a new version like you
wrote protobuf-java-2.4.9.a.jar ?


On Mon, Jun 4, 2012 at 6:09 AM, NNever <nn...@gmail.com> wrote:

> Hi  Amit,  I meet this error on the client side when I upgrade 0.92.1 to
> 0.94.
> I just put protobuf-java-2.4.9.a.jar into the classpath then the problem
> sloved.
>
> if you're sure you have protobuf on your CLASSPATH when the job runs,  have
> you just try restart M/R or even Hadoop?
> I met some strange classNotFound Exceptions when I run mapR before, just
> restart, and everything may return well.
>

Re: java.lang.ClassNotFoundException: com.google.protobuf.Message

Posted by NNever <nn...@gmail.com>.
Hi  Amit,  I meet this error on the client side when I upgrade 0.92.1 to
0.94.
I just put protobuf-java-2.4.9.a.jar into the classpath then the problem
sloved.

if you're sure you have protobuf on your CLASSPATH when the job runs,  have
you just try restart M/R or even Hadoop?
I met some strange classNotFound Exceptions when I run mapR before, just
restart, and everything may return well.