hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neetu Ojha <neetuojha.c...@gmail.com>
Subject Re: hbase-0.90.4 unable to execute java application to retrieve hbase table
Date Thu, 05 Jan 2012 11:41:39 GMT
Thanks A lot!

 Well Ulrich i am not at alll aware of maven!!!


Regards
Neetu Sharma

On Thu, Jan 5, 2012 at 3:53 PM, Ulrich Staudinger <
ustaudinger@activequant.com> wrote:

> That's more a java related question.
> With maven it is pretty straightforward to get this up and running, without
> altering the CLASSPATH or even having HBase installed on your machine.
>
> Do you use maven?
>
>
>
> On Thu, Jan 5, 2012 at 10:34 AM, Neetu Ojha <neetuojha.cdac@gmail.com
> >wrote:
>
> > Hello,
> >
> >
> > I have installed HBase-0.90.4 on my local machine and as shown in "quick
> > start " i installed/configured in standalone mode using my local file
> > system of fedora-15. I have not started hadoop daemon assuming that its
> not
> > needed as its completely standalone config. All the required libs that
> > comes with the package are there. I faced lot of difficulty in compiling
> > the simple code itself.I set CLASSPATH, in hbase-env.sh set
> HBASE_CLASSPATH
> > but now it doen'n run. I took a code from the net and has created the
> > required table in the hbase.
> >
> > When   I am trying to execute a very basic java code using Hbase-0.90.4
> > API. some how it compiled but on execution it throws exception:
> > java MyLittleHBaseClient
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/commons/logging/LogFactory
> >    at
> org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:139)
> >    at MyLittleHBaseClient.main(MyLittleHBaseClient.java:21)
> > Caused by: java.lang.ClassNotFoundException:
> > org.apache.commons.logging.LogFactory
> >    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
> >    at java.security.AccessController.doPrivileged(Native Method)
> >    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
> >    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
> >    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
> >    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
> >    ... 2 more
> >
> >
> > Kindly see if any one has experienced the same issue at any point of
> time.
> > As for me its a long way ahead, hbase over HDFS and then hadoop
> > cluster.......
> >
> >
> >  Thanks & Regards
> >  Neetu sharma
> >
>
>
>
> --
> Ulrich Staudinger
>
> <http://goog_958005736>http://www.activequant.com
> Connect online: https://www.xing.com/profile/Ulrich_Staudinger
>

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