Return-Path: Delivered-To: apmail-hadoop-hbase-user-archive@locus.apache.org Received: (qmail 30370 invoked from network); 3 Jun 2008 16:20:33 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jun 2008 16:20:33 -0000 Received: (qmail 14700 invoked by uid 500); 3 Jun 2008 16:20:35 -0000 Delivered-To: apmail-hadoop-hbase-user-archive@hadoop.apache.org Received: (qmail 14683 invoked by uid 500); 3 Jun 2008 16:20:35 -0000 Mailing-List: contact hbase-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hbase-user@hadoop.apache.org Delivered-To: mailing list hbase-user@hadoop.apache.org Received: (qmail 14672 invoked by uid 99); 3 Jun 2008 16:20:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 09:20:35 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of maqiang1984@gmail.com designates 209.85.142.186 as permitted sender) Received: from [209.85.142.186] (HELO ti-out-0910.google.com) (209.85.142.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jun 2008 16:19:40 +0000 Received: by ti-out-0910.google.com with SMTP id d27so627557tid.9 for ; Tue, 03 Jun 2008 09:20:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=CBFb5T8V7qjwdem7MufT05QltGBjzVQwwsTpdpzvaLU=; b=jePhh/tceZXWwv+zPu7iSFvFaU461fydzhEd3UNSUN6/FWlwtDprul2Mna2KWvtnvXH2CjPrLCjZJiI8xTjvjQf+LJZvh/X6hWByTo69AQm27RHzUL2FvZIbd5r4npuykL46XmcE3ocLYdsfZgF/rGiijrh/1D62GCVql4Cqcbg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=gE0sHhWVXhFElzNc7eEGUnKEUd3XeYnUQovY8RoZpeuhNetL+2UwdVmtWMFK0oo/mVL/OjnJ6O7dDDo7lcZV9+WiWe/plJZlQ7N81IxJ8RjRY63tStss5oZz0BHqsDxb6t0WZu1yXUbkaFHwAqCq2Qom1QJUla5Klg5fIVhJtYA= Received: by 10.151.154.12 with SMTP id g12mr4406009ybo.110.1212509999788; Tue, 03 Jun 2008 09:19:59 -0700 (PDT) Received: by 10.151.145.16 with HTTP; Tue, 3 Jun 2008 09:19:59 -0700 (PDT) Message-ID: <2af70f430806030919m4f015401q9c51bead1b4cfde7@mail.gmail.com> Date: Wed, 4 Jun 2008 00:19:59 +0800 From: "ma qiang" To: hbase-user@hadoop.apache.org Subject: Re: How to access data from HBase on Tomcat ? In-Reply-To: <48456E80.90009@duboce.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2af70f430805231819p483386aemf09dcb4086e85952@mail.gmail.com> <2af70f430805270709j284b56edk3525699c1a812dc6@mail.gmail.com> <483C3C78.8040406@duboce.net> <2af70f430806030104qd23f673jaabe78cda4ee972f@mail.gmail.com> <484551AD.1040909@duboce.net> <2af70f430806030903i31efed84md52b8414fc1ba4ac@mail.gmail.com> <2af70f430806030905x55bda7ebt12842128c269264e@mail.gmail.com> <31a243e70806030908j72c9a3bftb86bd5533bf0a0b1@mail.gmail.com> <2af70f430806030912w69fb1bc8gfb8802321a36ea5f@mail.gmail.com> <48456E80.90009@duboce.net> X-Virus-Checked: Checked by ClamAV on apache.org Yes, I can. On Wed, Jun 4, 2008 at 12:17 AM, stack wrote: > On computer A, can you telnet to port 60000 on computer B? > > E.g. > >> telnet 192.168.1.8 60000 > > What do you see? > > Does it do something like this? > > Trying 192.168.1.8.. > Connected to 192.168.1.8 > Escape character is '^]'. > > > ... and just hang there? > > St.Ack > > > > ma qiang wrote: >> >> Yes,it is. >> >> >> On Wed, Jun 4, 2008 at 12:08 AM, Jean-Daniel Cryans >> wrote: >> >>> >>> Ok so you should have some "INFO ipc.Client: Retrying connect to server: >>> 192.168.1.8:60000" in your console. Do you? >>> >>> Jean-Daniel >>> >>> 2008/6/3 ma qiang : >>> >>> >>>> >>>> Besides , It's only a java app and haven't deployed in Tomcat . >>>> >>>> >>>> >>>> On Wed, Jun 4, 2008 at 12:03 AM, ma qiang wrote: >>>> >>>>> >>>>> I only wrote a java class in computer A which read data form remote >>>>> >>>> >>>> hbase, >>>> >>>>> >>>>> the code as below; >>>>> >>>>> HBaseConfiguration conf=new HBaseConfiguration(); >>>>> conf.set("hbase.master", "192.168.1.8 : 60000"); //computer B's IP >>>>> >>>> >>>> and port >>>> >>>>> >>>>> HTable hTable=new HTable(conf, new Text(table name)); >>>>> >>>>> I only used java, and I think It's a simplest java program , not to >>>>> metion other java programs more complex. >>>>> >>>>> >>>>> >>>>> On Tue, Jun 3, 2008 at 10:14 PM, stack wrote: >>>>> >>>>>> >>>>>> Can you connect from computer A to computer B with any program? >>>>>> St.Ack >>>>>> >>>>>> > >