NRA
NRA

Reputation: 937

hazelcast instance is running but unable to connect to mancenter

I have created created two gradle project. First a libary project (hazellib), wrap hazelcast functionality and provide api to configure and can be used by any project to run hazelcast service.

The Second project (projectA) which consume this library. The projectA has following gradle script to add "hazellib" as dependency.

**buildscript {
      dependencies {
          classpath "com.components:hazellib:0.0.1"
          }
      }
  dependencies {
      compile   "com.components:hazellib:0.0.1"
  }**

With this setting ProjectA run fine but while opening http://localhost:8080/mancenter/ it can not find the instance running locally.

The issue is to solve this problem I have to include compile "com.hazelcast:hazelcast:3.8.2" in dependencies again beside the fact that it has already been referenced and included as dependencies in hazellib project. If I include this compile in dependencies (*not under buildscript) everything works fine and hazelcast serivce running locally can connect to mancenter or mancenter can detect instance running locally.

Can anyone suggest help me to understand what is missing here ? Isn't including depedencies ,compile "com.hazelcast:hazelcast:3.8.2" in hazellib project gradle script is enough for project that are using the lib to run halzelcast locally ? Why should I add same dependecies again in project ProjectA again ?

Here hazelcast log . It clrealy shows that the instance has started and infact it can be access and cache is working fine but mancenter is not able to detect it. As soon as I add compile "com.hazelcast:hazelcast:3.8.2" in gradle mancenter will be able to connect to the instance as well.

Members [1] {Member [127.0.0.1]:5701 - aa25f0ac-da88-432b-87fc-f7247b437c1a this } INFO c.h.i.m.ManagementCenterService - [127.0.0.1]:5701 [hazelcast_cache] [3.7.7] Hazelcast will connect to Hazelcast Management Center on address: http://localhost:8080/mancenter INFO c.h.internal.jmx.ManagementService - [127.0.0.1]:5701 [hazelcast_cache] [3.7.7] Hazelcast JMX agent enabled[hz.hazelcastDefaultInstance.MC.State.Sender] INFO c.h.i.p.impl.PartitionStateManager - [127.0.0.1]:5701 [hazelcast_cache] [3.7.7] Initializing cluster partition table arrangement... INFO com.hazelcast.core.LifecycleService - [127.0.0.1]:5701 [hazelcast_cache] [3.7.7] [127.0.0.1]:5701 is STARTED

Upvotes: 0

Views: 1684

Answers (1)

Neil Stevenson
Neil Stevenson

Reputation: 3150

So the answer based on the comments trail, set hazelcast.version if using Spring Boot to select a Hazelcast IMDG server version compatible with the Management Center version.

Upvotes: 1

Related Questions