Hi,

I am trying to get Apache Ignite to start on a Linux machine where the install 
directory ($IGNITE_HOME) is read-only.
Getting an exception "Failed to start grid: Work directory does not exist and 
cannot be created: /path-wth-ro-permission".
My attempts to set up a different "work directory" using the config.xml have 
been unsuccessful until now.
I have tried both PersistentStoreConfiguration.PersistentStorePath and 
DataStorageConfiguration.StoragePath (as the former seems deprecated), as below.
No luck yet... Any suggestions on the proper config.xml?
(I have tried this approach on my Windows workstation also, but still with no 
effect - directories/files still get created under %IGNITE_HOME%\work 
directory.)

<beans xmlns="http://www.springframework.org/schema/beans";
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
       xsi:schemaLocation="
       http://www.springframework.org/schema/beans
       http://www.springframework.org/schema/beans/spring-beans.xsd";>
    <bean id="grid.cfg" 
class="org.apache.ignite.configuration.IgniteConfiguration">

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

        <property name="persistentStoreConfiguration">
            <bean 
class="org.apache.ignite.configuration.PersistentStoreConfiguration">
                <property name="persistentStorePath" 
value="/path-with-rw-permission"/>
            </bean>
        </property>

        <property name="dataStorageConfiguration">
            <bean 
class="org.apache.ignite.configuration.DataStorageConfiguration">
                <property name="storagePath" value="/path-with-rw-permission"/>
            </bean>
        </property>

   </bean>
</beans>

Best regards,
George

----------------------------------------------------------------------
This message, and any attachments, is for the intended recipient(s) only, may 
contain information that is privileged, confidential and/or proprietary and 
subject to important terms and conditions available at 
http://www.bankofamerica.com/emaildisclaimer.   If you are not the intended 
recipient, please delete this message.

Reply via email to