Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

2 node Hazelcast Cluster EC2

$
0
0

Hi all,

 

at the moment i try to configure a 2 node Cluster with Openfire 3.8.2 and the latest hazelcast Plugin. I've configured that on a Amazons EC2.

(Using Suse 11 SP3  x86)

My problem is that the cluster won't run. I setup several times without success.

Eeach Server recordnigzes hisself as a cluster configuration. But just showing 1 machine on the Web-Gui!(No cluster joined)

I opend this ports for outgoing Conncetions on both machines!

  • 22 (SSH)
  • 3478
  • 3479
  • 5222
  • 5701
  • 7070
  • 7443
  • 7777
  • 9090
  • 9091

DNS resolution works properly for public and private adresses between 2 the nodes.

I'm not sure if it's a problem withe the XML Config or Security Config on EC2.

I've also tried using <hostname> instead of <member>

I've tried several (as shown in hazelcast Docs) configurations but no success.

 

Each time i start the Cluster on Node1 i get this message:

 

Jan 12, 2014 12:55:00 PM com.hazelcast.config.ClasspathXmlConfig

INFO: Configuring Hazelcast from 'hazelcast-cache-config.xml'.

Jan 12, 2014 12:55:00 PM com.hazelcast.impl.AddressPicker

INFO: Resolving domain name 'ip-172-31-xy-abc.region.compute.internal' to address(es): [172.31.xy.abc]

Jan 12, 2014 12:55:00 PM com.hazelcast.impl.AddressPicker

INFO: Resolving domain name 'ip-172-31-zy-def.region.compute.internal' to address(es): [172.31.zy.def]

Jan 12, 2014 12:55:00 PM com.hazelcast.impl.AddressPicker

INFO: 'ec2-54-ab.xyz.region.compute.amazonaws.com' is not an IP address! Removing from interface list.

Jan 12, 2014 12:55:00 PM com.hazelcast.impl.AddressPicker

INFO: Interfaces is enabled, trying to pick one address matching to one of: []

Jan 12, 2014 12:55:00 PM com.hazelcast.impl.AddressPicker

INFO: Prefer IPv4 stack is true.

Jan 12, 2014 12:55:00 PM com.hazelcast.impl.AddressPicker

SCHWERWIEGEND: Hazelcast CANNOT start on this node. No matching network interface found.

Interface matching must be either disabled or updated in the hazelcast.xml config file.

Jan 12, 2014 12:55:00 PM com.hazelcast.impl.AddressPicker

SCHWERWIEGEND: Hazelcast CANNOT start on this node. No matching network interface found.

Interface matching must be either disabled or updated in the hazelcast.xml config file.

java.lang.RuntimeException: Hazelcast CANNOT start on this node. No matching network interface found.

Interface matching must be either disabled or updated in the hazelcast.xml config file.

    at com.hazelcast.impl.AddressPicker.pickAddress(AddressPicker.java:147)

    at com.hazelcast.impl.AddressPicker.pickAddress(AddressPicker.java:51)

    at com.hazelcast.impl.Node.<init>(Node.java:144)

    at com.hazelcast.impl.FactoryImpl.<init>(FactoryImpl.java:386)

    at com.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:133)

    at com.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:125)

    at com.hazelcast.impl.FactoryImpl.newHazelcastInstanceProxy(FactoryImpl.java:104)

    at com.hazelcast.core.Hazelcast.newHazelcastInstance(Hazelcast.java:507)

    at com.jivesoftware.util.cache.ClusteredCacheFactory.startCluster(ClusteredCacheFa ctory.java:130)

    at org.jivesoftware.util.cache.CacheFactory.startClustering(CacheFactory.java:639)

    at org.jivesoftware.openfire.cluster.ClusterManager.startup(ClusterManager.java:28 5)

    at com.jivesoftware.openfire.HazelcastPlugin.run(HazelcastPlugin.java:75)

    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:482)

    at java.util.concurrent.FutureTask.run(FutureTask.java:273)

    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1156)

    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:626)

    at java.lang.Thread.run(Thread.java:804)

 

Server halted

 

 

XML of Node 1.

 

<group>

        <name>openfire</name>

        <password>openfire</password>

    </group>

    <management-center enabled="false" />

    <network>

        <port auto-increment="true">5701</port>

        <join>

            <multicast enabled="false">

                <multicast-group>224.2.2.3</multicast-group>

                <multicast-port>54327</multicast-port>

            </multicast>

            <tcp-ip enabled="true">

            <member>ip-172-31-xy-abc.region.compute.internal:5701</member>(Privat DNS of the machine)

            <member>ip-172-31-zy-def.region.compute.internal:5701</member>(Privat DNS of the other machine)

            </tcp-ip>

            <aws enabled="false" />

        </join>

        <interfaces enabled="true">

        <interface>ip-172-31-xy-abc.region.compute.internal:5701</interface>(Privat DNS of the machine)

        </interfaces>

        <ssl enabled="false" />

 

XML Config on Node 2:

 

<group>

        <name>openfire</name>

        <password>openfire</password>

    </group>

    <management-center enabled="false">

    <network>

        <port auto-increment="true">5701</port>

        <join>

            <multicast enabled="false">

                <multicast-group>224.2.2.3</multicast-group>

                <multicast-port>54327</multicast-port>

            </multicast>

            <tcp-ip enabled="true">

            <member>ip-172-31-xy-abc.region.compute.internal:5701</member>

            <member>ip-172-31-zy-def.region.compute.internal:5701</member>

             </tcp-ip>

            <aws enabled="false"/>

        </join>

        <interfaces enabled="true">

        <interface>ip-172-31-zy-def.region.compute.internal</interface>

        </interfaces>

        <ssl enabled="false" />

 

Thank you for your help.


Viewing all articles
Browse latest Browse all 10742

Trending Articles