How can I set port for management center

745 views
Skip to first unread message

vien.h...@gmail.com

unread,
May 2, 2012, 2:01:00 AM5/2/12
to haze...@googlegroups.com
I need to start 2 apps with 2 hazelcast configs instances in 1 node.

- Logs of 1st app is:
May 2, 2012 12:54:50 PM com.hazelcast.system
INFO: /192.168.1.19:5701 [patriot-dispatcher-local] Hazelcast Community Edition 2.0.3 (20120418) starting at Address[192.168.1.19:5701]
May 2, 2012 12:54:50 PM com.hazelcast.system
INFO: /192.168.1.19:5701 [patriot-dispatcher-local] Copyright (C) 2008-2012 Hazelcast.com
May 2, 2012 12:54:50 PM com.hazelcast.impl.LifecycleServiceImpl
INFO: /192.168.1.19:5701 [patriot-dispatcher-local] Address[192.168.1.19:5701] is STARTING
May 2, 2012 12:54:53 PM com.hazelcast.impl.MulticastJoiner
INFO: /192.168.1.19:5701 [patriot-dispatcher-local] 
Members [1] {
Member [192.168.1.19:5701] this
}
May 2, 2012 12:54:53 PM com.hazelcast.impl.management.ManagementCenterService
INFO: /192.168.1.19:5701 [patriot-dispatcher-local] Hazelcast Management Center started at port 5801.
May 2, 2012 12:54:53 PM com.hazelcast.impl.management.ManagementCenterService
INFO: /192.168.1.19:5701 [patriot-dispatcher-local] Hazelcast Management Center is listening from http://localhost:8080/mancenter
May 2, 2012 12:54:53 PM com.hazelcast.impl.LifecycleServiceImpl
INFO: /192.168.1.19:5701 [patriot-dispatcher-local] Address[192.168.1.19:5701] is STARTED
May 2, 2012 12:54:53 PM com.hazelcast.impl.PartitionManager
INFO: /192.168.1.19:5701 [patriot-dispatcher-local] Initializing cluster partition table first arrangement...
 
- Logs of 2nd app is:
May 2, 2012 12:55:56 PM com.hazelcast.config.XmlConfigBuilder
INFO: Looking for hazelcast.xml config file in classpath.
May 2, 2012 12:55:56 PM com.hazelcast.config.XmlConfigBuilder
WARNING: Could not find hazelcast.xml in classpath.
Hazelcast will use hazelcast-default.xml config file in jar.
May 2, 2012 12:55:56 PM com.hazelcast.config.XmlConfigBuilder
INFO: Using configuration file /home/vich/Workspace/patriot-server/classes/hazelcast-default.xml in the classpath.
May 2, 2012 12:55:57 PM com.hazelcast.system
INFO: /192.168.1.19:6701 [patriot-local] Hazelcast Community Edition 2.0.3 (20120418) starting at Address[192.168.1.19:6701]
May 2, 2012 12:55:57 PM com.hazelcast.system
INFO: /192.168.1.19:6701 [patriot-local] Copyright (C) 2008-2012 Hazelcast.com
May 2, 2012 12:55:57 PM com.hazelcast.impl.LifecycleServiceImpl
INFO: /192.168.1.19:6701 [patriot-local] Address[192.168.1.19:6701] is STARTING
May 2, 2012 12:55:59 PM com.hazelcast.impl.MulticastJoiner
INFO: /192.168.1.19:6701 [patriot-local] 
Members [1] {
Member [192.168.1.19:6701] this
}
May 2, 2012 12:55:59 PM com.hazelcast.impl.Node
SEVERE: /192.168.1.19:6701 [patriot-local] ManagementCenterService could not be started!
java.net.BindException: Address already in use
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
.......
May 2, 2012 12:55:59 PM com.hazelcast.impl.LifecycleServiceImpl
INFO: /192.168.1.19:6701 [patriot-local] Address[192.168.1.19:6701] is STARTED
May 2, 2012 12:55:59 PM com.hazelcast.impl.PartitionManager
INFO: /192.168.1.19:6701 [patriot-local] Initializing cluster partition table first arrangement...

So how can I set port for ManagementCenterService? I couldn't find any topic about this.

Thanks a lot,
Vien Hong

Mehmet Dogan

unread,
May 2, 2012, 3:26:16 AM5/2/12
to haze...@googlegroups.com
Management Center service uses 'hazelcast.mc.port' property (default 5801). Port of ManagementCenter is defined by;

(actual HazelcastInstance port) – (configuration port) + (hazelcast.mc.port)

So, if port number in configuration is 6701 for second node then ManagementCenter port will be;  6701 – 6701 + 5801. 

@mmdogan




--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hazelcast/-/22gTSyx0qpwJ.
To post to this group, send email to haze...@googlegroups.com.
To unsubscribe from this group, send email to hazelcast+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hazelcast?hl=en.

Vien Hong

unread,
May 2, 2012, 4:49:23 AM5/2/12
to haze...@googlegroups.com
I solved that problem.

Thanks a lot. :)

Best regards,
Vien Hong

Aniket Chavan

unread,
Nov 23, 2022, 8:07:13 AM11/23/22
to Hazelcast
Hi Vien Hong

How did u solved the problem can u pls share u r solution
Reply all
Reply to author
Forward
0 new messages