exactly like this . it 's some problem with zookeeper, i am not sure what
happen to zookeeper,
it  is all started .but port 60030 and 60010 not ok.
---------------------------------------------------------------------------
futur...@test1:~/hbase$ bin/start-hbase.sh
test1: zookeeper running as process 18596. Stop it first.
master running as process 20047. Stop it first.
s1.idfs.cn: regionserver running as process 18829. Stop it first.
s2.idfs.cn: regionserver running as process 18763. Stop it first.
------------------------------------------------------------------------------------------

and logs in hbase give me the following, and i dont know how to deal with
it.if zookeeper is dead or goes with some problems,
how do i do> stop-hbase.sh & start-hbase.sh don't work at all

------------------------------------------------------------------------------------------------------------
2010-06-24 11:33:29,713 WARN
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper: Failed to create /hbase
-- check quorum servers, currently=test1:2222
org.apache.zookeeper.KeeperException$ConnectionLossException:
KeeperErrorCode = ConnectionLoss for /hbase
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:90)
    at org.apache.zookeeper.KeeperException.create(KeeperException.java:42)
    at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:780)
    at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:808)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureExists(ZooKeeperWrapper.java:405)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.ensureParentExists(ZooKeeperWrapper.java:432)
    at
org.apache.hadoop.hbase.zookeeper.ZooKeeperWrapper.writeMasterAddress(ZooKeeperWrapper.java:520)
    at
org.apache.hadoop.hbase.master.HMaster.writeAddressToZooKeeper(HMaster.java:260)
    at org.apache.hadoop.hbase.master.HMaster.<init>(HMaster.java:242)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at org.apache.hadoop.hbase.master.HMaster.doMain(HMaster.java:1230)
    at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1271)
2010-06-24 11:33:31,202 INFO org.apache.zookeeper.ClientCnxn: Attempting
connection to server test1/192.168.1.122:2222
2010-06-24 11:33:31,203 INFO org.apache.zookeeper.ClientCnxn: Priming
connection to java.nio.channels.SocketChannel[connected local=/
192.168.1.122:52706 remote=test1/192.168.1.122:2222]
2010-06-24 11:33:31,203 INFO org.apache.zookeeper.ClientCnxn: Server
connection successful
2010-06-24 11:33:31,204 WARN org.apache.zookeeper.ClientCnxn: Exception
closing session 0x0 to sun.nio.ch.selectionkeyi...@163f7a1
java.io.IOException: Read error rc = -1 java.nio.DirectByteBuffer[pos=0
lim=4 cap=4]
    at org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:701)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:945)
2010-06-24 11:33:31,204 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown input
java.net.SocketException: Transport endpoint is not connected
    at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
    at
sun.nio.ch.SocketChannelImpl.shutdownInput(SocketChannelImpl.java:640)
    at sun.nio.ch.SocketAdaptor.shutdownInput(SocketAdaptor.java:360)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:999)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)
2010-06-24 11:33:31,204 WARN org.apache.zookeeper.ClientCnxn: Ignoring
exception during shutdown output
java.net.SocketException: Transport endpoint is not connected
    at sun.nio.ch.SocketChannelImpl.shutdown(Native Method)
    at
sun.nio.ch.SocketChannelImpl.shutdownOutput(SocketChannelImpl.java:651)
    at sun.nio.ch.SocketAdaptor.shutdownOutput(SocketAdaptor.java:368)
    at
org.apache.zookeeper.ClientCnxn$SendThread.cleanup(ClientCnxn.java:1004)
    at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:970)

------------------------------------------------------------------------------------------------------------------------------------------------------------------------



2010/6/22 Jean-Daniel Cryans <[email protected]>

> I'm not sure I understand what you describe, and since you didn't post
> any output from your logs then it's really hard to help you debug.
>
> What's the problem exactly and do you see any exception in the logs?
>
> J-D
>
> On Mon, Jun 21, 2010 at 2:48 AM, 梁景明 <[email protected]> wrote:
> > after reading "Description of how HBase uses ZooKeeper"i see my problem
> > maybe that the regionserver session in zk is lost!
> >
> > and i use bin/start-hbase.sh cant start hbase successfully .
> >
> > because they connect to zookeeper something lost?
> >
> > to start it.one way i think zookeeper start alone ,and i delete "/hbase"
> in
> > it , and run the start-hbase.sh shell again?
> >
> > will it be ok?
> >
> > 2010/6/19 Jean-Daniel Cryans <[email protected]>
> >
> >> > do u mean if ZooKeeper is dead,the data will lose?
> >>
> >> If your Zookeeper ensemble is dead, then HBase will be unavailable but
> >> you won't lose any data. And even if your zookeeper data is wiped out,
> >> like I said it's only runtime data so it doesn't matter.
> >>
> >> >
> >> > in that case,ZooKeeper lost .META or .ROOT ,the data in hadoop will
> never
> >> be
> >> > recover , thought there were some table folders in hadoop.
> >>
> >> HBase stores the location of -ROOT- in Zookeeper, and that's changed
> >> everytime the region moves. Losing that won't make -ROOT- disappear
> >> forever, it's still in HDFS.
> >>
> >> Does it answer the question? (I'm not sure I fully understand you)
> >>
> >> J-D
> >>
> >
>

Reply via email to