Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A7B279312 for ; Thu, 5 Jan 2012 10:25:04 +0000 (UTC) Received: (qmail 95723 invoked by uid 500); 5 Jan 2012 10:25:03 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 94495 invoked by uid 500); 5 Jan 2012 10:24:40 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 94465 invoked by uid 99); 5 Jan 2012 10:24:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 10:24:36 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ustaudinger@gmail.com designates 209.85.215.169 as permitted sender) Received: from [209.85.215.169] (HELO mail-ey0-f169.google.com) (209.85.215.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 Jan 2012 10:24:31 +0000 Received: by eabm6 with SMTP id m6so323031eab.14 for ; Thu, 05 Jan 2012 02:24:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=r3GK+oTN/mritadCgFO/DOWFeHdpG0G5lX5QcDk7h+4=; b=uD27cZI5t97qbC999jd+a/MoOO+tPyaOJdz82D6VgondWD5FpMSBLVtdphbQOKklK8 w/oDKCydlT87RkqRdeV6KdxIe+pK+TgUONrCE7Ij1Q3tLHYy2C+bHsTL/RrVNniR7MiY 9uWP+Kp8t66Abpn4tIU3zRM7DgeCY08pcIUeU= Received: by 10.204.164.137 with SMTP id e9mr544024bky.48.1325759050189; Thu, 05 Jan 2012 02:24:10 -0800 (PST) MIME-Version: 1.0 Sender: ustaudinger@gmail.com Received: by 10.204.120.131 with HTTP; Thu, 5 Jan 2012 02:23:49 -0800 (PST) In-Reply-To: References: From: Ulrich Staudinger Date: Thu, 5 Jan 2012 11:23:49 +0100 X-Google-Sender-Auth: cjXXw4MQ3f4cQlpitEf9mxZR8wM Message-ID: Subject: Re: hbase-0.90.4 unable to execute java application to retrieve hbase table To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=bcaec52c68dd3e8b2904b5c55520 --bcaec52c68dd3e8b2904b5c55520 Content-Type: text/plain; charset=UTF-8 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 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.(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://www.activequant.com Connect online: https://www.xing.com/profile/Ulrich_Staudinger --bcaec52c68dd3e8b2904b5c55520--