hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yangyang <yangy...@chianyu.com>
Subject Re: java.lang.ClassNotFoundException: com.google.protobuf.Message
Date Fri, 27 Jul 2012 07:14:49 GMT
NNever <nneverwei@...> 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 <amits@...>
> 
> > 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 <nneverwei@...> 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!



Mime
View raw message