You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by Rajesh Kishore <ra...@gmail.com> on 2018/01/29 12:04:21 UTC

default location for ignite file db

Hi All.

How do we determine the default location for ignite file based DB

Thanks in advance
-Rajesh

RE: default location for ignite file db

Posted by Rajesh Kishore <ra...@gmail.com>.
Perfect Stan

On 29 Jan 2018 7:23 p.m., "Stanislav Lukyanov" <st...@gmail.com>
wrote:

> Make sure you have persistence enabled as described at
> https://apacheignite.readme.io/docs/distributed-persistent-store.
>
> Also, make sure you don’t already have a custom setting for the
> StoragePath, WalPath or WalArchivePath.
>
>
>
> Making an environment variable visible to your process is OS-specific. On
> Windows you need to specify it in the System Properties dialog,
>
> and on Unix you need to use `export` command (you often put the `export`
> in your .bashrc). You should consult your system docs
>
> on doing so.
>
>
>
> If you don’t set IGNITE_HOME Ignite will try to find the installation
> based on your current directory and class path,
>
> and if it fails then a temporary directory directory will be created in
> the standard system location (e.g. /tmp on Linux)
>
> to store Ignite’s DB and other files such as logs.
>
>
>
> Stan
>
>
>
> *From: *Rajesh Kishore <ra...@gmail.com>
> *Sent: *29 января 2018 г. 15:18
> *To: *user@ignite.apache.org
> *Subject: *Re: default location for ignite file db
>
>
>
> Thanks Stan,
>
> I just extracted the zip , and I am starting the ignite server in embedded
> mode. I dont see DB files getting created at the ${IGNITE_HOME}/work/db.
> More specifically how embedded mode server would get to know about the env
> variable
> r ${IGNITE_HOME} , as in my classpath of application I am using only
> required jars of ignite
>
> -Rajesh
>
>
>
> On Mon, Jan 29, 2018 at 5:41 PM, Stanislav Lukyanov <
> stanlukyanov@gmail.com> wrote:
>
> It will be under ${IGNITE_HOME}/work/db.
>
> Please refer to https://apacheignite.readme.io/docs/distributed-
> persistent-store which covers this topic in details.
>
>
>
> Stan
>
>
>
> *From: *Rajesh Kishore <ra...@gmail.com>
> *Sent: *29 января 2018 г. 15:04
> *To: *user@ignite.apache.org
> *Subject: *default location for ignite file db
>
>
>
> Hi All.
>
> How do we determine the default location for ignite file based DB
>
> Thanks in advance
>
> -Rajesh
>
>
>
>
>
>
>

RE: default location for ignite file db

Posted by Stanislav Lukyanov <st...@gmail.com>.
Make sure you have persistence enabled as described at https://apacheignite.readme.io/docs/distributed-persistent-store.
Also, make sure you don’t already have a custom setting for the StoragePath, WalPath or WalArchivePath.

Making an environment variable visible to your process is OS-specific. On Windows you need to specify it in the System Properties dialog,
and on Unix you need to use `export` command (you often put the `export` in your .bashrc). You should consult your system docs
on doing so. 

If you don’t set IGNITE_HOME Ignite will try to find the installation based on your current directory and class path,
and if it fails then a temporary directory directory will be created in the standard system location (e.g. /tmp on Linux)
to store Ignite’s DB and other files such as logs.

Stan 

From: Rajesh Kishore
Sent: 29 января 2018 г. 15:18
To: user@ignite.apache.org
Subject: Re: default location for ignite file db

Thanks Stan,

I just extracted the zip , and I am starting the ignite server in embedded mode. I dont see DB files getting created at the ${IGNITE_HOME}/work/db. More specifically how embedded mode server would get to know about the env variable 
r ${IGNITE_HOME} , as in my classpath of application I am using only required jars of ignite
-Rajesh

On Mon, Jan 29, 2018 at 5:41 PM, Stanislav Lukyanov <st...@gmail.com> wrote:
It will be under ${IGNITE_HOME}/work/db.
Please refer to https://apacheignite.readme.io/docs/distributed-persistent-store which covers this topic in details.
 
