Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A907C200B7A for ; Mon, 5 Sep 2016 09:01:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A761A160ACB; Mon, 5 Sep 2016 07:01:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C7B4E160ABC for ; Mon, 5 Sep 2016 09:01:05 +0200 (CEST) Received: (qmail 14169 invoked by uid 500); 5 Sep 2016 07:01:04 -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 14155 invoked by uid 99); 5 Sep 2016 07:01:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Sep 2016 07:01:04 +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 96951C05D4 for ; Mon, 5 Sep 2016 07:01:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.821 X-Spam-Level: X-Spam-Status: No, score=-0.821 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id nsjsW5Awa3Zh for ; Mon, 5 Sep 2016 07:01:00 +0000 (UTC) Received: from mail-pa0-f46.google.com (mail-pa0-f46.google.com [209.85.220.46]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id 94BD75FC25 for ; Mon, 5 Sep 2016 07:01:00 +0000 (UTC) Received: by mail-pa0-f46.google.com with SMTP id id6so1081255pad.3 for ; Mon, 05 Sep 2016 00:01:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=ndWJQMNWBkYOGZxGp6fuuToJhioSPPuyF4UGAcDnNE4=; b=O0eIUgG2XsYIlvzhwYxyNKtkDaXhHJ6hPv49uEtz5JbqF5ZTp9K00V6mmIrB1p66XZ 5DdJkuV6XcNa4evZzEMwk2EFUctK7mNPziNlvUzpqjawAuEH9uyx2wHNeQDIWi9Ds8St wRJi4VsKMUvvzmFHRk4VTnDSUpdNUfbnV5x4NrO3iVjdzw8lB79FgKhXf/vZMxu5yyAg oWkdOhmi4aSAFwAgrQAOCjU+pJDn2t58Cb7J6DapxnZcRiaCQno+zv3mZLrAVglbI/zj YOcrjYMOVihk6MMxZfOEosvfsY1WAx239RMVbUMCGH8GbE8GCfE9zZw3r7uuMNQjLO+e HN7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to; bh=ndWJQMNWBkYOGZxGp6fuuToJhioSPPuyF4UGAcDnNE4=; b=f+ZwC6TiKEDl01djoKVTxNB9zQxjUx8pfEuXLUA+y2Wa6aDIz0SumZ27bKVAj9ANRE Au1OiFk4Mg4lCVw0Giqmfk1nOW3/TksAxQ44mQFC5v9ZU8mz55RCcRe67pF6cDkbztsk xfaG66L54cGBekZHvijwdtlORMCO0BM3NdVJElXq5yLzUqULY9oGt80nEmiIUBps5UnU MOCoOj1fd2VJUa5HguMwx5Y3w3ImQctO6bF+A49W0pO0fILR1R+3R6JqGNWW5ft3mbV+ vxG9KPToTWiB9iC9NQF7Bddt+yboIc7drYQKOcYB/qRFRefUcIRtD84QwAagPaJ4MxOz FejQ== X-Gm-Message-State: AE9vXwM0jESVJ/UUFMF/V+GyRQJp6OjEL1iMPB0/mLT8AmJ3vt6LADU/JyxPLhJmhWftDw== X-Received: by 10.66.185.14 with SMTP id ey14mr61934592pac.71.1473058859534; Mon, 05 Sep 2016 00:00:59 -0700 (PDT) Received: from [192.168.25.47] ([49.255.241.130]) by smtp.gmail.com with ESMTPSA id e1sm28925238pap.11.2016.09.05.00.00.57 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Sep 2016 00:00:59 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\)) Subject: Re: HBase on docker NotServingRegionException because of hostname alisas From: Pierre Caserta In-Reply-To: Date: Mon, 5 Sep 2016 17:04:09 +1000 Content-Transfer-Encoding: quoted-printable Message-Id: References: <06089C15-4B61-46C4-A7F7-F11F866275B6@gmail.com> To: user@hbase.apache.org X-Mailer: Apple Mail (2.2104) archived-at: Mon, 05 Sep 2016 07:01:06 -0000 That is a good script thanks but I would like to understand exactly what = is the problem with my config without adding another level of = abstraction and just running the clusterdock command. In your script I can see that you are using --net=3Dhost. I think this = is the main difference compared to what I am doing which is creating a = bridge network for the hadoop cluster. I have only 3 machines: hadoop-master, hadoop-slave1, hadoop-slave2. Why do those strange hadoop-slave2.hadoopnet alias appear in the web ui? It looks like the network name is used as part of the hostname. Any idea what it is happening in my case? Pierre > On 5 Sep 2016, at 16:48, Dima Spivak wrote: >=20 > You should try the Apache HBase topology for clusterdock that was = committed > a few months back. See HBASE-12721 for details. >=20 > On Sunday, September 4, 2016, Pierre Caserta = > wrote: >=20 >> Hi, >> I am building a fully distributed hbase cluster with unmanaged = zookeeper. >> I pretty much used this example and install hbase on top of it: >> https://github.com/kiwenlau/hadoop-cluster-docker >>=20 >> Hadoop and hdfs works fine but I get this exception with hbase: >>=20 >> 2016-09-05 06:27:12,268 INFO = [hadoop-master:16000.activeMasterManager] >> zookeeper.MetaTableLocator: Failed verification of hbase:meta,,1 at >> address=3Dhadoop-slave2,16020,1473052276351, = exception=3Dorg.apache.hadoop. >> hbase.NotServingRegionException: Region hbase:meta,,1 is not online = on >> hadoop-slave2.hadoopnet,16020,1473056813966 >> at org.apache.hadoop.hbase.regionserver.HRegionServer. >> getRegionByEncodedName(HRegionServer.java:2910) >>=20 >> This is bloking because any command I enter on the hbase shell will = return >> the following error: >>=20 >> ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is >> initializing >>=20 >> The containers are runned using --net=3Dhadoopnet >> which is a network create as such: >>=20 >> docker network create --driver=3Dbridge hadoopnet >>=20 >> The hbase webui is showing this: >>=20 >> Region Servers >> ServerName Start time Version Requests Per Second Num. >> Regions >> hadoop-slave1,16020,1473056814064 Mon Sep 05 06:26:54 UTC 2016 >> 1.2.2 0 0 >> hadoop-slave1.hadoopnet,16020,1473056814064 Mon Sep 05 06:26:54 = UTC >> 2016 Unknown 0 0 >> hadoop-slave2,16020,1473056813966 Mon Sep 05 06:26:53 UTC 2016 >> 1.2.2 0 0 >> hadoop-slave2.hadoopnet,16020,1473056813966 Mon Sep 05 06:26:53 = UTC >> 2016 Unknown 0 0 >> Total:4 2 nodes with inconsistent version 0 = 0 >>=20 >> I should have only 2 regionservers but 2 strange = hadoop-slave1.hadoopnet >> and hadoop-slave2.hadoopnet are added to the list. >> When I look at zk using: >>=20 >> /usr/local/hbase/bin/hbase zkcli -server zk:2181 ls /hbase/rs >>=20 >> I only see my 2 regionserver: hadoop-slave1,16020,1473056814064 and >> hadoop-slave2,16020,1473056813966 >>=20 >> Looking at the zookeeper.MetaTableLocator: Failed verification error = I see >> that hadoop-slave2,16020,1473052276351 and = hadoop-slave2.hadoopnet,16020,1473056813966 >> get mixed up. >>=20 >> here is my config on all server >>=20 >> >> >>=20 >> >> >> hbase.rootdir >> hdfs://hadoop-master:9000/hbase >> The directory shared by region servers. = Should >> be fully-qualified to include the filesystem to use. E.g: >> hdfs://NAMENODE_SERVER:PORT/HBASE_ROOTDIR >> >> >> hbase.master >> hdfs://hadoop-master:60000 >> The host and port that the HBase master = runs >> at. >> >> >> hbase.cluster.distributed >> true >> The mode the cluster will be in. Possible >> values are >> false: standalone and pseudo-distributed setups with = managed >> Zookeeper >> true: fully-distributed with unmanaged Zookeeper Quorum = (see >> hbase-env.sh) >> >> >> hbase.master.info.port >> 60010 >> The UI interface of HBase master >> runs. >> >> >> hbase.zookeeper.quorum >> zk >> string m_e_m_b_e_r_s is replaced by list of >> hosts separated by comma. Its generated by configure-slaves.sh on = master >> node >> >> >> hbase.zookeeper.property.maxClientCnxns >> 300 >> >> >> hbase.zookeeper.property.datadir >> /tmp/zookeeper >> location of storage of zookeeper >> data >> >> >> hbase.zookeeper.property.clientPort >> 2181 >> >>=20 >> >>=20 >> I created a stack overflow question as well: = http://stackoverflow.com/ >> questions/39325041/hbase-on-docker-notservingregionexception- >> because-of-hostname-alisas > questions/39325041/hbase-on-docker-notservingregionexception- >> because-of-hostname-alisas> >>=20 >> Thanks, >> Pierre >=20 >=20 >=20 > --=20 > -Dima