分享

hmaster启动后一会就自己掉了,出现如下错误。regionserver总是无法启动。求高手指教

zxasqw12cchj 发表于 2013-10-16 13:39:24 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 6 9368
2012-02-07 14:57:23,510 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server node1/192.168.1.101:2222
2012-02-07 14:57:23,511 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
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.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
2012-02-07 14:57:25,416 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server node2/192.168.1.102:2222
2012-02-07 14:57:25,419 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnect
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.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1119)
2012-02-07 14:57:25,623 INFO org.apache.zookeeper.ZooKeeper: Session: 0x0 closed
2012-02-07 14:57:25,624 ERROR org.apache.hadoop.hbase.master.HMasterCommandLine: Failed to start master
java.lang.RuntimeException: Failed construction of Master: class org.apache.hadoop.hbase.master.HMaster
        at org.apache.hadoop.hbase.master.HMaster.constructMaster(HMaster.java:1060)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.startMaster(HMasterCommandLine.java:142)
        at org.apache.hadoop.hbase.master.HMasterCommandLine.run(HMasterCommandLine.java:102)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at org.apache.hadoop.hbase.util.ServerCommandLine.doMain(ServerCommandLine.java:76)
        at org.apache.hadoop.hbase.master.HMaster.main(HMaster.java:1074)
Caused by: 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:809)
        at org.apache.zookeeper.ZooKeeper.exists(ZooKeeper.java:837)
        at org.apache.hadoop.hbase.zookeeper.ZKUtil.createAndFailSilent(ZKUtil.java:903)
        at org.apache.hadoop.hbase.zookeeper.ZooKeeperWatcher.[i](ZooKeeperWatcher.java:133)
        at org.apache.hadoop.hbase.master.HMaster.[i](HMaster.java:223)
        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.constructMaster(HMaster.java:1055)
        ... 5 more
2012-02-07 14:57:25,626 INFO org.apache.zookeeper.ClientCnxn: EventThread shut down
              
               
               

已有(6)人评论

跳转到指定楼层
piano7heart 发表于 2013-10-16 13:40:12

            你去看一下你的hbase-site.XML文件里面。
hbase.tmp.dir这配置,你是不是做了更改?
如果做了更改,用回/tmp/hbase-${user.name}这个。
        
回复

使用道具 举报

piano7heart 发表于 2013-10-16 13:41:09

            将hbase-site.XML
hbase.tmp.dir
/tmp/hbase-${user.name}
改成上述。
        
回复

使用道具 举报

ymc169 发表于 2013-10-16 13:41:39

            楼主,你的问题解决了没有
        
回复

使用道具 举报

hello_yun 发表于 2013-10-16 13:42:19

            引用楼主  的回复:2012-02-07 14:57:23,510 INFO org.apache.zookeeper.ClientCnxn: Opening socket connection to server node1/192.168.1.101:2222
2012-02-07 14:57:23,511 WARN org.apache.zookeeper.ClientCnxn: Session 0x0 fo……

这个问题和这个临时目录有关系吗
  如果设置成不更改这个目录会在重启的时候删除
        
回复

使用道具 举报

zqh08 发表于 2013-10-16 13:42:57

            楼主的问题解决了没啊?
        
回复

使用道具 举报

dalianwang74 发表于 2013-10-16 13:43:53

            使用独立的zookeeper解决
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条