一旦我将hazelcast从3.5升级到3.8,缓存就不会发生。而且一旦我恢复到3.5,使用3.8启动项目时,它就可以正常工作了
output.txt
当我恢复到3.5时,日志显示
ricochet robots
settlers of catan
acquire
Hi! How are you?
Can you hear me?
Added new line
this is very valuable
finish
Hazelcast.xml
Jul 02, 2018 10:02:00 AM com.hazelcast.config.XmlConfigLocator
INFO: Loading 'hazelcast.xml' from classpath.
有人,请帮助我。
答案 0 :(得分:0)
@Prajeesh,我使用了您的配置并成功启动了一个成员:
INFO: [192.168.5.73]:5701 [dev] [3.8] [192.168.5.73]:5701 is STARTING
Jul 02, 2018 10:55:03 AM com.hazelcast.instance.Node
WARNING: [192.168.5.73]:5701 [dev] [3.8] No join method is enabled! Starting
standalone.
Jul 02, 2018 10:55:03 AM com.hazelcast.system
INFO: [192.168.5.73]:5701 [dev] [3.8] Cluster version set to 3.8
Jul 02, 2018 10:55:03 AM com.hazelcast.core.LifecycleService
INFO: [192.168.5.73]:5701 [dev] [3.8] [192.168.5.73]:5701 is STARTED
我只删除了log4j
属性。我相信您在classpath中有一个使用文件的log4j配置,因此您看不到日志。我使用3.8和3.10,两者都工作正常。
答案 1 :(得分:0)
我认为您的XML不正确。
你有
xmlns="http://www.hazelcast.com/schema/config "
应该是
xmlns="http://www.hazelcast.com/schema/config"
即。没有尾随空格。
答案 2 :(得分:0)
问题的解决方案是配置中有错字\
我有这个
xmlns="http://www.hazelcast.com/schema/config "
正确的应该是
xmlns="http://www.hazelcast.com/schema/config"