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 BF5CEC196 for ; Sat, 30 Jun 2012 22:08:00 +0000 (UTC) Received: (qmail 74105 invoked by uid 500); 30 Jun 2012 22:07:58 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 74064 invoked by uid 500); 30 Jun 2012 22:07:58 -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 74053 invoked by uid 99); 30 Jun 2012 22:07:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jun 2012 22:07:58 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amansk@gmail.com designates 209.85.160.41 as permitted sender) Received: from [209.85.160.41] (HELO mail-pb0-f41.google.com) (209.85.160.41) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Jun 2012 22:07:52 +0000 Received: by pbbrp2 with SMTP id rp2so7353941pbb.14 for ; Sat, 30 Jun 2012 15:07:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:x-mailer :mime-version:content-type; bh=XLQowgmw+2bL3AhNFr3nHRTJs4rxYSDliRHAlIrUY1w=; b=I8jKASDEqO8QRSC+03fnzA091bMXHXWYoVi1+7zvQjuduVI5ppnMxbULtafZMM6bkK BHRCHfkeBrmLWgbNdwu3c8Pc5GiU0baRtI0jHHjXjJK3pme6gjxmKLx+NihZKTGRRIu4 ihBScVEAhWtRnK1Yo/gnR+13GmlZF+c/aZspnn3e8+tfspCW7bbmFbw9z2OxTwKyob8l 2L8GlMNW7xQU5+hBK042IW0JIJCO++ZkANBC7ivxSP8sAY8Q47r7UWrR1ootdJIR1iOn slciWVct7uowKLN7LpDGpYA8/mprSqSD49959w3u6HdyFxNtAMbcc6tamB9DrMFzZ92P gEXA== Received: by 10.66.82.2 with SMTP id e2mr10412686pay.67.1341094051254; Sat, 30 Jun 2012 15:07:31 -0700 (PDT) Received: from [10.203.202.118] (mobile-198-228-214-145.mycingular.net. [198.228.214.145]) by mx.google.com with ESMTPS id rg9sm9019535pbc.67.2012.06.30.15.07.29 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 30 Jun 2012 15:07:30 -0700 (PDT) Date: Sat, 30 Jun 2012 15:07:26 -0700 From: Amandeep Khurana To: user@hbase.apache.org Message-ID: <3E5B5A7A33A44443BE89528E88E0F608@gmail.com> In-Reply-To: <4FEE2F3F.20308@circle-cross-jn.com> References: <4FEE2F3F.20308@circle-cross-jn.com> Subject: Re: HBase dies shortly after starting. X-Mailer: sparrow 1.3 (build 495) MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="4fef789e_515f007c_690e" X-Virus-Checked: Checked by ClamAV on apache.org --4fef789e_515f007c_690e Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline To run HBase (or for that matter any distributed system) you need your networking setup to function properly. No route to host is caused due to issues with the underlying network. I have seen TORs losing packets, causing these exceptions. There could be several other issues that could cause them too. This certainly doesn't look like an HBase specific issue and is likely something broken in your network. On Friday, June 29, 2012 at 3:42 PM, Jay Wilson wrote: > I "somewhat" have HBase up and running in a distributed mode. It starts > fine, I can use "hbase shell" to create, disable, and drop tables; > however, after a short period of time HMaster and the HRegionalservers > terminate. Decoding the error messages is a bit bewildering and the > O'Reilly HBase book hasn't helped much with message decoding. > > > Here is a snippet of the messages from a regionalserver log: > > ~~~ > > U Stats: total=6.68 MB, free=807.12 MB, max=813.8 MB, blocks=2, > accesses=19, hits=17, hitRatio=89.47%%, cachingAccesses=17, > cachingHits=15, cachingHitsRatio=88. > > 23%%, evictions=0, evicted=0, evictedPerRun=NaN > > 2012-06-27 12:36:47,103 DEBUG > org.apache.hadoop.hbase.io.hfile.LruBlockCache: LRU Stats: total=6.68 > MB, free=807.12 MB, max=813.8 MB, blocks=2, accesses=19, hits=17, > hitRatio=89.47%%, cachingAccesses=17, cachingHits=15, cachingHitsRatio=88. > > 23%%, evictions=0, evicted=0, evictedPerRun=NaN > > 2012-06-27 12:40:02,106 INFO org.apache.zookeeper.ClientCnxn: Unable to > read additional data from server sessionid 0x382f6861690003, likely > server has closed socket, closing socket connection and attempting > reconnect > > 2012-06-27 12:40:02,112 INFO org.apache.zookeeper.ClientCnxn: Unable to > read additional data from server sessionid 0x382f6861690004, likely > server has closed socket, closing socket connection and attempting > reconnect > > 2012-06-27 12:40:02,245 INFO org.apache.zookeeper.ClientCnxn: Opening > socket connection to server devrackA-01/172.18.0.2:2181 > > 2012-06-27 12:40:02,247 WARN org.apache.zookeeper.ClientCnxn: Session > 0x382f6861690003 for server null, unexpected error, closing socket > connection and attempting reconnect > > java.net.NoRouteToHostException: No route to host > > ~~~ > > No route to host would imply it can't reach one of my HQuorumpeers, but > it talks to them when I first run start-hase.sh. Also there is no DNS > involved, the /etc/hosts files are identical on all nodes, and it's > currently a closed cluster. All nodes are on the same subnet 172.18/16 > > > Do I have something wrong in one of my xml files: > > > Core-site.xml: > > > > > > > hadoop.tmp.dir > /var/hbase-hadoop/tmp > > > fs.default.name > hdfs://devrackA-00:8020 > true > > > > > Hdfs-site.xml: > > > > > > > dfs.replication > 3 > > > dfs.name.dir > /var/hbase-hadoop/name > > > dfs.data.dir > /var/hbase-hadoop/data > > > fs.checkpoint.dir > /var/hbase-hadoop/namesecondary > > > dfs.datanode.max.xcievers > 4096 > > > > > Hbase-site.xml: > > > > > > > hbase.rootdir > hdfs://devrackA-00:8020/var/hbase-hadoop/hbase > > > dfs.datanode.max.xcievers > 4096 > > > hbase.cluster.distributed > true > > > hbase.regionserver.handler.count > 20 > > > hbase.zookeeper.quorum > devrackA-00,devrackA-01,devrackA-25 > > > hbase.zookeeper.property.dataDir > /var/hbase-hadoop/zookeeper > > > hbase.zookeeper.property.maxClientCnxns > 500 > > > hbase.zookeeper.property.clientPort > 2181 > > > hbase.zookeeper.property.initLimit > 10 > > > hbase.zookeeper.property.syncLimit > 5 > > > hbase.zookeeper.property.tickTime > 2000000 > > > > > Hbase-env.sh: > > # > #/** > # * Copyright 2007 The Apache Software Foundation > # * > # * Licensed to the Apache Software Foundation (ASF) under one > # * or more contributor license agreements. See the NOTICE file > # * distributed with this work for additional information > # * regarding copyright ownership. The ASF licenses this file > # * to you under the Apache License, Version 2.0 (the > # * "License"); you may not use this file except in compliance > # * with the License. You may obtain a copy of the License at > # * > # * http://www.apache.org/licenses/LICENSE-2.0 > # * > # * Unless required by applicable law or agreed to in writing, software > # * distributed under the License is distributed on an "AS IS" BASIS, > # * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or > implied. > # * See the License for the specific language governing permissions and > # * limitations under the License. > # */ > export HBASE_HEAPSIZE=4096 > export HBASE_MANAGES_ZK=true > > > regionalservers: > > devrackA-03 > devrackB-31 > devrackA-25 > > > master: > > devrackA-01 > > > slaves: > > devrackA-01 > devrackA-03 > devrackA-04 > devrackA-05 > devrackA-06 > devrackA-07 > devrackA-08 > devrackA-09 > devrackA-10 > devrackA-11 > devrackA-12 > devrackA-17 > devrackA-18 > devrackA-19 > devrackA-20 > devrackA-21 > devrackA-22 > devrackA-23 > devrackA-24 > devrackA-25 > devrackB-07 > devrackB-08 > devrackB-09 > devrackB-10 > devrackB-11 > devrackB-12 > devrackB-13 > devrackB-14 > devrackB-15 > devrackB-16 > devrackB-17 > devrackB-18 > devrackB-19 > devrackB-20 > devrackB-21 > devrackB-22 > devrackB-23 > devrackB-24 > devrackB-25 > devrackB-26 > devrackB-27 > devrackB-28 > devrackB-29 > devrackB-30 > devrackB-31 > > > Thanks for the help > > > Jay Wilson --4fef789e_515f007c_690e--