hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Busbey <bus...@cloudera.com>
Subject Re: Connection via API to Hbase installation - java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils
Date Mon, 27 Oct 2014 21:14:33 GMT
Hi Benjamin,

This is expected behavior. Commons Lang 3 is not backwards compatible with
Commons Lang 2.x. They use different java packages in an effort to ease
projects that have to rely on both while transitioning.

-Sean


On Mon, Oct 27, 2014 at 9:50 AM, Sznajder ForMailingList <
bs4mailinglist@gmail.com> wrote:

> Many thanks!
>
> Strangely, when adding commons-lang 3.2, it failed.
> Adding back the 2.6 it worked!
>
>
>
> On Mon, Oct 27, 2014 at 4:10 PM, Ted Yu <yuzhihong@gmail.com> wrote:
>
> > Which release of HBase are you using ?
> > If 0.98.x, here is the dependency on commons-lang:
> >     <commons-lang.version>2.6</commons-lang.version>
> >
> > Cheers
> >
> > On Mon, Oct 27, 2014 at 7:03 AM, Sznajder ForMailingList <
> > bs4mailinglist@gmail.com> wrote:
> >
> > > Hi
> > >
> > > I want to connect from my windows laptop to an installed HBASE
> > >
> > > When running the code , I get the following error:
> > >
> > > java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils
> > >     at org.apache.hadoop.hbase.HConstants.<clinit>(HConstants.java:907)
> > >     at
> > >
> > >
> >
> org.apache.hadoop.hbase.client.HConnectionKey.<clinit>(HConnectionKey.java:42)
> > >     at
> > >
> > >
> >
> org.apache.hadoop.hbase.client.HConnectionManager.getConnection(HConnectionManager.java:265)
> > >     at
> > > org.apache.hadoop.hbase.client.HBaseAdmin.<init>(HBaseAdmin.java:192)
> > >
> > >
> > > However, I added to the classpath the jar commons-lang3-3.3.2
> > >
> > > Regards
> > > Benjamin
> > >
> >
>



-- 
Sean

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message