You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by yangyang <ya...@chianyu.com> on 2012/07/27 09:14:49 UTC

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

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!