yes you are right, it is saying default instance already started. Either way
I  am facing the following problem. On my unix machine I have the binary
ignite folder and I am trying to run the ignite node over there. To that
effect I changed the example-default.xml as follows but the script gives
below exception. All I did was add the cacheConfiguration element
<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xmlns:util="http://www.springframework.org/schema/util";
       xsi:schemaLocation="
        http://www.springframework.org/schema/beans
        http://www.springframework.org/schema/beans/spring-beans.xsd
        http://www.springframework.org/schema/util
        http://www.springframework.org/schema/util/spring-util.xsd";>
    <bean abstract="true" id="ignite.cfg"
class="org.apache.ignite.configuration.IgniteConfiguration">
        
        <property name="peerClassLoadingEnabled" value="true"/>
                                <property name="cacheConfiguration">
            <list>
                
                <bean
class="org.apache.ignite.configuration.CacheConfiguration">
                    <property name="name" value="Lables"/>
                    <property name="atomicityMode" value="ATOMIC"/>
                    <property name="backups" value="1"/>
                                        
                    
                    <property name="cacheMode" value="PARTITIONED"/>
                    <property name="indexedTypes">
                        <list>
                            <value>i.model.LabelId</value>
                            <value>i.model.Label</value>
                        </list>
                    </property>

                    
                    <property name="onheapCacheEnabled" value="true"/>

                    <property name="evictionPolicy">
                        
                        <bean
class="org.apache.ignite.cache.eviction.lru.LruEvictionPolicy">
                            
                            <property name="maxSize" value="1000000"/>
                        </bean>
                    </property>
                    <property name="eagerTtl" value="true"/>
                </bean>
                                </list>
                        </property>

        
        <property name="includeEventTypes">
            <list>
                
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_STARTED"/>
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_FINISHED"/>
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_FAILED"/>
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_TIMEDOUT"/>
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_SESSION_ATTR_SET"/>
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_TASK_REDUCED"/>

                
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_PUT"/>
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_READ"/>
                <util:constant
static-field="org.apache.ignite.events.EventType.EVT_CACHE_OBJECT_REMOVED"/>
            </list>
        </property>

        
        <property name="discoverySpi">
            <bean
class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
                <property name="ipFinder">
                    
                    
                    
                    <bean
class="org.apache.ignite.spi.discovery.tcp.ipfinder.multicast.TcpDiscoveryMulticastIpFinder">
                        <property name="addresses">
                            <list>
                                
                                <value><ipAddress>:47500..47509</value>
                            </list>
                        </property>
                    </bean>
                </property>
            </bean>
        </property>
    </bean>
</beans>


Exception

org.apache.ignite.startup.cmdline.CommandLineStartup
examples/config/example-default.xml
class org.apache.ignite.IgniteException: Failed to find configuration in:
file:/home/username/apache-ignite-fabric-2.3.0-bin/examples/config/example-default.xml
        at
org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:966)
        at org.apache.ignite.Ignition.start(Ignition.java:350)
        at
org.apache.ignite.startup.cmdline.CommandLineStartup.main(CommandLineStartup.java:302)
Caused by: class org.apache.ignite.IgniteCheckedException: Failed to find
configuration in:
file:/home/username/apache-ignite-fabric-2.3.0-bin/examples/config/example-default.xml
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:116)
        at
org.apache.ignite.internal.util.spring.IgniteSpringHelperImpl.loadConfigurations(IgniteSpringHelperImpl.java:98)
        at
org.apache.ignite.internal.IgnitionEx.loadConfigurations(IgnitionEx.java:673)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:874)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:783)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:653)
        at org.apache.ignite.internal.IgnitionEx.start(IgnitionEx.java:622)
        at org.apache.ignite.Ignition.start(Ignition.java:347)
        ... 1 more





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Reply via email to