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 DB0C39588 for ; Tue, 3 Jul 2012 10:29:14 +0000 (UTC) Received: (qmail 16232 invoked by uid 500); 3 Jul 2012 10:29:13 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 16196 invoked by uid 500); 3 Jul 2012 10:29:13 -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 16173 invoked by uid 99); 3 Jul 2012 10:29:12 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 10:29:12 +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 (athena.apache.org: domain of dontariq@gmail.com designates 209.85.216.169 as permitted sender) Received: from [209.85.216.169] (HELO mail-qc0-f169.google.com) (209.85.216.169) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 03 Jul 2012 10:29:06 +0000 Received: by qcsd16 with SMTP id d16so3881059qcs.14 for ; Tue, 03 Jul 2012 03:28:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ARtW9fvotB+SRdZSbQx7m4qmPcBT5or55mWOpbeQuSM=; b=rMPSU+D5KgaEkpMCuZkQ2RkOuK6f8wz8PGuh70+ZrBuJZv8ySHIEMP3S/+cPCovLTf b3ySGEijG4Kt447KdWS4IgFyNIEDGiqOD05Wd7LH1h9nmxajLq1ocNduZGReGUqTcBqL qrd7j+izuaDFjGC7Gdhan6ELa/mW0sfKoNYTt3VJ6xqSbfV3UpXhjWU/jYagRw284HVz JLnts/+go/j7YDPCU7nAXv0GWFs0r9Pzp6sIl3C11SIKVjMDn2MJZ7+gqtGh+741geFy 183CuJRcPASjDwqnVC9z5u0Xx5sR23kxHC/nlqItGwtD/j52/kRbQmkawSWmjFpWl6qW XLSA== Received: by 10.224.185.198 with SMTP id cp6mr28919631qab.79.1341311326072; Tue, 03 Jul 2012 03:28:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.188.210 with HTTP; Tue, 3 Jul 2012 03:28:05 -0700 (PDT) In-Reply-To: References: From: Mohammad Tariq Date: Tue, 3 Jul 2012 15:58:05 +0530 Message-ID: Subject: Re: Connection error while usinh HBase client API for pseudodistrbuted mode To: user@hbase.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hello Ananda, Add these two lines in your client and sww if it works for you : config.set("hbase.zookeeper.property.clientPort","2181"); config.set("hbase.master", "localhost:60000"); Regards, Mohammad Tariq On Tue, Jul 3, 2012 at 3:49 PM, AnandaVelMurugan Chandra Mohan wrote: > Hi, > > For development purpose, I have set up HBase in pseudodistributed mode. > > I have following line in hbase-env.sh file > > export HBASE_MANAGES_ZK=true > > HBase shell works fine. But client API is not working. > > My client code is as follows > > Configuration config = HBaseConfiguration.create(); > config.set("hbase.zookeeper.quorum", "10.78.32.131"); > config.setBoolean("hbase.cluster.distributed", false); > HBaseAdmin admin = new HBaseAdmin(config); > admin.isMasterRunning(); > > System.out.println(admin.getClusterStatus().getHBaseVersion()); > > I am getting java.net.ConnectException: Connection refused: no further > information. > > Any idea, how it can be fixed. Please let me know. Thanks!! > -- > Regards, > Anand