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 72021D1E0 for ; Mon, 1 Oct 2012 13:54:47 +0000 (UTC) Received: (qmail 84533 invoked by uid 500); 1 Oct 2012 13:54:45 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 84491 invoked by uid 500); 1 Oct 2012 13:54:45 -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 84476 invoked by uid 99); 1 Oct 2012 13:54:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2012 13:54:45 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mouradk78@googlemail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Oct 2012 13:54:37 +0000 Received: by weyu3 with SMTP id u3so3647248wey.14 for ; Mon, 01 Oct 2012 06:54:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:subject:message-id:date:to:mime-version:x-mailer; bh=hqccJVy7i4L94FTMzpsW39R2z44cNCeh8sVQ4pByJkk=; b=D8Qb1Kbzcpb1+M4dDFUeC74RH+Vw72cSULRAjd7/F7SckBMXWBAdP1dbMh4QMpiqjh Ex485q8M9vn+MKOUhlW6LwqLoArdhG9Hzz1d5y92VhlleCbp4S3mYJhxSfVZhKRBMRFj OdhUoblYZBzOEKY+C4AL0gpRrZHaTzA7meDrUedf1j/j2I1AUdTbs0q2O4azWH6Bw5q2 kAZnDMRA2sf68MHsn38m4zHLQuD32t0pveanth7m1uL15VmKWoM+0Xg5WG7XBewcGBPv my/RXPBtnClUZUc5u4pgFbKiER55TnvOnL84/mIPiaFAjBDb/xTzicg8y9gxKAV23QkA Gp5Q== Received: by 10.180.99.99 with SMTP id ep3mr14840166wib.15.1349099657571; Mon, 01 Oct 2012 06:54:17 -0700 (PDT) Received: from [192.168.1.36] ([2.24.61.9]) by mx.google.com with ESMTPS id ga2sm18752319wib.2.2012.10.01.06.54.17 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 01 Oct 2012 06:54:17 -0700 (PDT) From: Mouradk Content-Type: multipart/alternative; boundary="Apple-Mail=_1659A9A8-B70C-4B5D-B1E2-E5E38A11932C" Subject: Failure connecting to Hbase remotely from Tomcat 6 Servlet Message-Id: <5FD7CD8C-032D-46DC-88CE-9CEDD3FE7159@gmail.com> Date: Mon, 1 Oct 2012 14:54:18 +0100 To: user@hbase.apache.org Mime-Version: 1.0 (Mac OS X Mail 6.1 \(1498\)) X-Mailer: Apple Mail (2.1498) --Apple-Mail=_1659A9A8-B70C-4B5D-B1E2-E5E38A11932C Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hello, This is my first post so apologies if I am breaking some etiquette. I am not an expert on Hbase and have been flaying through threads of = Hbase remote connection but with no luck solving my problem. I am running a Hbase/Hadoop single cluster on an EC2 instance (Ubuntu = 10.4). I am also running a servlet on a tomcat6 server in another ec2 = instance. The plan is for the servlet to write and read to the remote = Hbase instance. The servlet is running a context listener with some java = routines (ServletContextListener). Now if I run the java project as a runnable jar instead of a servlet all = is fine. It connects to Hbase and writes/reads from table. But on = tomcat6 it just freezes when attempting to connect to the Hbase = instance. 2012-10-01 11:11:40,751 [Timer-4] INFO = com.myApp.foundation.access.HBaseHandler initialise(..) - = Initialisation HbaseHandler configuration ... 2012-10-01 11:11:40,763 [Timer-4] DEBUG = org.apache.hadoop.conf.Configuration (..) - java.io.IOException: = config() at = org.apache.hadoop.conf.Configuration.(Configuration.java:211) at = org.apache.hadoop.conf.Configuration.(Configuration.java:198) at = org.apache.hadoop.hbase.HBaseConfiguration.(HBaseConfiguration.java:= 33) at = com.myApp.foundation.access.HBaseHandler.initialise(HBaseHandler.java:507)= at = com.myApp.foundation.access.HBaseHandler.(HBaseHandler.java:53) at = com.myApp.foundation.access.HBaseHandler.getInstance(HBaseHandler.java:500= ) at = com.myApp.foundation.hbase.StorableRow.(StorableRow.java:40) at = com.myApp.foundation.entities.Article.storeToHbase(Article.java:257) at = com.myApp.task.impl.HBaseArticlePersisterTask.process(HBaseArticlePersiste= rTask.java:101) at = com.myApp.foundation.task.QueueTask.performTask(QueueTask.java:101) at = com.myApp.runner.impl.HBasePersisterRunner$1.run(HBasePersisterRunner.java= :46) at java.util.TimerThread.mainLoop(Timer.java:512) at java.util.TimerThread.run(Timer.java:462) 2012-10-01 11:11:40,803 [Timer-4] INFO = com.myApp.foundation.access.HBaseHandler initialise(..) - Config = resource zookeeper.quorum: ip-10-10-10-10.eu-west-1.compute.internal 2012-10-01 11:11:40,803 [Timer-4] INFO = com.myApp.foundation.access.HBaseHandler initialise(..) - Config = resource zookeeper.clientPort: 2181 2012-10-01 11:11:40,804 [Timer-4] INFO = com.myApp.foundation.access.HBaseHandler initialise(..) - Config = resource hbase.master.info.port: 60010 2012-10-01 11:11:40,804 [Timer-4] INFO = com.myApp.foundation.access.HBaseHandler initialise(..) - Config = resource hbase.master.info.bindAddress: = ip-10-10-10-10.eu-west-1.compute.internal I can telnet the HBase instance. In the servlet I included the = hbase-site.xml. But as you can see from the log, the zookkeeper.quorum = is getting picked up as well as the port number. All necessary ports are = open on the Hbase instance. Something is telling me tomcat6 policy configuration is to blame. But I = don't see anything in the catalina logs. Are there any other logs I am = missing or could guide me to the right logs? Anywhere I can track if = Zookeeper is receiving any requests? Has someone experienced the same problem? Many thanks in advance. Mourad= --Apple-Mail=_1659A9A8-B70C-4B5D-B1E2-E5E38A11932C--