Did you start hbase? Whats in the hbase master log? Did it come up?
St.Ack On Wed, Jul 21, 2010 at 5:14 AM, 罗磊 <[email protected]> wrote: > This is my hbase-site.xml > > <configuration> > > <property> > <name>hbase.rootdir</name> > <value>hdfs://58.155.50.240:8020/hbase</value> > <description>The directory shared by region servers. > </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> > > <property> > <name>hbase.zookeeper.property.clientPort</name> > <value>2222</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>58.155.50.240,58.155.50.228,58.155.50.224</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 > 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. > </description> > </property> > > <property> > <name>hbase.zookeeper.property.dataDir</name> > <value>/home/morre/hbase/zookeeper</value> > <description>Property from ZooKeeper's config zoo.cfg. > The directory where the snapshot is stored. > </description> > </property> > > <property> > <name>hbase.master</name> > <value>58.155.50.240:60000</value> > <description>The host and port that the HBase master runs at. > </description> > </property> > > > </configuration> > > On Wed, Jul 21, 2010 at 7:41 PM, 罗磊 <[email protected]> wrote: > >> I installed HBase on 3 machines, and I ran 'status' on hbase shell , it >> said 0 server >> >> So I check the log on regionserver, it reported it can't connect to the >> master as blow: >> >> >> 010-07-21 19:22:59,074 WARN >> org.apache.hadoop.hbase.regionserver.HRegionServer: Unable to connect to >> master. Retrying. Error was: >> 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) >> at >> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:308) >> at >> org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:843) >> at >> org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:715) >> at >> org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:333) >> at $Proxy0.getProtocolVersion(Unknown Source) >> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:489) >> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:465) >> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:512) >> at >> org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:423) >> at >> org.apache.hadoop.hbase.regionserver.HRegionServer.getMaster(HRegionServer.java:1299) >> at >> org.apache.hadoop.hbase.regionserver.HRegionServer.reportForDuty(HRegionServer.java:1317) >> at >> org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:434) >> at java.lang.Thread.run(Thread.java:619) >> 2010-07-21 19:24:00,129 WARN >> org.apache.hadoop.hbase.regionserver.HRegionServer: Unable to connect to >> master. Retrying. Error was: >> 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) >> at >> org.apache.hadoop.hbase.ipc.HBaseClient$Connection.setupIOstreams(HBaseClient.java:308) >> at >> org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:843) >> at >> org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:715) >> at >> org.apache.hadoop.hbase.ipc.HBaseRPC$Invoker.invoke(HBaseRPC.java:333) >> at $Proxy0.getProtocolVersion(Unknown Source) >> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:489) >> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:465) >> at org.apache.hadoop.hbase.ipc.HBaseRPC.getProxy(HBaseRPC.java:512) >> at >> org.apache.hadoop.hbase.ipc.HBaseRPC.waitForProxy(HBaseRPC.java:423) >> at >> org.apache.hadoop.hbase.regionserver.HRegionServer.getMaster(HRegionServer.java:1299) >> at >> org.apache.hadoop.hbase.regionserver.HRegionServer.reportForDuty(HRegionServer.java:1317) >> at >> org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:434) >> at java.lang.Thread.run(Thread.java:619) >> >> >> These 3 machine can visit each other by ssh. >> >> Thanks a lot >> >
