分享

求助:启动hbase的时候报错。master连接不到hadoop

jlon 发表于 2015-9-18 15:26:56 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 3 32714
2015-09-18 15:23:49,633 INFO  [main] master.HMaster: hbase.rootdir=hdfs://yilinjiayuan:9100/hbase, hbase.cluster.distributed=true
2015-09-18 15:23:49,706 INFO  [main] master.HMaster: Adding backup master ZNode /hbase/backup-masters/yilinjiayuan,16000,1442561026327
2015-09-18 15:23:49,924 INFO  [yilinjiayuan:16000.activeMasterManager] master.ActiveMasterManager: Deleting ZNode for /hbase/backup-masters/yilinjiayuan,16000,1442561026327 from backup master directory
2015-09-18 15:23:49,933 INFO  [yilinjiayuan:16000.activeMasterManager] master.ActiveMasterManager: Registered Active Master=yilinjiayuan,16000,1442561026327
2015-09-18 15:23:50,253 FATAL [yilinjiayuan:16000.activeMasterManager] master.HMaster: Failed to become active master
java.net.ConnectException: Call From yilinjiayuan/192.168.0.26 to yilinjiayuan:9100 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)
        at org.apache.hadoop.ipc.Client.call(Client.java:1415)
        at org.apache.hadoop.ipc.Client.call(Client.java:1364)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
        at com.sun.proxy.$Proxy15.setSafeMode(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
        at com.sun.proxy.$Proxy15.setSafeMode(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.setSafeMode(ClientNamenodeProtocolTranslatorPB.java:602)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.hbase.fs.HFileSystem$1.invoke(HFileSystem.java:279)
        at com.sun.proxy.$Proxy16.setSafeMode(Unknown Source)
        at org.apache.hadoop.hdfs.DFSClient.setSafeMode(DFSClient.java:2264)
        at org.apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:986)
        at org.apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:970)
        at org.apache.hadoop.hbase.util.FSUtils.isInSafeMode(FSUtils.java:525)
        at org.apache.hadoop.hbase.util.FSUtils.waitOnSafeMode(FSUtils.java:972)
        at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:417)
        at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:146)
        at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:126)
        at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:649)
        at org.apache.hadoop.hbase.master.HMaster.access$500(HMaster.java:182)
        at org.apache.hadoop.hbase.master.HMaster$1.run(HMaster.java:1646)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: 拒绝连接
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)
        at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:606)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:700)
        at org.apache.hadoop.ipc.Client$Connection.access$2800(Client.java:367)
        at org.apache.hadoop.ipc.Client.getConnection(Client.java:1463)
        at org.apache.hadoop.ipc.Client.call(Client.java:1382)
        ... 29 more
2015-09-18 15:23:50,274 FATAL [yilinjiayuan:16000.activeMasterManager] master.HMaster: Unhandled exception. Starting shutdown.
java.net.ConnectException: Call From yilinjiayuan/192.168.0.26 to yilinjiayuan:9100 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see:  http://wiki.apache.org/hadoop/ConnectionRefused
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:783)
        at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:730)
        at org.apache.hadoop.ipc.Client.call(Client.java:1415)
        at org.apache.hadoop.ipc.Client.call(Client.java:1364)
        at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:206)
        at com.sun.proxy.$Proxy15.setSafeMode(Unknown Source)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:187)
        at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
        at com.sun.proxy.$Proxy15.setSafeMode(Unknown Source)
        at org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.setSafeMode(ClientNamenodeProtocolTranslatorPB.java:602)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.hbase.fs.HFileSystem$1.invoke(HFileSystem.java:279)
        at com.sun.proxy.$Proxy16.setSafeMode(Unknown Source)
        at org.apache.hadoop.hdfs.DFSClient.setSafeMode(DFSClient.java:2264)
        at org.apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:986)
        at org.apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:970)
        at org.apache.hadoop.hbase.util.FSUtils.isInSafeMode(FSUtils.java:525)
        at org.apache.hadoop.hbase.util.FSUtils.waitOnSafeMode(FSUtils.java:972)
        at org.apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:417)
        at org.apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:146)
        at org.apache.hadoop.hbase.master.MasterFileSystem.<init>(MasterFileSystem.java:126)
        at org.apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:649)
        at org.apache.hadoop.hbase.master.HMaster.access$500(HMaster.java:182)
        at org.apache.hadoop.hbase.master.HMaster$1.run(HMaster.java:1646)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.ConnectException: 拒绝连接
        at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
        at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:739)
        at org.apache.hadoop.net.SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:529)
        at org.apache.hadoop.net.NetUtils.connect(NetUtils.java:493)
        at org.apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:606)
        at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:700)
        at org.apache.hadoop.ipc.Client$Connection.access$2800(Client.java:367)
        at org.apache.hadoop.ipc.Client.getConnection(Client.java:1463)
        at org.apache.hadoop.ipc.Client.call(Client.java:1382)
        ... 29 more
