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 E58C417594 for ; Tue, 19 May 2015 04:53:02 +0000 (UTC) Received: (qmail 50011 invoked by uid 500); 19 May 2015 04:53:01 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 49927 invoked by uid 500); 19 May 2015 04:53:01 -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 49915 invoked by uid 99); 19 May 2015 04:53:00 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2015 04:53:00 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4B840C5C9A for ; Tue, 19 May 2015 04:53:00 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.132 X-Spam-Level: ***** X-Spam-Status: No, score=5.132 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, KAM_BADIPHTTP=2, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id eBGjNA1NF9bO for ; Tue, 19 May 2015 04:52:54 +0000 (UTC) Received: from mail-yh0-f49.google.com (mail-yh0-f49.google.com [209.85.213.49]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 665A224B1E for ; Tue, 19 May 2015 04:52:53 +0000 (UTC) Received: by yhda23 with SMTP id a23so933367yhd.2 for ; Mon, 18 May 2015 21:52:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=WmNr3WotFejpflfCkK4FDn7E2Mwx1WJ8elBeDLzT4mk=; b=BfC+avDHVq2m2D+OVMsXJLbj/0anrUZf92t+BOrRrgxysM6GTeKxYLk3r63eH4jITe r6jCKPoXCuKb29pHxU4S8c4ADyZC9q9EQxjtGaSUcMVNzpTbYcEWUJe4rjIbOhN0cfGr rMnjwyiL/LupqHqXtHKDcE8P8T4dewVOQxMtewwHLQsuL22RPZmMsYjhtbOaB+j3BzJh 9VpTVPqk5Aif13L4MiUxogEIbn84rlJaqmGJBCOb9JrGpsfwKHUifwtO9pc/0NeIytu7 CQ+9UnqvcUZDCqe3dLiIRtsfR2X2qaPqGGkPU/IvIYLe81b7y2EhdttNh4cOXuSxQQS7 nPOw== X-Received: by 10.170.61.141 with SMTP id d135mr28411893ykd.26.1432011166265; Mon, 18 May 2015 21:52:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.13.228.65 with HTTP; Mon, 18 May 2015 21:52:25 -0700 (PDT) In-Reply-To: References: From: anil gupta Date: Mon, 18 May 2015 21:52:25 -0700 Message-ID: Subject: Re: HBase failing to restart in single-user mode To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a11396180e134e0051668144b --001a11396180e134e0051668144b Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Benoit, I think you need to move the directory out of "/tmp" and give it a shot. /tmp/hbase-${user.name} /zk will get cleaned up during restart. ~Anil On Mon, May 18, 2015 at 9:45 PM, tsuna wrote: > I added this to hbase-site.xml: > > > hbase.zookeeper.property.dataDir > /tmp/hbase-${user.name}/zk > > > Didn=E2=80=99t change anything. Once I kill/shutdown HBase, it won=E2=80= =99t come back up. > > On Mon, May 18, 2015 at 1:14 AM, Viral Bajaria > wrote: > > Same for me, I had faced similar issues especially on my virtual machin= es > > since I would restart them more often than my host machine. > > > > Moving ZK from /tmp which could get cleared on reboots fixed the issue > for > > me. > > > > Thanks, > > Viral > > > > > > On Sun, May 17, 2015 at 10:39 PM, Lars George > wrote: > > > >> I noticed similar ZK related issues but those went away after changing > the > >> ZK directory to a permanent directory along with the HBase root > directory. > >> Both point now to a location in my home folder and restarts work fine > now. > >> Not much help but wanted to at least state that. > >> > >> Lars > >> > >> Sent from my iPhone > >> > >> > On 18 May 2015, at 05:55, tsuna wrote: > >> > > >> > Hi all, > >> > For testing on my laptop (OSX with JDK 1.7.0_45) I usually build the > >> > latest version from branch-1.0 and use the following config: > >> > > >> > > >> > > >> > hbase.rootdir > >> > file:///tmp/hbase-${user.name} > >> > > >> > > >> > hbase.online.schema.update.enable > >> > true > >> > > >> > > >> > zookeeper.session.timeout > >> > 300000 > >> > > >> > > >> > hbase.zookeeper.property.tickTime > >> > 2000000 > >> > > >> > > >> > hbase.zookeeper.dns.interface > >> > lo0 > >> > > >> > > >> > hbase.regionserver.dns.interface > >> > lo0 > >> > > >> > > >> > hbase.master.dns.interface > >> > lo0 > >> > > >> > > >> > > >> > Since at least a month ago (perhaps longer, I don=E2=80=99t remember= exactly) > >> > I can=E2=80=99t restart HBase. The very first time it starts up fin= e, but > >> > subsequent startup attempts all fail with: > >> > > >> > 2015-05-17 20:39:19,024 INFO [RpcServer.responder] ipc.RpcServer: > >> > RpcServer.responder: starting > >> > 2015-05-17 20:39:19,024 INFO [RpcServer.listener,port=3D49809] > >> > ipc.RpcServer: RpcServer.listener,port=3D49809: starting > >> > 2015-05-17 20:39:19,029 INFO [main] http.HttpRequestLog: Http reque= st > >> > log for http.requests.regionserver is not defined > >> > 2015-05-17 20:39:19,030 INFO [main] http.HttpServer: Added global > >> > filter 'safety' > >> > (class=3Dorg.apache.hadoop.hbase.http.HttpServer$QuotingInputFilter) > >> > 2015-05-17 20:39:19,031 INFO [main] http.HttpServer: Added filter > >> > static_user_filter > >> > > >> > (class=3Dorg.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserF= ilter) > >> > to context regionserver > >> > 2015-05-17 20:39:19,031 INFO [main] http.HttpServer: Added filter > >> > static_user_filter > >> > > >> > (class=3Dorg.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserF= ilter) > >> > to context static > >> > 2015-05-17 20:39:19,031 INFO [main] http.HttpServer: Added filter > >> > static_user_filter > >> > > >> > (class=3Dorg.apache.hadoop.hbase.http.lib.StaticUserWebFilter$StaticUserF= ilter) > >> > to context logs > >> > 2015-05-17 20:39:19,033 INFO [main] http.HttpServer: Jetty bound to > >> port 49811 > >> > 2015-05-17 20:39:19,033 INFO [main] mortbay.log: jetty-6.1.26 > >> > 2015-05-17 20:39:19,157 INFO [main] mortbay.log: Started > >> > SelectChannelConnector@0.0.0.0:49811 > >> > 2015-05-17 20:39:19,222 INFO [M:0;localhost:49807] > >> > zookeeper.RecoverableZooKeeper: Process > >> > identifier=3Dhconnection-0x4f708099 connecting to ZooKeeper > >> > ensemble=3Dlocalhost:2181 > >> > 2015-05-17 20:39:19,222 INFO [M:0;localhost:49807] > >> > zookeeper.ZooKeeper: Initiating client connection, > >> > connectString=3Dlocalhost:2181 sessionTimeout=3D10000 > >> > watcher=3Dhconnection-0x4f7080990x0, quorum=3Dlocalhost:2181, > >> > baseZNode=3D/hbase > >> > 2015-05-17 20:39:19,223 INFO > >> > [M:0;localhost:49807-SendThread(localhost:2181)] zookeeper.ClientCnx= n: > >> > Opening socket connection to server localhost/127.0.0.1:2181. Will > not > >> > attempt to authenticate using SASL (unknown error) > >> > 2015-05-17 20:39:19,223 INFO > >> > [M:0;localhost:49807-SendThread(localhost:2181)] zookeeper.ClientCnx= n: > >> > Socket connection established to localhost/127.0.0.1:2181, initiatin= g > >> > session > >> > 2015-05-17 20:39:19,223 INFO > >> > [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] > >> > server.NIOServerCnxnFactory: Accepted socket connection from > >> > /127.0.0.1:49812 > >> > 2015-05-17 20:39:19,223 INFO > >> > [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181] server.ZooKeeperServer: > >> > Client attempting to establish new session at /127.0.0.1:49812 > >> > 2015-05-17 20:39:19,224 INFO [SyncThread:0] server.ZooKeeperServer: > >> > Established session 0x14d651aaec00002 with negotiated timeout 400000= 0 > >> > for client /127.0.0.1:49812 > >> > 2015-05-17 20:39:19,224 INFO > >> > [M:0;localhost:49807-SendThread(localhost:2181)] zookeeper.ClientCnx= n: > >> > Session establishment complete on server localhost/127.0.0.1:2181, > >> > sessionid =3D 0x14d651aaec00002, negotiated timeout =3D 4000000 > >> > 2015-05-17 20:39:19,249 INFO [M:0;localhost:49807] > >> > regionserver.HRegionServer: ClusterId : > >> > 6ad7eddd-2886-4ff0-b377-a2ff42c8632f > >> > 2015-05-17 20:39:49,208 ERROR [main] master.HMasterCommandLine: Mast= er > >> exiting > >> > java.lang.RuntimeException: Master not active after 30 seconds > >> > at > >> > org.apache.hadoop.hbase.util.JVMClusterUtil.startup(JVMClusterUtil.java:1= 94) > >> > at > >> > org.apache.hadoop.hbase.LocalHBaseCluster.startup(LocalHBaseCluster.java:= 445) > >> > at > >> > org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterComm= andLine.java:197) > >> > at > >> > org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.= java:139) > >> > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > >> > at > >> > org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.j= ava:126) > >> > at > org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:2002) > >> > > >> > > >> > I noticed that this has something to do with the ZooKeeper data. If= I > >> > rm -rf $TMPDIR/hbase-tsuna/zookeeper then I can start HBase again. > >> > But of course HBase won=E2=80=99t work properly because while some t= ables > >> > exist on the filesystem, they no longer exist in ZK, etc. > >> > > >> > Does anybody know what could be left behind in ZK that could make it > >> > hang during startup? I looked at a jstack output while it was pause= d > >> > during 30s and didn=E2=80=99t find anything noteworthy. > >> > > >> > -- > >> > Benoit "tsuna" Sigoure > >> > > > > -- > Benoit "tsuna" Sigoure > --=20 Thanks & Regards, Anil Gupta --001a11396180e134e0051668144b--