Stan
 
From: Rajesh Kishore
Sent: 29 января 2018 г. 15:04
To: user@ignite.apache.org
Subject: default location for ignite file db
 
Hi All.
How do we determine the default location for ignite file based DB
Thanks in advance
-Rajesh
 



Re: default location for ignite file db

Posted by Mikael <mi...@telia.com>.
You can set it in your XML file or Ingnite configuration from Java.

         <property name="dataStorageConfiguration">
             <bean 
class="org.apache.ignite.configuration.DataStorageConfiguration">
               <!--
                   Sets a path to the root directory where data and 
indexes are
                   to be persisted. It's assumed the directory is on a 
separated SSD.
               -->
               <property name="storagePath" value="path"/>

               <!--
                   Sets a path to the directory where WAL is stored.
                   It's assumed the directory is on a separated HDD.
               -->
               <property name="walPath" value="another_path"/>

               <!--
                   Sets a path to the directory where WAL archive is stored.
                   The directory is on the same HDD as the WAL.
               -->
               <property name="walArchivePath" value=and_another_path"/>
             </bean>
         </property>


Den 2018-01-29 kl. 13:18, skrev Rajesh Kishore:
> Thanks Stan,
>
> I just extracted the zip , and I am starting the ignite server in 
> embedded mode. I dont see DB files getting created at the 
> ${IGNITE_HOME}/work/db. More specifically how embedded mode server 
> would get to know about the env variable
> r ${IGNITE_HOME} , as in my classpath of application I am using only 
> required jars of ignite
>
> -Rajesh
>
> On Mon, Jan 29, 2018 at 5:41 PM, Stanislav Lukyanov 
> <stanlukyanov@gmail.com <ma...@gmail.com>> wrote:
>
>     It will be under ${IGNITE_HOME}/work/db.
>
>     Please refer to
>     https://apacheignite.readme.io/docs/distributed-persistent-store
>     <https://apacheignite.readme.io/docs/distributed-persistent-store>
>     which covers this topic in details.
>
>     Stan
>
>     *From: *Rajesh Kishore <ma...@gmail.com>
>     *Sent: *29 января 2018 г. 15:04
>     *To: *user@ignite.apache.org <ma...@ignite.apache.org>
>     *Subject: *default location for ignite file db
>
>     Hi All.
>
>     How do we determine the default location for ignite file based DB
>
>     Thanks in advance
>
>     -Rajesh
>
>


Re: default location for ignite file db

Posted by Rajesh Kishore <ra...@gmail.com>.
Thanks Stan,

I just extracted the zip , and I am starting the ignite server in embedded
mode. I dont see DB files getting created at the ${IGNITE_HOME}/work/db.
More specifically how embedded mode server would get to know about the env
variable
r ${IGNITE_HOME} , as in my classpath of application I am using only
required jars of ignite

-Rajesh

On Mon, Jan 29, 2018 at 5:41 PM, Stanislav Lukyanov <st...@gmail.com>
wrote:

> It will be under ${IGNITE_HOME}/work/db.
>
> Please refer to https://apacheignite.readme.io/docs/distributed-
> persistent-store which covers this topic in details.
>
>
>
> Stan
>
>
>
> *From: *Rajesh Kishore <ra...@gmail.com>
> *Sent: *29 января 2018 г. 15:04
> *To: *user@ignite.apache.org
> *Subject: *default location for ignite file db
>
>
>
> Hi All.
>
> How do we determine the default location for ignite file based DB
>
> Thanks in advance
>
> -Rajesh
>
>
>

RE: default location for ignite file db

Posted by Stanislav Lukyanov <st...@gmail.com>.
It will be under ${IGNITE_HOME}/work/db.
Please refer to https://apacheignite.readme.io/docs/distributed-persistent-store which covers this topic in details.

Stan

From: Rajesh Kishore
Sent: 29 января 2018 г. 15:04
To: user@ignite.apache.org
Subject: default location for ignite file db

Hi All.
How do we determine the default location for ignite file based DB
Thanks in advance
-Rajesh