英文:
Hazelcast incompatible with old version
问题
我正在将Hazelcast库从4.x升级到最新的5.3.x版本。然而,从我的观察中,属性hazelcast.phone.home.enabled
不被允许,但它仍然在文档中有效。如果有人有经验,知道为什么会发生这种情况,请分享一下。谢谢。
英文:
I'm upgrade the Hazelcast library from 4.x to the latest 5.3.x version
However from my observer the property hazelcast.phone.home.enabled
not allow, but it's still
valid in the document
Anyone has experience why does this happened please share
Thank you
答案1
得分: 1
请参考以下内容,这是一个示例,展示了如何使用属性文件 hazelcast.yaml:
hazelcast:
properties:
hazelcast.phone.home.enabled: false
network:
join:
multicast:
enabled: true
rest-api:
enabled: true
然后启动成员。我正在使用 Hazelcast 版本 5.3.0:
HazelcastInstance instance = Hazelcast.newHazelcastInstance();
Config config = instance.getConfig();
String property = config.getProperty("hazelcast.phone.home.enabled");
您将看到它正在使用 yaml 文件中的值。
英文:
Have a hazelcast.yaml as below. This is just an example to show how to use properties
hazelcast:
properties:
hazelcast.phone.home.enabled : false
network:
join:
multicast:
enabled: true
rest-api:
enabled: true
Then start the member. I am using Hazelcast version 5.3.0
HazelcastInstance instance = Hazelcast.newHazelcastInstance();
Config configc = hazelcastInstance1.getConfig();
String property = config.getProperty("hazelcast.phone.home.enabled");
You will see that it is using the value in the yaml file
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论