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 B392AB3C8 for ; Thu, 12 Jan 2012 17:27:12 +0000 (UTC) Received: (qmail 95325 invoked by uid 500); 12 Jan 2012 17:27:10 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 95278 invoked by uid 500); 12 Jan 2012 17:27:10 -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 95270 invoked by uid 99); 12 Jan 2012 17:27:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 17:27:09 +0000 X-ASF-Spam-Status: No, hits=-0.5 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of opus111@gmail.com designates 209.85.212.41 as permitted sender) Received: from [209.85.212.41] (HELO mail-vw0-f41.google.com) (209.85.212.41) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Jan 2012 17:27:00 +0000 Received: by vbnl22 with SMTP id l22so663400vbn.14 for ; Thu, 12 Jan 2012 09:26:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=vSvnkC9xY7vgArjfeTre1Qr9s6ke8qDaMQYmjUCvqbw=; b=Bx5irW+/R+PzlcyYReI/dR047Uplkj6bfmXEBEbScvtw1l85wbMJdE/+wZcfpgYeZZ ct7URzkJGCiNRKozHtWBe0alcgZgnLwR94+UHo1sn4MBtKc/kEDIaOTapeTqB+HWI0KQ b1nNJbDxB+8Rt9mMkMOIIMbVkrvaRqD+bqj8Q= Received: by 10.52.20.165 with SMTP id o5mr2134128vde.79.1326389199606; Thu, 12 Jan 2012 09:26:39 -0800 (PST) Received: from Hemiola.local (static-71-174-62-39.bstnma.fios.verizon.net. [71.174.62.39]) by mx.google.com with ESMTPS id jf1sm4821757vdb.21.2012.01.12.09.26.37 (version=SSLv3 cipher=OTHER); Thu, 12 Jan 2012 09:26:38 -0800 (PST) Message-ID: <4F0F17CD.6050803@gmail.com> Date: Thu, 12 Jan 2012 12:26:37 -0500 From: Peter Wolf User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: user@hbase.apache.org CC: Mark Kerzner Subject: Re: EC2 remote client woes References: <4F0F0831.6090403@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Oh yeah! The code did it :-D For those that come after, I guess 'hbase shell' is broken for remote access. Use the raw Java API Many thanks again Mark! On 1/12/12 11:40 AM, Mark Kerzner wrote: > 1. Look in the logs; > 2. I think hbase shell works only locally; > 3. The code below worked for me, and I don't use a config file, but give > the params directly: > > public void connect() throws IOException { > Configuration hConf = HBaseConfiguration.create(); > hConf.set(MyConstants.HBASE_CONFIGURATION_ZOOKEEPER_QUORUM, > MyConstants.zookeeperUrl); > hConf.set(MyConstants..HBASE_CONFIGURATION_ZOOKEEPER_CLIENTPORT, > MyConstants.zookeeperPort); > String tableName = "MyTable"; > HTable hTable = new HTable(hConf, tableName); > hTable.close(); > } > > Mark > > On Thu, Jan 12, 2012 at 10:20 AM, Peter Wolf wrote: > >> Still no love... Any suggestions? >> >> I'm on EC2, and I am trying to set up a Pseudo-Distributed HBaser Server >> on one machine, and access it from another. Both machines are EC2. >> >> I have already found the doc below, and I followed the instructions >> >> http://hbase.apache.org/book.**html#client_dependencies >> >> >> My server is up and running, and I can access it from an 'hbase shell' on >> the machine. The hbase-site.xml is ... >> >> >> >> hbase.zookeeper.quorum >> ip-XX-YYY-Z-QQQ.ec2.**internal >> >> >> hbase.cluster.**distributed >> true >> >> >> hbase.rootdir >> hdfs://localhost/hbase<**/value> >> >> >> >> The client machine hbase-site.xml is... >> >> >> >> hbase.zookeeper.quorum >> ip-XX-YYY-Z-QQQ.ec2.**internal.ec2.internal >> Pseudo Distributed Server >> >> >> >> And when I try 'hbase shell' remotely, I get this... >> >> hbase(main):001:0> status 'detailed' >> >> ERROR: org.apache.hadoop.hbase.**ZooKeeperConnectionException: HBase >> is able to connect to ZooKeeper but the connection closes >> immediately. This could be a sign that the server has too many >> connections (30 is the default). Consider inspecting your ZK server >> logs for that error and then make sure you are reusing >> HBaseConfiguration as often as you can. See HTable's javadoc for >> more information. >> >> >> >>