Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 845627917 for ; Fri, 14 Oct 2011 06:31:46 +0000 (UTC) Received: (qmail 20618 invoked by uid 500); 14 Oct 2011 06:31:43 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 20573 invoked by uid 500); 14 Oct 2011 06:31:43 -0000 Mailing-List: contact common-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-user@hadoop.apache.org Delivered-To: mailing list common-user@hadoop.apache.org Received: (qmail 20564 invoked by uid 99); 14 Oct 2011 06:31:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2011 06:31:40 +0000 X-ASF-Spam-Status: No, hits=3.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.176] (HELO mail-wy0-f176.google.com) (74.125.82.176) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Oct 2011 06:31:35 +0000 Received: by wyg10 with SMTP id 10so3876975wyg.35 for ; Thu, 13 Oct 2011 23:31:13 -0700 (PDT) MIME-Version: 1.0 Received: by 10.227.59.12 with SMTP id j12mr2412392wbh.86.1318573873089; Thu, 13 Oct 2011 23:31:13 -0700 (PDT) Received: by 10.180.97.167 with HTTP; Thu, 13 Oct 2011 23:31:12 -0700 (PDT) In-Reply-To: <3FB4A382-D1E0-4027-8D41-1A3E518DB06B@websoft.com> References: <1318390192608-3414658.post@n3.nabble.com> <89C34ECA-66F4-4873-BAD1-4FBD85693251@websoft.com> <8D8B44AE-FEBE-433A-8BC6-BC5DE34957F1@websoft.com> <4E967EF3.1090900@hortonworks.com> <1318519824234-3418924.post@n3.nabble.com> <4E499DD0-2505-468C-9D33-032758B7D920@websoft.com> <7F5A621F-6D64-4821-8602-6F106BEE1479@websoft.com> <3FB4A382-D1E0-4027-8D41-1A3E518DB06B@websoft.com> Date: Thu, 13 Oct 2011 23:31:12 -0700 Message-ID: Subject: Re: Hbase with Hadoop From: Ramya Sunil To: common-user@hadoop.apache.org, Jignesh Patel Content-Type: multipart/alternative; boundary=20cf30025cac50cd5e04af3c67dc --20cf30025cac50cd5e04af3c67dc Content-Type: text/plain; charset=ISO-8859-1 Jignesh, I have been able to deploy Hbase 0.90.3 and 0.90.4 with hadoop-0.20.205. Below are the steps I followed: 1. Make sure none of hbasemaster, regionservers or zookeeper are running. As Matt pointed out, turn on append. 2. hbase-daemon.sh --config $HBASE_CONF_DIR start zookeeper 3. hbase-daemon.sh --config $HBASE_CONF_DIR start master 4. hbase-daemon.sh --config $HBASE_CONF_DIR start regionserver 5. hbase --config $HBASE_CONF_DIR shell Hope it helps. Ramya On Thu, Oct 13, 2011 at 4:11 PM, Jignesh Patel wrote: > Is there a way to resolve this weird problem. > > > bin/hbase-start.sh is supposed to start zookeeper but it doesn't start. > But on the other side if zookeeper up and running then it says > > > Couldnt start ZK at requested address of 2181, instead got: 2182. > Aborting. Why? Because clients (eg shell) wont be able to find this ZK > quorum > > > > On Oct 13, 2011, at 5:40 PM, Jignesh Patel wrote: > > > Ok now the problem is > > > > if I only use bin/hbase-start.sh then it doesn't start zookeeper. > > > > But if I use bin/hbase-daemon.sh start zookeeper before starting > bin/hbase-start.sh then it will try to start zookeeper at port 2181 and then > I have following error. > > > > Couldnt start ZK at requested address of 2181, instead got: 2182. > Aborting. Why? Because clients (eg shell) wont be able to find this ZK > quorum > > > > > > So I am wondering if bin/hbase-start.sh is trying to start zookeeper then > while zookeeper is not running it should start the zookeeper. I only get the > error if zookeeper already running. > > > > > > -Jignesh > > > > > > On Oct 13, 2011, at 4:53 PM, Ramya Sunil wrote: > > > >> You already have zookeeper running on 2181 according to your jps output. > >> That is the reason, master seems to be complaining. > >> Can you please stop zookeeper, verify that no daemons are running on > 2181 > >> and restart your master? > >> > >> On Thu, Oct 13, 2011 at 12:37 PM, Jignesh Patel > wrote: > >> > >>> Ramya, > >>> > >>> > >>> Based on "Hbase the definite guide" it seems zookeeper being started by > >>> hbase no need to start it separately(may be this is changed for 0.90.4. > >>> Anyways now following is the updated status. > >>> > >>> Jignesh-MacBookPro:hadoop-hbase hadoop-user$ bin/start-hbase.sh > >>> starting master, logging to > >>> > /users/hadoop-user/hadoop-hbase/logs/hbase-hadoop-user-master-Jignesh-MacBookPro.local.out > >>> Couldnt start ZK at requested address of 2181, instead got: 2182. > Aborting. > >>> Why? Because clients (eg shell) wont be able to find this ZK quorum > >>> Jignesh-MacBookPro:hadoop-hbase hadoop-user$ jps > >>> 41486 HQuorumPeer > >>> 38814 SecondaryNameNode > >>> 41578 Jps > >>> 38878 JobTracker > >>> 38726 DataNode > >>> 38639 NameNode > >>> 38964 TaskTracker > >>> > >>> On Oct 13, 2011, at 3:23 PM, Ramya Sunil wrote: > >>> > >>>> Jignesh, > >>>> > >>>> I dont see zookeeper running on your master. My cluster reads the > >>> following: > >>>> > >>>> $ jps > >>>> 15315 Jps > >>>> 13590 HMaster > >>>> 15235 HQuorumPeer > >>>> > >>>> Can you please shutdown your Hmaster and run the following first: > >>>> $ hbase-daemon.sh start zookeeper > >>>> > >>>> And then start your hbasemaster and regionservers? > >>>> > >>>> Thanks > >>>> Ramya > >>>> > >>>> On Thu, Oct 13, 2011 at 12:01 PM, Jignesh Patel > >>> wrote: > >>>> > >>>>> ok --config worked but it is showing me same error. How to resolve > this. > >>>>> > >>>>> http://pastebin.com/UyRBA7vX > >>>>> > >>>>> On Oct 13, 2011, at 1:34 PM, Ramya Sunil wrote: > >>>>> > >>>>>> Hi Jignesh, > >>>>>> > >>>>>> "--config" (i.e. - - config) is the option to use and not "-config". > >>>>>> Alternatively you can also set HBASE_CONF_DIR. > >>>>>> > >>>>>> Below is the exact command line: > >>>>>> > >>>>>> $ hbase --config /home/ramya/hbase/conf shell > >>>>>> hbase(main):001:0> create 'newtable','family' > >>>>>> 0 row(s) in 0.5140 seconds > >>>>>> > >>>>>> hbase(main):002:0> list 'newtable' > >>>>>> TABLE > >>>>>> newtable > >>>>>> 1 row(s) in 0.0120 seconds > >>>>>> > >>>>>> OR > >>>>>> > >>>>>> $ export HBASE_CONF_DIR=/home/ramya/hbase/conf > >>>>>> $ hbase shell > >>>>>> > >>>>>> hbase(main):001:0> list 'newtable' > >>>>>> TABLE > >>>>>> > >>>>>> newtable > >>>>>> > >>>>>> 1 row(s) in 0.3860 seconds > >>>>>> > >>>>>> > >>>>>> Thanks > >>>>>> Ramya > >>>>>> > >>>>>> > >>>>>> On Thu, Oct 13, 2011 at 8:30 AM, jigneshmpatel < > >>> jigneshmpatel@gmail.com > >>>>>> wrote: > >>>>>> > >>>>>>> There is no command like -config see below > >>>>>>> > >>>>>>> Jignesh-MacBookPro:hadoop-hbase hadoop-user$ bin/hbase -config > >>> ./config > >>>>>>> shell > >>>>>>> Unrecognized option: -config > >>>>>>> Could not create the Java virtual machine. > >>>>>>> > >>>>>>> -- > >>>>>>> View this message in context: > >>>>>>> > >>>>> > >>> > http://lucene.472066.n3.nabble.com/Hbase-with-Hadoop-tp3413950p3418924.html > >>>>>>> Sent from the Hadoop lucene-users mailing list archive at > Nabble.com. > >>>>>>> > >>>>> > >>>>> > >>> > >>> > > > > --20cf30025cac50cd5e04af3c67dc--