Hazelcast:节点IP自动添加到黑名单

时间:2018-10-02 10:03:29

标签: hazelcast apache-karaf

当通过Apache Karaf Cellar间接使用Hazelcast时,我们遇到了一个问题。有时,我们启动的两个节点将能够构建集群,而有时则不能。然后,我们发现了一条日志消息,指出第二个节点的IP地址已自动添加到Hazelcast黑名单中。过了一会儿,它似乎已被除名,因为一段时间后建立了连接,我们除了使用命令cluster:node-list打印节点列表外,什么也没做。

我们非常感谢您提供有关此问题的帮助。谢谢:)

Hazelcast版本:3.8.9(由于所有较新的版本无法解决OSGi的所有依赖性) Apache Karaf Cellar版本:4.1.1 集群大小:2个节点 客户数量:2 Java版本:1.8 操作系统:macOs High Sierra 10.13.5和10.13.6

日志:

09:38:37.027 WARN [pool-10-thread-1] Name of the hazelcast schema location incorrect using default
09:38:37.244 INFO [pool-10-thread-1] [LOCAL] [cellar] [3.8.5] Interfaces is disabled, trying to pick one address from TCP-IP config addresses: [172.16.45.22]
09:38:37.244 INFO [pool-10-thread-1] [LOCAL] [cellar] [3.8.5] Prefer IPv4 stack is true.
09:38:37.245 WARN [pool-10-thread-1] [LOCAL] [cellar] [3.8.5] Could not find a matching address to start with! Picking one of non-loopback addresses.
09:38:37.249 INFO [pool-10-thread-1] [LOCAL] [cellar] [3.8.5] Picked [172.16.34.155]:5701, using socket ServerSocket[addr=/0:0:0:0:0:0:0:0,localport=5701], bind any local is true
09:38:37.257 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Hazelcast 3.8.5 (20170906 - e424927) starting at [172.16.34.155]:5701
09:38:37.257 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved.
09:38:37.257 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Configured Hazelcast Serialization version : 1
09:38:37.390 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Backpressure is disabled
09:38:37.722 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Creating TcpIpJoiner
09:38:37.848 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Starting 8 partition threads
09:38:37.849 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Starting 5 generic threads (1 dedicated for priority tasks)
09:38:37.855 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] [172.16.34.155]:5701 is STARTING
09:38:37.881 INFO [hz.cellar.cached.thread-3] [172.16.34.155]:5701 [cellar] [3.8.5] Connecting to /172.16.45.22:5703, timeout: 0, bind-any: true
09:38:37.881 INFO [hz.cellar.cached.thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Connecting to /172.16.45.22:5701, timeout: 0, bind-any: true
09:38:37.881 INFO [hz.cellar.cached.thread-2] [172.16.34.155]:5701 [cellar] [3.8.5] Connecting to /172.16.45.22:5702, timeout: 0, bind-any: true
09:38:37.904 INFO [hz.cellar.cached.thread-3] [172.16.34.155]:5701 [cellar] [3.8.5] Could not connect to: /172.16.45.22:5703. Reason: SocketException[Connection refused to address /172.16.45.22:5703]
09:38:37.904 INFO [hz.cellar.cached.thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Could not connect to: /172.16.45.22:5701. Reason: SocketException[Connection refused to address /172.16.45.22:5701]
09:38:37.905 INFO [hz.cellar.cached.thread-3] [172.16.34.155]:5701 [cellar] [3.8.5] [172.16.45.22]:5703 is added to the blacklist.
09:38:37.905 INFO [hz.cellar.cached.thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] [172.16.45.22]:5701 is added to the blacklist.
09:38:37.905 INFO [hz.cellar.cached.thread-2] [172.16.34.155]:5701 [cellar] [3.8.5] Could not connect to: /172.16.45.22:5702. Reason: SocketException[Connection refused to address /172.16.45.22:5702]
09:38:37.905 INFO [hz.cellar.cached.thread-2] [172.16.34.155]:5701 [cellar] [3.8.5] [172.16.45.22]:5702 is added to the blacklist.
09:38:38.882 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Cluster version set to 3.8
09:38:38.883 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5]
Members [1] {
   Member [172.16.34.155]:5701 - b4ed8157-ffea-4d1f-88ad-76afbfbbff11 this
}
09:38:38.903 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] [172.16.34.155]:5701 is STARTED
09:38:38.952 INFO [pool-10-thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] Initializing cluster partition table arrangement...
09:38:39.037 INFO [pool-10-thread-1] Registering commands for bundle org.apache.karaf.cellar.kar/4.1.1
09:38:39.038 INFO [pool-10-thread-1] Registering commands for bundle org.apache.karaf.cellar.config/4.1.1
09:38:39.039 INFO [pool-10-thread-1] Registering commands for bundle org.apache.karaf.cellar.bundle/4.1.1
09:38:39.042 INFO [pool-10-thread-1] Registering commands for bundle org.apache.karaf.cellar.features/4.1.1
09:38:39.047 INFO [pool-10-thread-1] Registering commands for bundle org.apache.karaf.cellar.core/4.1.1
09:38:39.063 INFO [pool-10-thread-1] Registering commands for bundle org.apache.karaf.cellar.shell/4.1.1
09:43:49.196 INFO [hz.cellar.cached.thread-2] [172.16.34.155]:5701 [cellar] [3.8.5] Established socket connection between /172.16.34.155:62099 and /172.16.45.22:5701
09:43:49.253 INFO [hz.cellar.cached.thread-1] [172.16.34.155]:5701 [cellar] [3.8.5] [172.16.45.22]:5701 should merge to us , both have the same data member count: 1
09:45:42.094 INFO [hz.cellar.IO.thread-in-0] [172.16.34.155]:5701 [cellar] [3.8.5] Connection[id=1, /172.16.34.155:62099->/172.16.45.22:5701, endpoint=[172.16.45.22]:5701, alive=false, type=MEMBER] closed. Reason: Connection closed by the other side
09:45:49.155 INFO [hz.cellar.cached.thread-7] [172.16.34.155]:5701 [cellar] [3.8.5] Established socket connection between /172.16.34.155:62134 and /172.16.45.22:5701
09:45:55.176 INFO [hz.cellar.priority-generic-operation.thread-0] [172.16.34.155]:5701 [cellar] [3.8.5]

0 个答案:

没有答案