2015-09-18 15:23:50,283 INFO  [yilinjiayuan:16000.activeMasterManager] regionserver.HRegionServer: STOPPED: Unhandled exception. Starting shutdown.
2015-09-18 15:23:50,275 INFO  [master/yilinjiayuan/192.168.0.26:16000] zookeeper.RecoverableZooKeeper: Process identifier=hconnection-0x45ab639c connecting to ZooKeeper ensemble=192.168.0.26:2181
2015-09-18 15:23:50,286 INFO  [master/yilinjiayuan/192.168.0.26:16000] zookeeper.ZooKeeper: Initiating client connection, connectString=192.168.0.26:2181 sessionTimeout=90000 watcher=hconnection-0x45ab639c0x0, quorum=192.168.0.26:2181, baseZNode=/hbase
2015-09-18 15:23:50,293 INFO  [master/yilinjiayuan/192.168.0.26:16000-SendThread(192.168.0.26:2181)] zookeeper.ClientCnxn: Opening socket connection to server 192.168.0.26/192.168.0.26:2181. Will not attempt to authenticate using SASL (unknown error)
2015-09-18 15:23:50,301 INFO  [master/yilinjiayuan/192.168.0.26:16000-SendThread(192.168.0.26:2181)] zookeeper.ClientCnxn: Socket connection established to 192.168.0.26/192.168.0.26:2181, initiating session
2015-09-18 15:23:50,308 INFO  [master/yilinjiayuan/192.168.0.26:16000-SendThread(192.168.0.26:2181)] zookeeper.ClientCnxn: Session establishment complete on server 192.168.0.26/192.168.0.26:2181, sessionid = 0x14f43a965a800d9, negotiated timeout = 40000
2015-09-18 15:23:53,449 INFO  [master/yilinjiayuan/192.168.0.26:16000] ipc.RpcServer: Stopping server on 16000
2015-09-18 15:23:53,450 INFO  [RpcServer.listener,port=16000] ipc.RpcServer: RpcServer.listener,port=16000: stopping
2015-09-18 15:23:53,452 INFO  [RpcServer.responder] ipc.RpcServer: RpcServer.responder: stopped
2015-09-18 15:23:53,452 INFO  [RpcServer.responder] ipc.RpcServer: RpcServer.responder: stopping
2015-09-18 15:23:53,462 INFO  [master/yilinjiayuan/192.168.0.26:16000] regionserver.HRegionServer: Stopping infoServer
2015-09-18 15:23:53,471 INFO  [master/yilinjiayuan/192.168.0.26:16000] mortbay.log: Stopped SelectChannelConnector@0.0.0.0:16010
2015-09-18 15:23:53,572 INFO  [master/yilinjiayuan/192.168.0.26:16000] regionserver.HRegionServer: stopping server yilinjiayuan,16000,1442561026327
2015-09-18 15:23:53,572 INFO  [master/yilinjiayuan/192.168.0.26:16000] client.ConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x14f43a965a800d9
2015-09-18 15:23:53,579 INFO  [master/yilinjiayuan/192.168.0.26:16000] zookeeper.ZooKeeper: Session: 0x14f43a965a800d9 closed
2015-09-18 15:23:53,579 INFO  [master/yilinjiayuan/192.168.0.26:16000-EventThread] zookeeper.ClientCnxn: EventThread shut down
2015-09-18 15:23:53,583 INFO  [master/yilinjiayuan/192.168.0.26:16000] regionserver.HRegionServer: stopping server yilinjiayuan,16000,1442561026327; all regions closed.
2015-09-18 15:23:53,583 INFO  [master/yilinjiayuan/192.168.0.26:16000] hbase.ChoreService: Chore service for: yilinjiayuan,16000,1442561026327 had [] on shutdown
2015-09-18 15:23:53,589 INFO  [master/yilinjiayuan/192.168.0.26:16000] ipc.RpcServer: Stopping server on 16000
2015-09-18 15:23:53,595 INFO  [master/yilinjiayuan/192.168.0.26:16000] zookeeper.RecoverableZooKeeper: Node /hbase/rs/yilinjiayuan,16000,1442561026327 already deleted, retry=false
2015-09-18 15:23:53,601 INFO  [main-EventThread] zookeeper.ClientCnxn: EventThread shut down
2015-09-18 15:23:53,602 INFO  [master/yilinjiayuan/192.168.0.26:16000] zookeeper.ZooKeeper: Session: 0x14f43a965a800d7 closed
2015-09-18 15:23:53,602 INFO  [master/yilinjiayuan/192.168.0.26:16000] regionserver.HRegionServer: stopping server yilinjiayuan,16000,1442561026327; zookeeper connection closed.
2015-09-18 15:23:53,602 INFO  [master/yilinjiayuan/192.168.0.26:16000] regionserver.HRegionServer: master/yilinjiayuan/192.168.0.26:16000 exiting

已有(3)人评论

跳转到指定楼层
tntzbzc 发表于 2015-9-18 16:18:27
先确定hdfs没有问题
hdfs://yilinjiayuan:9100
回复

使用道具 举报

tntzbzc 发表于 2015-9-18 16:36:04
一般是9000或则8020,楼主配置的是9100???
回复

使用道具 举报

jlon 发表于 2015-9-18 16:49:07
恩,hdfs://yilinjiayuan:9100 确实是没有问题。我把hdfs上存储路径hdfs://yilinjiayuan:9100/hbase都删了。就能连接上了!不知道咋么回事?
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条