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 3BC0F17268 for ; Sun, 26 Oct 2014 16:17:56 +0000 (UTC) Received: (qmail 8344 invoked by uid 500); 26 Oct 2014 16:17:53 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 8269 invoked by uid 500); 26 Oct 2014 16:17:53 -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 8257 invoked by uid 99); 26 Oct 2014 16:17:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2014 16:17:53 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of nishanth.2884@gmail.com designates 209.85.216.45 as permitted sender) Received: from [209.85.216.45] (HELO mail-qa0-f45.google.com) (209.85.216.45) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 26 Oct 2014 16:17:26 +0000 Received: by mail-qa0-f45.google.com with SMTP id dc16so2827456qab.4 for ; Sun, 26 Oct 2014 09:15:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=bz4vmPwRil9GSuz6RfvaAL5R0+a8bckJLF7If9K0lRA=; b=X8FDMkbu0dEa1OzYYzQ122gRMCuY+Iou0uhBvjxotF21B8LK/rhUyUxyJOg9PGMLjD b9dLmtxc0TVaz2M1t8Mf8N5tP1BBehqYwxCKch1PLk7o2oVqTxPbuod5I8y4OLReSOo5 JptNpz23aPTODHGvr4JABj8fl0IPSvkNZdACKUabxNISiDZKCvpkH2eHmM+5ROuIIGqT JzsPwERnOfmcI3NF6osxIixLvVc2vnqpnOzG7vGHIMZj7sPLbKSt1PwFc6sWaeybuO6i 0Op52Dq+V1h6kTQ+vLL3QTLkbEwvChidmJ6YhslrQBmIKmfN9M+7wWtsGDSi+bYFlV6H l0Yg== MIME-Version: 1.0 X-Received: by 10.140.22.165 with SMTP id 34mr23553072qgn.16.1414340154738; Sun, 26 Oct 2014 09:15:54 -0700 (PDT) Received: by 10.96.150.164 with HTTP; Sun, 26 Oct 2014 09:15:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 26 Oct 2014 10:15:54 -0600 Message-ID: Subject: Re: Connecting via API to a remote HBASE installation From: Nishanth S To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11c1262a83cd97050655ba77 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c1262a83cd97050655ba77 Content-Type: text/plain; charset=UTF-8 Can you telnet to port 2181 and 60020 on the remote cluster if you are running default ports.I had a similar issue in the past where there was firewall. Thanks, Nishanthon On Sun, Oct 26, 2014 at 9:39 AM, Ted Yu wrote: > Is hbase-site.xml corresponding to your cluster on the classpath of your > Windows program ? > > Cheers > > On Sun, Oct 26, 2014 at 8:08 AM, Sznajder ForMailingList < > bs4mailinglist@gmail.com> wrote: > > > Hi > > > > I am running some code from windows (java) > > and I would like to connect to the HBASE 0.98.5 installed on a remote > > cluster (pseudodistributed mode) > > > > The UI gives me the following info: > > > > Software AttributesAttribute NameValueDescriptionHBase > > Version0.98.5-hadoop2, > > rUnknownHBase version and revisionHBase CompiledMon Aug 4 23:58:06 PDT > > 2014, apurtellWhen HBase version was compiled and by whomHadoop > > Version2.2.0, > > r1529768Hadoop version and revisionHadoop Compiled2013-10-07T06:28Z, > > hortonmuWhen Hadoop version was compiled and by whomZookeeper Quorum > > localhost:2181Addresses of all registered ZK servers. For more, see zk > dump > > .HBase Root Directory > > hdfs://localhost:8020/hbaseLocation of HBase home directoryHMaster Start > > TimeWed Sep 03 16:53:19 GMT+02:00 2014Date stamp of when this HMaster was > > startedHMaster Active TimeWed Sep 03 16:53:19 GMT+02:00 2014Date stamp of > > when this HMaster became activeHBase Cluster ID > > 950d5ca3-a174-482c-9b6e-3c858d06f44fUnique identifier generated for each > > HBase clusterLoad average2.00Average number of regions per regionserver. > > Naive computation.Coprocessors[]Coprocessors currently loaded by the > master > > > > > > However when connecting from my code with the following code: > > Configuration conf = HBaseConfiguration.create(); > > conf.set(HBASE_CONFIGURATION_ZOOKEEPER_QUORUM, name); > > conf.set(HBASE_CONFIGURATION_ZOOKEEPER_CLIENTPORT, "8020"); > > admin = new HBaseAdmin(conf); > > > > > > I get the following: > > > > java.net.ConnectException: Connection refused: no further information > > at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) > > at > > sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:585) > > at > > > > > org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:286) > > at > org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1035) > > > > > > what do I miss, pelase? > > > > Benjamin > > > --001a11c1262a83cd97050655ba77--