单个 ignite 节点与我的应用程序一起运行,但它没有启动,因为 ignite 不断尝试寻找其他节点日志中充满了如下消息:o.a.i.s.d.tcp.TcpDiscoverySpi - TCP discovery accepted incoming connection [rmtAddr=/127.0.0.1, rmtPort=59459]o.a.i.s.d.tcp.TcpDiscoverySpi - TCP discovery spawning a new thread for connection [rmtAddr=/127.0.0.1, rmtPort=59459]o.a.i.s.d.tcp.TcpDiscoverySpi - Started serving remote node connection [rmtAddr=/127.0.0.1:59459, rmtPort=59459]o.a.i.s.d.tcp.TcpDiscoverySpi - Finished serving remote node connection [rmtAddr=/127.0.0.1:59459, rmtPort=59459为 discoverySpi 点燃配置:<property name="discoverySpi"> <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi"> <property name="localPort" value="48550"/> <property name="localPortRange" value="1"/> <property name="ipFinder"> <bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.vm.TcpDiscoveryVmIpFinder"> <property name="addresses"> <list> <value>myNode:48550</value> </list> </property> </bean> </property> </bean></property>配置中是否有任何我遗漏的东西可以解决问题?如果未指定端口范围,为什么 Ignite 甚至会尝试在其他端口上查找节点?
1 回答
慕妹3146593
TA贡献1820条经验 获得超9个赞
一定是网络接口混乱了。尝试指定127.0.0.1:48550
而不是myNode:48550
. 或者您可以将TcpDiscoverySpi#localAddress设置为myNode
.
添加回答
举报
0/150
提交
取消