You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Castro, André <An...@tib.eu> on 2020/10/15 06:09:01 UTC

change Fuseki tdb2:location path

Hi,

Think this will be a simple newby question ;) 

 

I notice that Fuseki is storing datasets created by the UI in /etc/fuseki/databases/

Which is the way that is defined in the tdb & tdb2 config templates.

templates/config-tdb:    tdb:location "{FUSEKI_BASE}/databases/{NAME}" ;

templates/config-tdb2:   tdb2:location "{FUSEKI_BASE}/databases/{NAME}" ;

Given that the FUSEKI_BASE fuseki.service  is /etc/fuseki

 

What will be the cleanest way to have the databases path outside FUSEKI_BASE dir? So that 

·         Configurations (FUSEKI_BASE) are in /etc/fuseki/

·         Databases are in /data/tdb/databases/  (which might be useful if using external storage to store the dbs)

 

Does it make change to change the tdb2:location value in templates/config-tdb2 ?

And do you foresee any issue with moving the databases/ dir outside FUSEKI_BASE?

 

Thank you!

a


RE: change Fuseki tdb2:location path

Posted by Castro, André <An...@tib.eu>.
-----Original Message-----
From: Andy Seaborne [mailto:andy@apache.org] 
Sent: Thursday, October 15, 2020 5:23 PM
To: users@jena.apache.org
Subject: Re: change Fuseki tdb2:location path



On 15/10/2020 07:09, Castro, André wrote:
> Hi,
> 
> Think this will be a simple newby question ;)
> 
>   
> 
> I notice that Fuseki is storing datasets created by the UI in /etc/fuseki/databases/
> 
> Which is the way that is defined in the tdb & tdb2 config templates.
> 
> templates/config-tdb:    tdb:location "{FUSEKI_BASE}/databases/{NAME}" ;
> 
> templates/config-tdb2:   tdb2:location "{FUSEKI_BASE}/databases/{NAME}" ;
> 
> Given that the FUSEKI_BASE fuseki.service  is /etc/fuseki
> 
>   
> 
> What will be the cleanest way to have the databases path outside FUSEKI_BASE dir? So that
> 
> ·         Configurations (FUSEKI_BASE) are in /etc/fuseki/
> 
> ·         Databases are in /data/tdb/databases/  (which might be useful if using external storage to store the dbs)
> 
>   
> 
> Does it make change to change the tdb2:location value in templates/config-tdb2 ?

Two ways:

Stop the server.

Move the directory to where you want it making sure the access control 
is the same.

Note that archive/compress and uncompress will make the files larger - 
if possible use cp (and I thing rsync is OK with these spare files)

Then either:

1/ Replace the database directory with a symbolic link. No need to 
change the tdb2:location.


2/ change the tdb2:location.

Variations on (1) can make new databases appear elsewhere as well.


> And do you foresee any issue with moving the databases/ dir outside FUSEKI_BASE?

Stop the server before moving databases around!

     Andy

> 
>   
> 
> Thank you!
> 
> a
> 
Thank you Andy,
Replace the database directory with a symbolic link seems like the path of least resistance.
Thank you for the advice
a

Re: change Fuseki tdb2:location path

Posted by Andy Seaborne <an...@apache.org>.

On 15/10/2020 07:09, Castro, André wrote:
> Hi,
> 
> Think this will be a simple newby question ;)
> 
>   
> 
> I notice that Fuseki is storing datasets created by the UI in /etc/fuseki/databases/
> 
> Which is the way that is defined in the tdb & tdb2 config templates.
> 
> templates/config-tdb:    tdb:location "{FUSEKI_BASE}/databases/{NAME}" ;
> 
> templates/config-tdb2:   tdb2:location "{FUSEKI_BASE}/databases/{NAME}" ;
> 
> Given that the FUSEKI_BASE fuseki.service  is /etc/fuseki
> 
>   
> 
> What will be the cleanest way to have the databases path outside FUSEKI_BASE dir? So that
> 
> ·         Configurations (FUSEKI_BASE) are in /etc/fuseki/
> 
> ·         Databases are in /data/tdb/databases/  (which might be useful if using external storage to store the dbs)
> 
>   
> 
> Does it make change to change the tdb2:location value in templates/config-tdb2 ?

Two ways:

Stop the server.

Move the directory to where you want it making sure the access control 
is the same.

Note that archive/compress and uncompress will make the files larger - 
if possible use cp (and I thing rsync is OK with these spare files)

Then either:

1/ Replace the database directory with a symbolic link. No need to 
change the tdb2:location.


2/ change the tdb2:location.

Variations on (1) can make new databases appear elsewhere as well.


> And do you foresee any issue with moving the databases/ dir outside FUSEKI_BASE?

Stop the server before moving databases around!

     Andy

> 
>   
> 
> Thank you!
> 
> a
> 
>