7 Replies Latest reply on Jul 14, 2010 3:42 AM by Galder Zamarreño

    Deploying an infinispan node on a linux machine

    infini8 infini8 Newbie

      Hi,

      I tried deploying an infinispan node on a linux machine. Following was the code and configuration:

       

      Code:

       

       

       

      CacheManager cacheManager = new DefaultCacheManager("gui-demo-cache-config.xml");
      Cache cache = cacheManager.getCache();
      cache.put("key1", 0.1F);

       

      Configuration:

       

       

      <infinispan

            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

            xsi:schemaLocation="urn:infinispan:config:4.0 http://www.infinispan.org/schemas/infinispan-config-4.0.xsd"

            xmlns="urn:infinispan:config:4.0">

         <global>

            <transport transportClass="org.infinispan.remoting.transport.jgroups.JGroupsTransport" clusterName="demoCluster">    

            </transport>

         </global>

         <default name="defaultCache">

            <clustering mode="distribution">

               <l1 enabled="false" lifespan="600000"/>

               <hash numOwners="2" rehashRpcTimeout="120000"/>

               <sync/>

            </clustering>

         </default>

      </infinispan>

       

      After deploying, I get the following console o/p:

      Jun 29, 2010 5:49:05 PM org.infinispan.remoting.transport.jgroups.JGroupsTranspo
      rt start

      ....

      Jun 29, 2010 5:49:05 PM org.jgroups.logging.JDKLogImpl warn
      WARNING: the type of the stack (IPv6) and the user supplied addresses (IPv4) don
      't match: /228.6.7.8.
      Use system props java.net.preferIPv4Stack or java.net.preferIPv6Addresses to pic
      k the correct stack
      Jun 29, 2010 5:49:05 PM org.jgroups.logging.JDKLogImpl warn
      WARNING: could not bind to /228.6.7.8 (IPv4 address); make sure your mcast_addr
      is of the same type as the preferred IP stack (IPv4 or IPv6) by checking the val
      ue of the system properties java.net.preferIPv4Stack and java.net.preferIPv6Addr
      esses.

      ...

      INFO: Infinispan version: Infinispan 'Starobrno' 4.0.0.FINAL

       

       

      Multiple nodes on linux machines having the same cluster name, are not able to connect to each other.

      While, the same jars run on multiple Windows machines are able to connect.

      How do I get rid of this?

       

      Thanks in advance,