Hazelcast踩坑之旅

2020-04-07 23:28:24 [MC-Client-dev.internal-1] WARN c.h.c.i.c.ClientConnectionManager - MC-Client-dev [dev] [4.0.1-SNAPSHOT] Exception during initial connection to [localhost]:5701: com.hazelcast.core.HazelcastException: java.util.concurrent.TimeoutException 2020-04-07 23:28:24 [MC-Client-dev.internal-1] INFO c.h.c.i.c.ClientConnectionManager - MC-Client-dev [dev] [4.0.1-SNAPSHOT] Trying to connect to [localhost]:5703 2020-04-07 23:28:26 [MC-Client-dev.internal-1] WARN c.h.c.i.c.ClientConnectionManager - MC-Client-dev [dev] [4.0.1-SNAPSHOT] Exception during initial connection to [localhost]:5703: com.hazelcast.core.HazelcastException: java.net.SocketException: Connection refused: no further information to address localhost/127.0.0.1:5703 2020-04-07 23:28:26 [MC-Client-dev.internal-1] INFO c.h.c.i.c.ClientConnectionManager - MC-Client-dev [dev] [4.0.1-SNAPSHOT] Trying to connect to [localhost]:5702 2020-04-07 23:28:42 [hz.MC-Client-dev.IO.thread-in-0] WARN c.h.c.i.c.nio.ClientConnection - MC-Client-dev [dev] [4.0.1-SNAPSHOT] ClientConnection{alive=false, connectionId=2, channel=NioChannel{/127.0.0.1:50935->localhost/127.0.0.1:5702}, remoteEndpoint=null, lastReadTime=2020-04-07 23:28:42.461, lastWriteTime=2020-04-07 23:28:26.762, closedTime=2020-04-07 23:28:42.462, connected server version=null} closed. Reason: Exception in ClientConnection{alive=true, connectionId=2, channel=NioChannel{/127.0.0.1:50935->localhost/127.0.0.1:5702}, remoteEndpoint=null, lastReadTime=2020-04-07 23:28:42.461, lastWriteTime=2020-04-07 23:28:26.762, closedTime=never, connected server version=null}, thread=hz.MC-Client-dev.IO.thread-in-0 java.io.IOException: 远程主机强迫关闭了一个现有的连接。 at sun.nio.ch.SocketDispatcher.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(Unknown Source) at sun.nio.ch.IOUtil.readIntoNativeBuffer(Unknown Source) at sun.nio.ch.IOUtil.read(Unknown Source) at sun.nio.ch.SocketChannelImpl.read(Unknown Source) at com.hazelcast.internal.networking.nio.NioInboundPipeline.process(NioInboundPipeline.java:119) at com.hazelcast.internal.networking.nio.NioThread.processSelectionKey(NioThread.java:382) at com.hazelcast.internal.networking.nio.NioThread.processSelectionKeys(NioThread.java:367) at com.hazelcast.internal.networking.nio.NioThread.selectLoop(NioThread.java:293) at com.hazelcast.internal.networking.nio.NioThread.run(NioThread.java:248) 2020-04-07 23:28:42 [MC-Client-dev.internal-1] WARN c.h.c.i.c.ClientConnectionManager - MC-Client-dev [dev] [4.0.1-SNAPSHOT] Exception during initial connection to [localhost]:5702: com.hazelcast.spi.exception.TargetDisconnectedException: Exception in ClientConnection{alive=true, connectionId=2, channel=NioChannel{/127.0.0.1:50935->localhost/127.0.0.1:5702}, remoteEndpoint=null, lastReadTime=2020-04-07 23:28:42.461, lastWriteTime=2020-04-07 23:28:26.762, closedTime=never, connected server version=null}, thread=hz.MC-Client-dev.IO.thread-in-0 2020-04-07 23:28:42 [MC-Client-dev.internal-1] WARN c.h.c.i.c.ClientConnectionManager - MC-Client-dev [dev] [4.0.1-SNAPSHOT] Unable to get live cluster connection, retry in 1000 ms, attempt: 1 , cluster connect timeout: 9223372036854775807 seconds , max backoff millis: 32000 2020-04-07 23:28:43 [MC-Client-dev.internal-1] INFO c.h.c.i.c.ClientConnectionManager - MC-Client-dev [dev] [4.0.1-SNAPSHOT] Trying to connect to [localhost]:5701 2020-04-07 23:29:25 [hz.MC-Client-dev.IO.thread-in-0] WARN c.h.c.i.c.nio.ClientConnection - MC-Client-dev [dev] [4.0.1-SNAPSHOT] ClientConnection{alive=false, connectionId=3, channel=NioChannel{/127.0.0.1:50996->localhost/127.0.0.1:5701}, remoteEndpoint=null, lastReadTime=2020-04-07 23:29:25.915, lastWriteTime=2020-04-07 23:28:43.550, closedTime=2020-04-07 23:29:25.915, connected server version=null} closed. Reason: Exception in ClientConnection{alive=true, connectionId=3, channel=NioChannel{/127.0.0.1:50996->localhost/127.0.0.1:5701}, remoteEndpoint=null, lastReadTime=2020-04-07 23:29:25.915, lastWriteTime=2020-04-07 23:28:43.550, closedTime=never, connected server version=null}, thread=hz.MC-Client-dev.IO.thread-in-0
启动springboot服务后,连接hazelcast管理中心响应403,是因为工程里面的hazelcast依赖版本与管理中心的版本不匹配导致的。目前我使用3.8.3版本搭建项目已成功。
在这里插入图片描述在这里插入图片描述

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

qq_37670007

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值