hello, list,

              I am now setting up a HBase cluster using HBase version
0.20.2. But I have met some problems which I googled a lot and got no
answer.
              Please help me.

              I modified the Hbase-site.xml and copy the  whole directory to
another machine.
              Using one as the master, after I started the hbase server, I
CAN see Hmaster / HQuorumPeer / HRegionServer running on Master
and HQuorumPeer / HRegionServer running on the slave node.
              Here is what's weird:
              I can enter the hbase shell on master node, but on the other
region server I cannot execute any command, a "list" command would cause a
list of exception.

10/01/11 21:16:46 DEBUG client.HConnectionManager$ClientZKWatcher: Got
ZooKeeper event, state: SyncConnected, type: None, path: null
10/01/11 21:16:46 DEBUG zookeeper.ZooKeeperWrapper: Read ZNode /hbase/master
got 127.0.1.1:60000
10/01/11 21:16:46 INFO client.HConnectionManager$TableServers: getMaster
attempt 0 of 5 failed; retrying after sleep of 2000
java.net.ConnectException: Connection refused
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at
sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:574)
        at
org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:404)

            I can create table in the master node's Hbase shell, but there
sometime is some exception like:
 10/01/12 06:08:15 DEBUG client.HConnectionManager$TableServers:
locateRegionInMeta attempt 2 of 5 failed; retrying after sleep of 2000
org.apache.hadoop.hbase.client.NoServerForRegionException: No server address
listed in .META. for region t3,,1263305290760
        at
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegionInMeta(HConnectionManager.java:668)
        at
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:594)
        at
org.apache.hadoop.hbase.client.HConnectionManager$TableServers.locateRegion(HConnectionManager.java:557)

        But after this I can use list to see that the table HAS BEEN BUILT
inside the hdfs.

the Hbase-site.xml I used:
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
<configuration>
    <property>
      <name>hbase.rootdir</name>
      <value>hdfs://sz:8998/hbase</value>
    </property>

    <property>
        <name>hbase.cluster.distributed</name>
        <value>true</value>
    </property>

    <property>
      <name>hbase.master</name>
      <value>sz:60000</value>
    </property>

  <property>
    <name>hbase.tmp.dir</name>
    <value>/home/steven/data/hbase-${user.name}</value>
  </property>

  <property>
    <name>hbase.zookeeper.property.dataDir</name>
    <value>${hbase.tmp.dir}/zookeeper</value>
  </property>

  <!--
  The following three properties are used together to create the list of
  host:peer_port:leader_port quorum servers for ZooKeeper.
  -->
  <property>
    <name>hbase.zookeeper.quorum</name>
    <value>sz,hadoop3</value>
  </property>

 <property>
    <name>hbase.zookeeper.peerport</name>
    <value>2888</value>
  </property>

  <property>
    <name>hbase.zookeeper.leaderport</name>
    <value>3888</value>
  </property>
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------


-- 
       best wishes.
                            steven

Reply via email to