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 D8F5DDA31 for ; Mon, 3 Sep 2012 05:11:50 +0000 (UTC) Received: (qmail 25806 invoked by uid 500); 3 Sep 2012 05:11:48 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 25572 invoked by uid 500); 3 Sep 2012 05:11:47 -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 25554 invoked by uid 99); 3 Sep 2012 05:11:47 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 05:11:47 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of harsh@cloudera.com designates 209.85.214.169 as permitted sender) Received: from [209.85.214.169] (HELO mail-ob0-f169.google.com) (209.85.214.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Sep 2012 05:11:39 +0000 Received: by obhx4 with SMTP id x4so10648490obh.14 for ; Sun, 02 Sep 2012 22:11:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=0ctidvub6ENep2AN618ftwbA2PJ/pDMtkEyrxz82V50=; b=fTTeZXMKCDJqpo2J9SYnj5T/x0mvZndCD6aKnaSU/jR9fMps8QQ4yvTm0oki40f2Pg 068Ls8BRVezl99gfJLXVNMfAu/VzLrlt6VU3SG012cYVcWT21DbgQOWInE7mKMugmO8e zOZROfjV4kgumgx59dbmeKs9erQgu9jFjaj95jx0dQktnyock2+fx4TqD2/6rupPCCeW m+xH5cJ2yUmZApB2gdYqNE1BGTtVTdpit88OnsiY0VdeXHs4ec6dNsk5rRE9xR/ulMBj QDo0yRsLXEl4hKBCcvx4wNwpNLrQhvOTY1Zvv5JPo1d+GRzrrHpfHWEW7yCR54qlWHk9 sDGA== Received: by 10.182.86.200 with SMTP id r8mr2384500obz.98.1346649078472; Sun, 02 Sep 2012 22:11:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.11.168 with HTTP; Sun, 2 Sep 2012 22:10:58 -0700 (PDT) In-Reply-To: References: From: Harsh J Date: Mon, 3 Sep 2012 10:40:58 +0530 Message-ID: Subject: Re: connection error to remote hbase node To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQmEbHsMQpYQbYPf6JxE9OjrOGWr+5mcY5kg/A4gSTIdrQ0S5f/k+si7c7b95hJI9widVDsr Richard, Do you perhaps have a stray /etc/zookeeper/zoo.cfg file lying around on your client node? I think the issue may be that its picking up a default of localhost from reading an non-configured zoo.cfg on the classpath. On Sun, Sep 2, 2012 at 7:08 PM, Richard Tang wrote: > Hi, I have a connection problem on setting up hbase on remote node. The > ``hbase`` instance is on a machine ``nodeA``. when I am trying to use hbase > on ``nodeA`` from another machine (say ``nodeB``), it complains > >> Session 0x0 for server null, unexpected error, closing socket connection > and attempting reconnect > >> java.net.ConnectException: Connection refused > >> ... > > Also, I used hbase shell from ``nodeB`` to test hbase against ``nodeA``, > but still without success. In the shell, when issuing ``list``, it gets > stuck there... > > To diagnose, I can however run following test program with success. > 1.zkcli utility can be tested against zookeeper on ``ndoeA``, as > >> ./bin/hbase zkcli -server nodeA:2181 > > 2.I can also successfully ``ssh`` to the node, like ``ssh -X root@nodeA``. > What could possibly be the reason for that error? > > regards, > Tang -- Harsh J