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 B6025D227 for ; Wed, 22 May 2013 13:34:02 +0000 (UTC) Received: (qmail 2998 invoked by uid 500); 22 May 2013 13:34:00 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 2801 invoked by uid 500); 22 May 2013 13:34:00 -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 2787 invoked by uid 99); 22 May 2013 13:33:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 May 2013 13:33:59 +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 vkjk89@gmail.com designates 209.85.223.174 as permitted sender) Received: from [209.85.223.174] (HELO mail-ie0-f174.google.com) (209.85.223.174) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 May 2013 13:33:53 +0000 Received: by mail-ie0-f174.google.com with SMTP id 10so5125473ied.33 for ; Wed, 22 May 2013 06:33:32 -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=oQDyduN/lFi/8kz6NXLryKF0Tu8RZVf84M6EkYkxUNM=; b=SqbMALyKe9Kp1RCHwhdAqFWl3jzhA3f9QgPXQSF0dbV4LPNxmao0qS1pHx70ViLtZ2 Y8naae9vfutHmQ4tZ8LvxCVowWcQZuXXKXuQ19qSOOKXpmsGBGIQZgO4J7h5hwXS+mAJ 3vndubRO/Ld/E10HFDtOMlN7BFGQNYciaLR+ep1unrkEM6dIMWlFIeQTP1JLz4uM+p2x LWrvHdmvcvJ02MtO6PBjflNtn8Wkj8hgFoN8/hDVQTtoivm8OJbjRXIbmZCHyDdjRE/F 5mSJ69Ay+r6sEJXC2UI+/gbmZAadqbWUBjiRfYD7qaXsbdzKMMe4DKSgwR29j7en3woA Q0Fw== MIME-Version: 1.0 X-Received: by 10.43.148.71 with SMTP id kf7mr5642740icc.42.1369229612768; Wed, 22 May 2013 06:33:32 -0700 (PDT) Received: by 10.64.136.132 with HTTP; Wed, 22 May 2013 06:33:32 -0700 (PDT) In-Reply-To: References: <52DA03D40E4678439A21D6885DE6F3123FB4FB2D@szxeml556-mbx.china.huawei.com> <52DA03D40E4678439A21D6885DE6F3123FB4FB50@szxeml556-mbx.china.huawei.com> <52DA03D40E4678439A21D6885DE6F3123FB4FC0C@szxeml556-mbx.china.huawei.com> <52DA03D40E4678439A21D6885DE6F3123FB4FC66@szxeml556-mbx.china.huawei.com> <52DA03D40E4678439A21D6885DE6F3123FB4FC8E@szxeml556-mbx.china.huawei.com> Date: Wed, 22 May 2013 19:03:32 +0530 Message-ID: Subject: Re: Not able to connect to Hbase remotly From: Vimal Jain To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=001a11c291eeaf635304dd4e9cd2 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c291eeaf635304dd4e9cd2 Content-Type: text/plain; charset=ISO-8859-1 Thanks Tariq and Jyothi for your help. I have solved this issue but not sure which step did the trick. I 1) changed configuration files ( Hadoop and Hbase both ) and replaced hostnames with ip addresses. 2) played with /etc/hosts a bit 3) restarted hadoop and hbase several times .. Thanks again. On Wed, May 22, 2013 at 6:05 PM, Vimal Jain wrote: > Hi, > I got below Runtime exception after i changed my catch block ( from > catch(IOException) to catch(Exception) ). Sorry for trouble. > Exception : > org.apache.hadoop.hbase.client.NoServerForRegionException: Unable to find > region for event_data > > where "event_data" is the table i have created in Hbase through shell > > hbase(main):001:0> list > TABLE > > event_data > > event_data2 > > test > > 3 row(s) in 2.5320 seconds > > what could be wrong ? > > > On Wed, May 22, 2013 at 5:53 PM, Vimal Jain wrote: > >> I had attached it.May be attachments are blocked. >> Attachments are big.How do i send it ? >> >> >> On Wed, May 22, 2013 at 5:47 PM, Jyothi Mandava < >> jyothi.Mandava@huawei.com> wrote: >> >>> Could not find the logs. >>> >>> From: Vimal Jain [mailto:vkjk89@gmail.com] >>> Sent: 22 May 2013 17:18 >>> To: user@hbase.apache.org >>> Subject: Re: Not able to connect to Hbase remotly >>> >>> Yes. >>> I tried creating some tables , and it works fine. >>> I have attached my master and zookeeper logs. >>> >>> On Wed, May 22, 2013 at 5:11 PM, Jyothi Mandava < >>> jyothi.Mandava@huawei.com> wrote: >>> Is the cluster ok? Have you tried creating table or any other operation >>> using Shell where master is involved? >>> >>> Do you see anything in Master logs? Pls share your ZK log ( and master >>> if there is any useful info). >>> >>> Regards, >>> Jyothi. >>> -----Original Message----- >>> From: Vimal Jain [mailto:vkjk89@gmail.com] >>> Sent: 22 May 2013 16:55 >>> To: user@hbase.apache.org >>> Subject: Re: Not able to connect to Hbase remotly >>> >>> Hi Tariq, >>> I tried this but its not helping. >>> Let me brief you about the problem. >>> I have posted this on >>> >>> http://stackoverflow.com/questions/16689594/unable-to-connect-to-hbase-remotly >>> Please help. >>> >>> >>> On Wed, May 22, 2013 at 4:41 PM, Mohammad Tariq >> > wrote: >>> >>> > Hello Vimal, >>> > >>> > Add the IP and hostname of your HBase machine into the hosts >>> > file of your client machine and see if it helps. >>> > >>> > Warm Regards, >>> > Tariq >>> > cloudfront.blogspot.com >>> > >>> > >>> > On Wed, May 22, 2013 at 4:38 PM, Vimal Jain >> vkjk89@gmail.com>> wrote: >>> > >>> > > Hi Jyothi, >>> > > I am running my hbase in pseudo distributed mode so zookeeper and >>> > > master are on same machine. >>> > > >>> > > >>> > > >>> > > On Wed, May 22, 2013 at 4:28 PM, Jyothi Mandava >>> > > >wrote: >>> > > >>> > > > Connection between master and zookeeper are ok? Have you verified >>> > > > if >>> > your >>> > > > cluster is working fine (zookeeper to master connection)? >>> > > > I had connection issue though the IP was set in configuration and >>> > > > connection was tried with host. Adding hosts entry resolved the >>> issue. >>> > > But >>> > > > no errors at client in your case. >>> > > > In case if you already had an entry in hosts file, make sure the >>> > > > host >>> > > name >>> > > > to IP mapping is correct and no mismatches. >>> > > > >>> > > > Jyothi >>> > > > >>> > > > >>> > > > -----Original Message----- >>> > > > From: Vimal Jain [mailto:vkjk89@gmail.com>> >] >>> > > > Sent: 22 May 2013 15:42 >>> > > > To: user@hbase.apache.org >>> > > > Subject: Re: Not able to connect to Hbase remotly >>> > > > >>> > > > No exception at client side . >>> > > > Code just hangs on call to htablepool.getTable(tableName) In >>> > > > zookeeper logs , i am able to see that it received a request for >>> > > > connection from >>> > > Java >>> > > > program but it did not proceed ahead. >>> > > > >>> > > > Any reason to add 192.168.0.181 in /etc/hosts , because as per my >>> > > > understanding /etc/hosts is used for hostname-ip conversion and i >>> > > > am already proving IP address. >>> > > > Yes,both machines can access each other. >>> > > > >>> > > > >>> > > > On Wed, May 22, 2013 at 3:37 PM, Jyothi Mandava >>> > > > >> >>wrote: >>> > > > >>> > > > > Hi, >>> > > > > >>> > > > > Code seem to be fine. Getting any exceptions at client side? >>> > > > > Does your client machine hosts file has an entry for >>> 192.168.0.181? >>> > > > > Both machines able to access each other? >>> > > > > >>> > > > > Regards, >>> > > > > Jyothi >>> > > > > >>> > > > > -----Original Message----- >>> > > > > From: Vimal Jain [mailto:vkjk89@gmail.com>> vkjk89@gmail.com>] >>> > > > > Sent: 22 May 2013 15:18 >>> > > > > To: user@hbase.apache.org >>> > > > > Subject: Re: Not able to connect to Hbase remotly >>> > > > > >>> > > > > Hi, >>> > > > > Yes Jyothi. >>> > > > > Here is my Java code >>> > > > > Configuration config = HBaseConfiguration.create(); >>> > > > > config.set("hbase.zookeeper.quorum" ,192.168.0.181); >>> > > > > >>> config.set("hbase.zookeeper.property.clientPort","2181"); >>> > > > > tablePool = new HTablePool(config,Integer.MAX_VALUE); >>> > > > > >>> > > > > Anything wrong ? >>> > > > > >>> > > > > >>> > > > > On Wed, May 22, 2013 at 3:10 PM, Jyothi Mandava >>> > > > > >> >>wrote: >>> > > > > >>> > > > > > Hi, >>> > > > > > >>> > > > > > How are you trying to connect? >>> > > > > > Are you setting zookeeper host and client port in >>> > HBaseConfiguration? >>> > > > > > >>> > > > > > Regards, >>> > > > > > Jyothi >>> > > > > > >>> > > > > > -----Original Message----- >>> > > > > > From: Vimal Jain [mailto:vkjk89@gmail.com>> vkjk89@gmail.com>] >>> > > > > > Sent: 22 May 2013 14:57 >>> > > > > > To: user@hbase.apache.org >>> > > > > > Subject: Not able to connect to Hbase remotly >>> > > > > > >>> > > > > > Hi, >>> > > > > > I have Hbase configured in pseudo distributed mode on Machine >>> A. >>> > > > > > I would like to connect to it through a Java program running >>> > > > > > on Machine >>> > > > > B. >>> > > > > > But i am unable to do so.What configurations are required in >>> > > > > > Java for this ? >>> > > > > > Please help. >>> > > > > > >>> > > > > > -- >>> > > > > > Thanks and Regards, >>> > > > > > Vimal Jain >>> > > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > -- >>> > > > > Thanks and Regards, >>> > > > > Vimal Jain >>> > > > > >>> > > > >>> > > > >>> > > > >>> > > > -- >>> > > > Thanks and Regards, >>> > > > Vimal Jain >>> > > > >>> > > >>> > > >>> > > >>> > > -- >>> > > Thanks and Regards, >>> > > Vimal Jain >>> > > >>> > >>> >>> >>> >>> -- >>> Thanks and Regards, >>> Vimal Jain >>> >>> >>> >>> -- >>> Thanks and Regards, >>> Vimal Jain >>> >> >> >> >> -- >> Thanks and Regards, >> Vimal Jain >> > > > > -- > Thanks and Regards, > Vimal Jain > -- Thanks and Regards, Vimal Jain --001a11c291eeaf635304dd4e9cd2--