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 8D2A0200BB6 for ; Fri, 21 Oct 2016 01:03:51 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 8BC88160AF2; Thu, 20 Oct 2016 23:03:51 +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 A94B0160AE0 for ; Fri, 21 Oct 2016 01:03:50 +0200 (CEST) Received: (qmail 50548 invoked by uid 500); 20 Oct 2016 23:03:44 -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 50536 invoked by uid 99); 20 Oct 2016 23:03:44 -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; Thu, 20 Oct 2016 23:03:44 +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 6B8B4C1A5D for ; Thu, 20 Oct 2016 23:03:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.679 X-Spam-Level: * X-Spam-Status: No, score=1.679 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, 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 mx1-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 s0EryeXSm53V for ; Thu, 20 Oct 2016 23:03:41 +0000 (UTC) Received: from mail-it0-f50.google.com (mail-it0-f50.google.com [209.85.214.50]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 475DB5F201 for ; Thu, 20 Oct 2016 23:03:41 +0000 (UTC) Received: by mail-it0-f50.google.com with SMTP id 139so188109676itm.1 for ; Thu, 20 Oct 2016 16:03:41 -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; bh=ELjhasl7vLRvwlTft0JxzTYzrGkRNtrAWZKLfbtcqzg=; b=r11jQOPIVqaKqHh54M4B0IngBh7sSbqq6rjY57ydYqq+HPM1bAvvWmmKukrV7cACSS QYEnE/rDWUQWzeLBd8WhgfKCs077Cw7m5yGvHfg0xcNDIe5ZJuCv5TQBaMopZbFnDpX0 GZhKg5A7ipilfVXLhzovIxnjAiRWfEVVtiUG1Vo4SuDK/lTt5n5UdqE0ZrpOCrBe+7xy yfQy6P5vo2z/jp0gFi3WhgH6ghu1xXR5AhPttSN1sDAszmbxg8HLtKgf5SO14m2r41sP hGiOHNVuqkIX/FtCdIqrqA7qx3iYMSRBN7VgOQhocGgt71U5DOloWunZZG9I9Fgi5zkx 3tow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=ELjhasl7vLRvwlTft0JxzTYzrGkRNtrAWZKLfbtcqzg=; b=Lt/7mGG8bhd7AJMl/eWF9l70mFlpEWXFNIILLQ5jlAFt65QrEiBmkjTmXgrKxHAdQK KrNkuFEIRcHD0J4dllWjUPSsLwn9JynMji+vG1CMefTs9e3+Ilwjhdfe0INFpxj4KkPr C+QAvzG6NTdUD0xpsOzRXoaWZ82GHRYmYDHbwNINxk7Xc6yyd2ARfAEUHExmUrjGRVEX 39ezmmyM7OZMHGCWxoMlJtFQcqEzGjfeUDoN0NhcsTZhB233V4OWEG+ZexaaBtOE51vM cXqkuOMzlTbKnbL6+ZJV6q7y/Uuu6BAQ0JqD4gA8p7BHWKHNgLAJT7uT4rFOPtwntAjJ rw3A== X-Gm-Message-State: ABUngvdXOEPj+NMxDqFkn5XIn/eKs/sxJ+Bsj7giSC03VGUA5/VAt4EHEkIxKCaqmqxUyUpQ+NogWNC4DpmooQ== X-Received: by 10.107.15.222 with SMTP id 91mr3491258iop.19.1477004616597; Thu, 20 Oct 2016 16:03:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.64.225.104 with HTTP; Thu, 20 Oct 2016 16:03:35 -0700 (PDT) In-Reply-To: References: From: Demai Ni Date: Thu, 20 Oct 2016 16:03:35 -0700 Message-ID: Subject: Re: setup two hbase instances on Mac? To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a113fe9348108c0053f53ef1e archived-at: Thu, 20 Oct 2016 23:03:51 -0000 --001a113fe9348108c0053f53ef1e Content-Type: text/plain; charset=UTF-8 Actually I don't have a good reason of 'not use container', except that I already have homebrew install hadoop and hbase on my laptop, hence like to just keep using it. Thanks for the instruction through the blog. A quick question to clarify: the blog is for multi-node cluster, instead of setting up two clusters on the same machine? If I follow the instruction, which step should I revise? At this moment, I don't need the management/monitoring features from CDH, and no need to install other components yet. Hence, looking for a simpler way. I hope(maybe unrealistic) that I can get just a 2nd set for configuration files, such as hbase-site.xml, hbase-env, etcs, then I will be able to run two isolated(not resource wise) hbase instances. Again, thanks a lot for the tip. I may give it a try if simple configuration change not available. Demai Demai On Thu, Oct 20, 2016 at 3:04 PM, Dima Spivak wrote: > Any reason to not use the container way via clusterdock [1]? I do > replication testing on my Mac for this using it and have had pretty good > results. > > 1. > http://blog.cloudera.com/blog/2016/08/multi-node-clusters- > with-cloudera-quickstart-for-docker/ > > -Dima > > On Thu, Oct 20, 2016 at 2:51 PM, Demai Ni wrote: > > > hi, folks, > > > > I am trying to setup a simple development environment on my Mac Book. And > > like to have multiple instances of HBases, for some testing of > replication, > > backup. etc. And wondering there is any instruction to setup for multiple > > instances(not the VM/container way). > > > > Here is what I did so far. Install one through homebrew, and build > another > > one from source code. > > > > To make my life easier, I setup the following alias: > > /* first HBase, is installed by homebrew and using HDFS as storage, by > > specify hbase.rootdir */ > > alias hDFSHBaseShell='/usr/local/bin/hbase shell' > > alias > > hstart='/usr/local/Cellar/hadoop/2.7.3/sbin/start-dfs. > > sh;/usr/local/Cellar/hadoop/2.7.3/sbin/start-yarn.sh' > > alias > > hstop='/usr/local/Cellar/hadoop/2.7.3/sbin/stop-yarn. > > sh;/usr/local/Cellar/hadoop/2.7.3/sbin/stop-dfs.sh' > > alias startHDFSHBase='/usr/local/bin/start-hbase.sh' > > alias stopHDFSHBase='/usr/local/bin/stop-hbase.sh' > > > > > > /* 2nd HBase, is build locally from git clone, and using localfile system > > as storage */ > > /* changed HBASE_PID_DIR in hbase-env.sh to avoid conflict with the first > > instance > > alias localHBaseShell='/Users/demai/hbase/bin/hbase shell' > > alias startLocalHBase='/Users/demai/hbase/bin/start-hbase.sh' > > alias stopLocalHBase='/Users/demai/hbase/bin/stop-hbase.sh' > > > > Still, it is not enough as the start/stop hbase will only bring up on > > instance, and bring it down regardless which stop-hbase.sh I used. I > guess > > more port configuration, like describe there : > > http://blog.cloudera.com/blog/2013/07/guide-to-using-apache-hbase-ports/ > , > > need to change in hbase-site.xml? > > > > Before, I go down the manually port configuration route. Just wondering > > whether anyone already done it? To save me some time of random > shooting.... > > :-) > > > > Many thanks. BTW, I did a bit google using 'multiple hbase instances', > but > > search results doesn't exactly match this environment. > > > > Demai > > > --001a113fe9348108c0053f53ef1e--