-Re: hbase-0.90.4 unable to execute java application to retrieve hbase table
Have you added the required jar in you ur project??
On Thu, Jan 5, 2012 at 3:04 PM, Neetu Ojha <[EMAIL PROTECTED]> wrote:
> 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:
> at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:139)
> at MyLittleHBaseClient.main(MyLittleHBaseClient.java:21)
> Caused by: java.lang.ClassNotFoundException:
> 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
> Thanks & Regards
> Neetu sharma
width="728" height="90" scrolling="no" border="0" marginwidth="0"