Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase, mail # user - zookeeper connection problem in pseudo mode


Copy link to this message
-
Re: zookeeper connection problem in pseudo mode
yonghu 2012-01-06, 16:59
Hello Tom,

Thanks for your suggestion. I also felt that Zookeeper had problem. I
will try to install Zookeeper separate from HBase.

Yong

On Fri, Jan 6, 2012 at 5:01 PM, Tom Wilcox <[EMAIL PROTECTED]> wrote:
> Yong,
>
> Following Leonardo's response, when I run ifconfig on our regionserver (also our namenode) I get the following:
>
>
> [hadoop1@namenode hadoop-1.0.0]$ ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:15:5D:00:E5:09
>          inet addr:10.0.0.235  Bcast:10.255.255.255  Mask:255.0.0.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:19919141 errors:0 dropped:0 overruns:0 frame:4
>          TX packets:12620289 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:15386337069 (14.3 GiB)  TX bytes:5571908867 (5.1 GiB)
>          Interrupt:9 Base address:0x6000
>
> lo        Link encap:Local Loopback
>          inet addr:127.0.0.1  Mask:255.0.0.0
>          UP LOOPBACK RUNNING  MTU:16436  Metric:1
>          RX packets:3121776 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:3121776 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:0
>          RX bytes:1272206567 (1.1 GiB)  TX bytes:1272206567 (1.1 GiB)
>
> Here's the contents of our hbase-site.xml, however, please note that we are running our zookeepers outside of hbase (i.e. in $HBASE_HOME/conf/hbase-env.sh we have set the following:  "export HBASE_MANAGES_ZK=false" ) and we are running in fully distributed mode, so I am not sure how useful this will be to you:
>
> [hadoop1@namenode hadoop-1.0.0]$ cat /opt/hbase/hbase-0.92/conf/hbase-site.xml
> <?xml version="1.0"?>
> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
> <!--
> /**
>  * Copyright 2010 The Apache Software Foundation
>  *
>  * Licensed to the Apache Software Foundation (ASF) under one
>  * or more contributor license agreements.  See the NOTICE file
>  * distributed with this work for additional information
>  * regarding copyright ownership.  The ASF licenses this file
>  * to you under the Apache License, Version 2.0 (the
>  * "License"); you may not use this file except in compliance
>  * with the License.  You may obtain a copy of the License at
>  *
>  *     http://www.apache.org/licenses/LICENSE-2.0
>  *
>  * Unless required by applicable law or agreed to in writing, software
>  * distributed under the License is distributed on an "AS IS" BASIS,
>  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>  * See the License for the specific language governing permissions and
>  * limitations under the License.
>  */
> -->
> <configuration>
> <!-- Fully Distributed -->
>  <property>
>    <name>hbase.rootdir</name>
>    <value>hdfs://namenode:8020/hbase</value>
>    <description>The directory shared by RegionServers.</description>
>  </property>
>  <property>
>    <name>hbase.cluster.distributed</name>
>    <value>true</value>
>    <description>
>                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)
>    </description>
>  </property>
>
> <!-- ZooKeeper config -->
>    <property>
>      <name>hbase.zookeeper.property.clientPort</name>
>      <value>2181</value>
>      <description>
>                Property from ZooKeeper's config zoo.cfg.
>                The port at which the clients will connect.
>      </description>
>    </property>
>    <property>
>      <name>hbase.zookeeper.quorum</name>
>      <value>namenode, jobtracker, slave0</value>
>      <description>
>        Comma separated list of servers in the ZooKeeper Quorum.
>        For example, "host1.mydomain.com,host2.mydomain.com,host3.mydomain.com".
>        By default this is set to localhost for local and pseudo-distributed modes
>        of operation. For a fully-distributed setup, this should be set to a full