Return-Path: Delivered-To: apmail-hbase-user-archive@www.apache.org Received: (qmail 79603 invoked from network); 31 Aug 2010 11:42:24 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 Aug 2010 11:42:24 -0000 Received: (qmail 95619 invoked by uid 500); 31 Aug 2010 11:42:23 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 95229 invoked by uid 500); 31 Aug 2010 11:42:19 -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 95206 invoked by uid 99); 31 Aug 2010 11:42:18 -0000 Received: from Unknown (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 11:42:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of shujamughal@gmail.com designates 74.125.82.51 as permitted sender) Received: from [74.125.82.51] (HELO mail-ww0-f51.google.com) (74.125.82.51) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Aug 2010 11:41:57 +0000 Received: by wwb39 with SMTP id 39so100541wwb.20 for ; Tue, 31 Aug 2010 04:41:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=uvZbjoOQuYciW2lcWneV+RumqiJZf0494ilDxwMz7Ew=; b=skmVjk9Wpkjxm+99THnegAne/y6CmPiJOv/sb+kCTQc0fskdDkXT5vMFZuyP4YB3RD p4SKrJl0zIH+bmSL1hUlwyENFpA5kO6RY/6skJex7KVeJiXTKbvXLLmRu/lA2jqJf7gM Ki9ubkKiTyJM2IAgtB4akBgCqYOv5ZGomtYZ8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ub0qKFAA/pjdvPU1gj1mZuM6bCyNZjSvDIzlLknjWDBQEG5RBmCPDj6wn8cGaXtOrc uwpgZLU4D4H+wfyD8ispQPMX/QnDmmBcrGELbxqlprpA1DRUXB7KS045NiCkq5duMV2K Aa3HtGsqB5GU6ulpHjrb2MBeS6ZjEv9n1KIKQ= MIME-Version: 1.0 Received: by 10.216.38.207 with SMTP id a57mr1514433web.40.1283254365653; Tue, 31 Aug 2010 04:32:45 -0700 (PDT) Received: by 10.216.12.14 with HTTP; Tue, 31 Aug 2010 04:32:45 -0700 (PDT) In-Reply-To: References: Date: Tue, 31 Aug 2010 16:32:45 +0500 Message-ID: Subject: Re: Getting data from Hbase from client/remote computer From: Shuja Rehman To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=0016367fa2d09f0bb8048f1cf034 X-Virus-Checked: Checked by ClamAV on apache.org --0016367fa2d09f0bb8048f1cf034 Content-Type: text/plain; charset=ISO-8859-1 Hi All I have also try by enabling the web server on the remote machine and use the following code. String host="myserver.mycompany.com "; int port=80; String protocol = "http"; HBaseConfiguration config = new HBaseConfiguration(); config.addResource(new URL(protocol,host,port,"/hbase-site.xml")); but the same error. Can anybody help me out?? Thanks On Tue, Aug 31, 2010 at 12:38 PM, Shuja Rehman wrote: > Hi > I am trying to implement according to documentation and i also added this > line to connect remote server > > HBaseConfiguration config = new HBaseConfiguration(); > config.set("hbase.master", "myserver.mycompany.com:60000"); > > but I am getting following exception > > WARNING: instantiating HBaseConfiguration() is deprecated. Please use > HBaseConfiguration#create() to construct a plain Configuration > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/zookeeper/KeeperException > at > org.apache.hadoop.hbase.client.HConnectionManager.getClientZooKeeperWatcher(HConnectionManager.java:176) > ... > > Is anything missing?? > > Thanks > > > On Fri, Aug 27, 2010 at 1:33 AM, Jean-Daniel Cryans wrote: > >> Check the documentation: >> >> >> http://hbase.apache.org/docs/r0.20.6/api/org/apache/hadoop/hbase/client/package-summary.html#overview >> >> J-D >> >> On Thu, Aug 26, 2010 at 12:41 PM, Shuja Rehman >> wrote: >> > Hi All >> > >> > I am new to hbase client API and want to know how to get data from hbase >> > from cleint/remote machine. The target is to develop a java program >> which >> > should connect to hbase server and then get results from it. >> > >> > Anyone have any example??? >> > >> > Thanks >> > >> > -- >> > Regards >> > Shuja-ur-Rehman Baig >> > http://pk.linkedin.com/in/shujamughal >> > Cell: +92 3214207445 >> > >> > > > > -- > Regards > Shuja-ur-Rehman Baig > http://pk.linkedin.com/in/shujamughal > Cell: +92 3214207445 > -- Regards Shuja-ur-Rehman Baig http://pk.linkedin.com/in/shujamughal Cell: +92 3214207445 --0016367fa2d09f0bb8048f1cf034--