hbase_异常_05_End of File Exception between local host is: "rayner/127.0.1.1"; destination host is: "localhost":9000;

 

一、异常信息

java.io.EOFException: End of File Exception between local host is: "ubuntu/127.0.1.1"; destination host is: "localhost":9000; : java.io.EOFException; For more details see:  http://wiki.apache.org/hadoop/EOFException  
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)  
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)  
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)  
    at java.lang.reflect.Constructor.newInstance(Constructor.java:422)  
    at org.apache.hadoop.net.NetUtils.wrapWithMessage(NetUtils.java:792)  
    at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:765)  
    at org.apache.hadoop.ipc.Client.call(Client.java:1480)  
    at org.apache.hadoop.ipc.Client.call(Client.java:1407)  
    at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)  
    at com.sun.proxy.$Proxy14.sendHeartbeat(Unknown Source)  
    at org.apache.hadoop.hdfs.protocolPB.DatanodeProtocolClientSideTranslatorPB.sendHeartbeat(DatanodeProtocolClientSideTranslatorPB.java:153)  
    at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.sendHeartBeat(BPServiceActor.java:553)  
    at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.offerService(BPServiceActor.java:653)  
    at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:823)  
    at java.lang.Thread.run(Thread.java:745)  
Caused by: java.io.EOFException  
    at java.io.DataInputStream.readInt(DataInputStream.java:392)  
    at org.apache.hadoop.ipc.Client$Connection.receiveRpcResponse(Client.java:1079)  
    at org.apache.hadoop.ipc.Client$Connection.run(Client.java:974)  

 

二、异常原因

 

 

三、异常解决

查日志发现有如下错误:

ERROR master.HMasterCommandLine: Master not running

后来想到:每次出现这种情况的时候,都是先停止了hadoop,然后再停止Hbase,因为hbase是依赖于hadoop的,会不会是这个原因?

 

于是重复启动和停止了几次hadoop和hbase之后,发现只有先停止hadoop再停止hbase才能正常关闭。

最后过了一段时间,又重新按照正确的流程尝试了一下,貌似又可以正常了

 

 

四、参考资料

1.安装hbase后,启动服务正常,但停止服务时出现很诡异的现象

 

上一篇:阿里开发者招聘节 | 阿里云数据库团队诚招技术人才啦!


下一篇:vue3中如何使用echarts5,超详细!!!