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 A275878ED for ; Mon, 5 Dec 2011 17:22:41 +0000 (UTC) Received: (qmail 83853 invoked by uid 500); 5 Dec 2011 17:22:39 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 83786 invoked by uid 500); 5 Dec 2011 17:22:39 -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 83778 invoked by uid 99); 5 Dec 2011 17:22:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 17:22:39 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.210.169 as permitted sender) Received: from [209.85.210.169] (HELO mail-iy0-f169.google.com) (209.85.210.169) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Dec 2011 17:22:35 +0000 Received: by iapp10 with SMTP id p10so7984037iap.14 for ; Mon, 05 Dec 2011 09:22:14 -0800 (PST) Received: by 10.42.29.6 with SMTP id p6mr10284573icc.44.1323105733952; Mon, 05 Dec 2011 09:22:13 -0800 (PST) Received: from [192.168.1.2] ([59.92.52.145]) by mx.google.com with ESMTPS id jm11sm78839572ibb.1.2011.12.05.09.22.10 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 05 Dec 2011 09:22:12 -0800 (PST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1084) Subject: Re: hbase master is not starting @ 60010 on new ubutnu 11.04 system From: Harsh J In-Reply-To: Date: Mon, 5 Dec 2011 22:52:04 +0530 Content-Transfer-Encoding: quoted-printable Message-Id: <835F68CE-378C-40C0-994A-9526BDE950D7@cloudera.com> References: To: user@hbase.apache.org X-Mailer: Apple Mail (2.1084) Wow, that is almost a guide for the rest of us. You missed only the = logs. Going through your steps, these are all I note: 1. Why use CDH3u1 when u2 is the latest? 2. You do not need 3 ZKs on a single machine. One is sufficient - you've = only ended up complicating the setup there :) 3. The prop "hbase.master" probably does not apply anymore. IIRC, we = source up the address via default interface instead, via DNS utils. 4. Use the Sun JDK/JRE, not OpenJDK/JRE. 5. Do a 'netstat -an | grep 60010' to figure out which interface it is = listening to. It should be listening on all interfaces by default, but = if that's not the case then that's your problem when you try = "localhost:60010". Try setting the "hbase.master.info.bindAddress" to = 'localhost' perhaps. 6. Disable IPv6, in either HBase/Hadoop, or in your Ubuntu itself. This = could also be your issue. 7. Lastly, can you ensure you have HMaster and HRegionServer showing up = properly on your jps after you try accessing it? Good to check if it = didn't crash on you. 8. A message like "2011-11-09 12:10:35,611 INFO = org.apache.hadoop.http.HttpServer: Jetty bound to port 60010" in the = HMaster logs is assuring to see - if the HttpServer has started yet or = not. On 05-Dec-2011, at 12:38 PM, Rahul Mehta wrote: > I am trying to install hbase on my local system ubutnu 11.04 . >=20 > what i have done to do that is : >=20 > 1. SSH Configuration > 1. sh-keygen -t rsa > 2. do the enter enter when it ask something. > 3. cd ~/.ssh > 4. sudo apt-get install openssh-server > 5. ssh localhost > 2. Installing and configuring Zookeeper > 1. wget > http://archive.cloudera.com/cdh/3/zookeeper-3.3.3-cdh3u1.tar.gz > 2. tar xzvf > = zookeeper-3.3.3-cdh3u1.tar.gz > 3. mv zoo.cfg zoo1.cfg (in conf of zookeeper) > 4. cp zoo1.cfg zoo2.cfg > 5. cp zoo1.cfg zoo3.cfg > 6. Make the three data directory for each config file , i made > /home/rahul/oodebesetup/data/zookeeper/data1 , data2 data3 resp. = Change > dataDir for all three config file respectively. > 7. make myid file in each data directory and edit file = respective > 1,2 and 3 the id of server. > 8. add this in all three config file at below > 1. server.1=3Dlocalhost:2878:3878 > 2. server.2=3Dlocalhost:2879:3879 > 3. server.3=3Dlocalhost:2880:3880 > 9. change Clientport of 1:2181 , 2: 2182 , 3 :2183 resp. > 10. ./bin/zkServer.sh start in conf directory e.g. zoo1.cfg> > 11. can check with jps command there should be these processes > 1. 3466 QuorumPeerMain > 2. 3399 QuorumPeerMain > 3. 3426 QuorumPeerMain >=20 >=20 >=20 > 1. Installing and configuring Hadoop > 1. wget = http://archive.cloudera.com/cdh/3/hadoop-0.20.2-cdh3u1.tar.gz > 2. tar xzvf hadoop-0.20.2-cdh3u1.tar.gz > 3. create data directory for hadoop with inside folder hdfs . > 4. edit /conf/core_sites.xml >=20 >=20 > >=20 > fs.default.name >=20 > hdfs://localhost:9000 >=20 > This is the namenode uri >=20 > >=20 > >=20 > hadoop.tmp.dir >=20 > /home/rahul/oodebesetup/data/hadoop/hdfs >=20 > This is the namenode uri / directory >=20 > >=20 > 1. edit /conf/hdfs-site.xml >=20 >=20 > >=20 > dfs.replication >=20 > 1 >=20 > Default block replication.The actual number of > replications can be specified when the file is created. The default is = used > if replication is not specified in create time. >=20 > >=20 > 1. edit /conf/mapred-site.xml >=20 >=20 > >=20 > mapred.job.tracker >=20 > localhost:9001 >=20 > The host and port that the MapReduce job tracker runs at. = If > "local", then jobs are run in-process as a single map and reduce > task. >=20 > >=20 > 1. edit /conf/hadoop-env.sh > 1. export JAVA_HOME=3D/usr/lib/jvm/java-6-openjdk > 2. Formatting the namenode > 1. /bin/hadoop namenode -format > 3. Start Hadoop server > 1. /bin/start-all.sh > 4. check with jps there should be these process. > 1. 10119 DataNode > 2. 10413 JobTracker > 3. 10338 SecondaryNameNode > 4. 10625 TaskTracker > 5. 9897 NameNode > 1. Installing and configuring HBase > 1. wget = http://archive.cloudera.com/cdh/3/hbase-0.90.3-cdh3u1.tar.gz > 2. tar xzvf hbase-0.90.3-cdh3u1.tar.gz > 3. edit /conf/hbase_site.xml >=20 >=20 > >=20 > hbase.master >=20 > localhost:60000 >=20 > The host and port that the HBase master runs at.A value = of > 'local' runs the master and a regionserver in a single > process. >=20 > >=20 > >=20 > hbase.rootdir >=20 > hdfs://localhost:9000/hdfs >=20 > The directory shared by region servers. >=20 > >=20 > >=20 > hbase.cluster.distributed >=20 > true >=20 > 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) >=20 > >=20 > >=20 > >=20 > hbase.zookeeper.property.clientPort >=20 > 2181 >=20 > Property from ZooKeeper's config zoo.cfg.The port at = which the > clients will connect. >=20 > >=20 > >=20 > hbase.zookeeper.quorum >=20 > localhost >=20 > Comma separated list of servers in the ZooKeeper = Quorum.For > example,"host1.mydomain.com,host2.mydomain.com".By default this is set = to > localhost for local and pseudo-distributed modes of operation. For > afully-distributed setup, this should be set to a full list of = ZooKeeper > quorum servers. If HBASE_MANAGES_ZK is set in hbase-env.sh this is the = list > of servers which we will start/stop ZooKeeper on. >=20 > >=20 > 1. edit /conf/hbase_env.sh > 1. export HBASE_MANAGES_ZK=3Dfalse > 2. export JAVA_HOME=3D/usr/lib/jvm/java-6-openjdk > 2. start hbase server > 1. /bin/start-hbase.sh > 3. verify by jps command > 1. HMaster > 2. HRegionServer >=20 > But when i am running webconsole of hbase @ http://localhost:60010 it = is > not opening . Please suggest why ? >=20 >=20 > --=20 > Thanks & Regards >=20 > Rahul Mehta