HazelCast Programmatic Configuration of Tcp-IP is no adding members in cluster

前端 未结 2 1468
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 04:19

Below is the HazelCast Programmatic Configuration given in Documentation but it is unable to add members in HazelCast Cluster.

    Config cfg = new Config();         


        
2条回答
  •  余生分开走
    2020-12-22 04:40

    Add this line to turn off multicast in favour of TCP,

    join.getMulticastConfig().setEnabled(false);

    Move this line to the end,

    Hazelcast.newHazelcastInstance(cfg);

    You should finish the config before building the instance.

提交回复
热议问题