关于启动Hbase报错Caused by: java.net.ConnectException: 拒

家电修理 2023-07-16 19:17www.caominkang.com电器维修

2019-07-04 14:29:34,210 FATAL [centos103:16000.activeMasterManager] master.HMaster: Unhandled exception. Starting shutdon.
java..ConnectException: Call From centos103/192.168.130.131 to centos103:8020 failed on connection exception: java..ConnectException: 拒绝连接; For more details see:  http://iki.apache./hadoop/ConnectionRefused
  at sun.reflect.NativeConstructorAessorImpl.neInstance0(Native Method)
  at sun.reflect.NativeConstructorAessorImpl.neInstance(NativeConstructorAessorImpl.java:62)
  at sun.reflect.DelegatingConstructorAessorImpl.neInstance(DelegatingConstructorAessorImpl.java:45)
  at java.lang.reflect.Constructor.neInstance(Constructor.java:423)
  at .apache.hadoop..NetUtils.rapWithMessage(NetUtils.java:792)
  at .apache.hadoop..NetUtils.rapException(NetUtils.java:732)
  at .apache.hadoop.ipc.Client.call(Client.java:1479)
  at .apache.hadoop.ipc.Client.call(Client.java:1412)
  at .apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229)
  at .sun.proxy.$Proxy16.setSafeMode(Unknon Source)
  at .apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolTranslatorPB.setSafeMode(ClientNamenodeProtocolTranslatorPB.java:666)
  at sun.reflect.NativeMethodAessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAessorImpl.invoke(NativeMethodAessorImpl.java:62)
  at sun.reflect.DelegatingMethodAessorImpl.invoke(DelegatingMethodAessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at .apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191)
  at .apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102)
  at .sun.proxy.$Proxy17.setSafeMode(Unknon Source)
  at sun.reflect.NativeMethodAessorImpl.invoke0(Native Method)
  at sun.reflect.NativeMethodAessorImpl.invoke(NativeMethodAessorImpl.java:62)
  at sun.reflect.DelegatingMethodAessorImpl.invoke(DelegatingMethodAessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at .apache.hadoop.hbase.fs.HFileSystem$1.invoke(HFileSystem.java:302)
  at .sun.proxy.$Proxy18.setSafeMode(Unknon Source)
  at .apache.hadoop.hdfs.DFSClient.setSafeMode(DFSClient.java:2596)
  at .apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:1223)
  at .apache.hadoop.hdfs.DistributedFileSystem.setSafeMode(DistributedFileSystem.java:1207)
  at .apache.hadoop.hbase.util.FSUtils.isInSafeMode(FSUtils.java:525)
  at .apache.hadoop.hbase.util.FSUtils.aitOnSafeMode(FSUtils.java:971)
  at .apache.hadoop.hbase.master.MasterFileSystem.checkRootDir(MasterFileSystem.java:428)
  at .apache.hadoop.hbase.master.MasterFileSystem.createInitialFileSystemLayout(MasterFileSystem.java:152)
  at .apache.hadoop.hbase.master.MasterFileSystem.(MasterFileSystem.java:127)
  at .apache.hadoop.hbase.master.HMaster.finishActiveMasterInitialization(HMaster.java:714)
  at .apache.hadoop.hbase.master.HMaster.aess$600(HMaster.java:198)
  at .apache.hadoop.hbase.master.HMaster$2.run(HMaster.java:1868)
  at java.lang.Thread.run(Thread.java:748)
Caused by: java..ConnectException: 拒绝连接
  at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
  at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
  at .apache.hadoop..SocketIOWithTimeout.connect(SocketIOWithTimeout.java:206)
  at .apache.hadoop..NetUtils.connect(NetUtils.java:531)
  at .apache.hadoop..NetUtils.connect(NetUtils.java:495)
  at .apache.hadoop.ipc.Client$Connection.setupConnection(Client.java:614)
  at .apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:712)
  at .apache.hadoop.ipc.Client$Connection.aess$2900(Client.java:375)
  at .apache.hadoop.ipc.Client.getConnection(Client.java:1528)
  at .apache.hadoop.ipc.Client.call(Client.java:1451)
  ... 29 more

查看Hadoop的配置文件core-site.xml,端口为9000


  fs.defaultFS
  hdfs://Hadoop01:9000

再查看hbase-site.xml,端口为8020


 hbase.rootdir
 hdfs://hadoop01:8020/hbase
 xxxx

只需把8020改成9000就ok,然后把hbase-site.xml分发到其他节点,HMaster启动成功

Copyright © 2016-2025 www.caominkang.com 曹敏电脑维修网 版权所有 Power by