You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Pietro Liuzzo <pi...@gmail.com> on 2024/06/13 11:00:44 UTC
Re: Docker image for Fuseki on Mac with M1
Thank you very much!
Both hints and repositories have been very useful.
what worked in the end for me, at least to get the container started, was actually to set the platform in docker-compose.
fuseki:
platform: linux/amd64
and change the first FROM statement to
FROM openjdk:${JAVA_VERSION}-jdk-alpine AS base
I then get to the same as Martynas “No dataset specified on the command line"
Thank you very much
Pietro
> On 31 May 2024, at 08:49, Martynas Jusevičius <ma...@atomgraph.com> wrote:
>
> Hi Pietro,
>
> I get a warning but I can run the
> https://github.com/AtomGraph/fuseki-docker image without having it
> built for Mac.
> That might be because I have checked "open using Rosetta" in the
> Terminal.app Get Info.
>
> % docker run atomgraph/fuseki
>
> WARNING: The requested image's platform (linux/amd64) does not match
> the detected host platform (linux/arm64/v8) and no specific platform
> was requested
>
> No dataset specified on the command line.
>
>
> Martynas
>
> On Thu, May 30, 2024 at 2:44 PM Pietro Liuzzo <pi...@gmail.com> wrote:
>>
>> Dear all,
>>
>> I am not able to find a base image for java 17 which would work on MAC M1 for the Docker-compose file installing Apache Jena Fuseki (from here <https://repo1.maven.org/maven2/org/apache/jena/jena-fuseki-docker/5.0.0/>). Apparently eclipse-temurin:17-alpine does not support M1. I have tried several of the variants of openjdk 17 images which I could find, but the JAVA_HOME then cannot be found and / or objcopy cannot be found.
>>
>> Did anyone succeed in adapting the Dockerfile to work on Mac with M1/M2 ?
>>
>> Additionally, I would like to ask if I can point from my configurations in Docker-compose to an existing database location accessed by multiple instances of Apache Jena Fuseki running on different machines. The location of the db is on a shared mount.
>>
>> Thanks a lot!
>> All best
>> Pietro
Re: issue when Deleting a dataset on Windows
Posted by Andy Seaborne <an...@apache.org>.
Hi Philippe,
The issue is Windows.
There is a bug in the JDK on a NTFS filesystem whereby memory mapped
files are not deleted until the JVM exits. The JDK issue is "won't fix".
https://github.com/apache/jena/issues/2092#issuecomment-1810362743
WSL has linux filesystem semantics - no issue.
For you example below, you could PUT the new triples into the dtabase
which will clear out the old data.
Andy
On 20/06/2024 13:51, Philippe Genoud wrote:
> I have an issue with Fuseki 5.0.0 running on Windows (10 or 11) when I
> try to remove a existing dataset using the Web UI.
>
> Here are the operations I'm performing
>
> 1) Create en new DataSet named Test1
>
> 2) Remove the DataSet
>
> 3) In the interface everything seems going fine, no message
>
> But in fact the file (folder Test1 containing the dataset data) is not
> destroyed on my hard disk and I get a Exception message on the console
> saying that The process cannot access the file because this file is in
> use by another process
>
> Here the trace on the console
>
> >fuseki-server.bat
> 14:24:31 INFO Server :: Apache Jena Fuseki 5.0.0
> 14:24:31 INFO Config ::
> FUSEKI_HOME=P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\.
> 14:24:31 INFO Config ::
> FUSEKI_BASE=P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run
> 14:24:31 INFO Config :: Shiro file:
> file://P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\shiro.ini
> 14:24:32 INFO Server :: Configuration file:
> P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\config.ttl
> 14:24:32 INFO Server :: Memory: 1,2 GiB
> 14:24:32 INFO Server :: Java: 17.0.5
> 14:24:32 INFO Server :: OS: Windows 10 10.0 amd64
> 14:24:32 INFO Server :: PID: 22624
> 14:24:32 INFO Server :: Started 2024/06/20 14:24:32 CEST on
> port 3030
> 14:25:14 INFO Admin :: [3] Create database : name = /test1
> 14:25:43 INFO Admin :: [5] DELETE dataset=/test1
> 14:25:43 ERROR Admin :: [5] Error while deleting database
> files
> P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\databases\test1:
> java.nio.file.FileSystemException:
> P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\databases\test1\Data-0001\GOSP.bpt: Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus
> org.apache.jena.atlas.RuntimeIOException:
> java.nio.file.FileSystemException:
> P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\databases\test1\Data-0001\GOSP.bpt: Le processus ne peut pas accéder au fichier car ce fichier est utilisé par un autre processus
> at org.apache.jena.atlas.io.IOX.exception(IOX.java:55)
> ~[fuseki-server.jar:5.0.0]
> at org.apache.jena.atlas.io.IO.deleteAll(IO.java:601)
> ~[fuseki-server.jar:5.0.0]
> at
> org.apache.jena.fuseki.mgt.ActionDatasets.execDeleteItem(ActionDatasets.java:422) ~[fuseki-server.jar:5.0.0]
> at
> org.apache.jena.fuseki.ctl.ActionContainerItem.performDelete(ActionContainerItem.java:99) ~[fuseki-server.jar:5.0.0]
> at
> org.apache.jena.fuseki.ctl.ActionContainerItem.execute(ActionContainerItem.java:45) ~[fuseki-server.jar:5.0.0]
> at
> org.apache.jena.fuseki.ctl.ActionCtl.executeLifecycle(ActionCtl.java:50)
> ~[fuseki-server.jar:5.0.0]
> at
> org.apache.jena.fuseki.ctl.ActionCtl.process(ActionCtl.java:40)
> ~[fuseki-server.jar:5.0.0]
> at
> org.apache.jena.fuseki.servlets.ActionExecLib.execActionSub(ActionExecLib.java:127) ~[fuseki-server.jar:5.0.0]
>
> I've tried also with Java 21.0.3 (Oracle JDK) and I got the same
> message. But when launching fuseki from wsl, everything works fine.
>
> The problem is that if a create a Dataset, put some triples in it, then
> if a remove it and I create a new dataset with the same name, all the
> triples stored in the previous deleted one are in the new one.
>
> Is it a known bug ? Is there a workaround ?
>
> Thanks for your help
>
> Philippe
>
>
> --
> Philippe Genoud
> Universite Grenoble Alpes
> -------------------------------------------------------
> STEAMER group
> Laboratoire d'Informatique de Grenoble (LIG)
> Bâtiment IMAG
> 700 avenue Centrale
> Domaine Universitaire - 38401 St Martin d'Hères
> -------------------------------------------------------
> adresse postale
> LIG - Bâtiment IMAG - CS 40700 - 38058 GRENOBLE CEDEX 9
> -------------------------------------------------------
> Tel: tel: (+33) (0)4 57 42 15 01
>
issue when Deleting a dataset on Windows
Posted by Philippe Genoud <Ph...@imag.fr>.
I have an issue with Fuseki 5.0.0 running on Windows (10 or 11) when I
try to remove a existing dataset using the Web UI.
Here are the operations I'm performing
1) Create en new DataSet named Test1
2) Remove the DataSet
3) In the interface everything seems going fine, no message
But in fact the file (folder Test1 containing the dataset data) is not
destroyed on my hard disk and I get a Exception message on the console
saying that The process cannot access the file because this file is in
use by another process
Here the trace on the console
>fuseki-server.bat
14:24:31 INFO Server :: Apache Jena Fuseki 5.0.0
14:24:31 INFO Config ::
FUSEKI_HOME=P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\.
14:24:31 INFO Config ::
FUSEKI_BASE=P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run
14:24:31 INFO Config :: Shiro file:
file://P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\shiro.ini
14:24:32 INFO Server :: Configuration file:
P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\config.ttl
14:24:32 INFO Server :: Memory: 1,2 GiB
14:24:32 INFO Server :: Java: 17.0.5
14:24:32 INFO Server :: OS: Windows 10 10.0 amd64
14:24:32 INFO Server :: PID: 22624
14:24:32 INFO Server :: Started 2024/06/20 14:24:32 CEST on
port 3030
14:25:14 INFO Admin :: [3] Create database : name = /test1
14:25:43 INFO Admin :: [5] DELETE dataset=/test1
14:25:43 ERROR Admin :: [5] Error while deleting database
files
P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\databases\test1:
java.nio.file.FileSystemException:
P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\databases\test1\Data-0001\GOSP.bpt:
Le processus ne peut pas accéder au fichier car ce fichier est utilisé
par un autre processus
org.apache.jena.atlas.RuntimeIOException:
java.nio.file.FileSystemException:
P:\DevTools\SemWeb\Fuseki\apache-jena-fuseki-5.0.0\run\databases\test1\Data-0001\GOSP.bpt:
Le processus ne peut pas accéder au fichier car ce fichier est utilisé
par un autre processus
at org.apache.jena.atlas.io.IOX.exception(IOX.java:55)
~[fuseki-server.jar:5.0.0]
at org.apache.jena.atlas.io.IO.deleteAll(IO.java:601)
~[fuseki-server.jar:5.0.0]
at
org.apache.jena.fuseki.mgt.ActionDatasets.execDeleteItem(ActionDatasets.java:422)
~[fuseki-server.jar:5.0.0]
at
org.apache.jena.fuseki.ctl.ActionContainerItem.performDelete(ActionContainerItem.java:99)
~[fuseki-server.jar:5.0.0]
at
org.apache.jena.fuseki.ctl.ActionContainerItem.execute(ActionContainerItem.java:45)
~[fuseki-server.jar:5.0.0]
at
org.apache.jena.fuseki.ctl.ActionCtl.executeLifecycle(ActionCtl.java:50)
~[fuseki-server.jar:5.0.0]
at
org.apache.jena.fuseki.ctl.ActionCtl.process(ActionCtl.java:40)
~[fuseki-server.jar:5.0.0]
at
org.apache.jena.fuseki.servlets.ActionExecLib.execActionSub(ActionExecLib.java:127)
~[fuseki-server.jar:5.0.0]
I've tried also with Java 21.0.3 (Oracle JDK) and I got the same
message. But when launching fuseki from wsl, everything works fine.
The problem is that if a create a Dataset, put some triples in it, then
if a remove it and I create a new dataset with the same name, all the
triples stored in the previous deleted one are in the new one.
Is it a known bug ? Is there a workaround ?
Thanks for your help
Philippe
--
Philippe Genoud
Universite Grenoble Alpes
-------------------------------------------------------
STEAMER group
Laboratoire d'Informatique de Grenoble (LIG)
Bâtiment IMAG
700 avenue Centrale
Domaine Universitaire - 38401 St Martin d'Hères
-------------------------------------------------------
adresse postale
LIG - Bâtiment IMAG - CS 40700 - 38058 GRENOBLE CEDEX 9
-------------------------------------------------------
Tel: tel: (+33) (0)4 57 42 15 01
Re: Docker image for Fuseki on Mac with M1
Posted by Phillip Ross <ph...@gmail.com>.
Hi Pietro, a few questions:
1. When you refer to your "db" are you working with a TDB dataset, a
TDB2 dataset, an RDF serialized file?
2. Are you exclusively accessing the datasets through Fuseki or do you
also have processes directly accessing the underlying physical
datastores?
3. Is your intention to have multiple containers access the same
physical datastore?
4. Is the physical datastore hosted on an APFS filesystem, and then
bind mounted into the containers, or is the datastore stored on a
docker volume and mounted into the containers?
I'm currently working through a project to get Fuseki working inside
containers in a flexible but cross-platform/cross-architecture way and
happy to report back after I make some progress.
Thanks!
- Phillip
On Thu, Jun 13, 2024 at 7:01 AM Pietro Liuzzo <pi...@gmail.com> wrote:
>
> Thank you very much!
>
> Both hints and repositories have been very useful.
>
> what worked in the end for me, at least to get the container started, was actually to set the platform in docker-compose.
>
> fuseki:
> platform: linux/amd64
>
> and change the first FROM statement to
> FROM openjdk:${JAVA_VERSION}-jdk-alpine AS base
>
>
> I then get to the same as Martynas “No dataset specified on the command line"
>
> Thank you very much
> Pietro
>
>
> > On 31 May 2024, at 08:49, Martynas Jusevičius <ma...@atomgraph.com> wrote:
> >
> > Hi Pietro,
> >
> > I get a warning but I can run the
> > https://github.com/AtomGraph/fuseki-docker image without having it
> > built for Mac.
> > That might be because I have checked "open using Rosetta" in the
> > Terminal.app Get Info.
> >
> > % docker run atomgraph/fuseki
> >
> > WARNING: The requested image's platform (linux/amd64) does not match
> > the detected host platform (linux/arm64/v8) and no specific platform
> > was requested
> >
> > No dataset specified on the command line.
> >
> >
> > Martynas
> >
> > On Thu, May 30, 2024 at 2:44 PM Pietro Liuzzo <pi...@gmail.com> wrote:
> >>
> >> Dear all,
> >>
> >> I am not able to find a base image for java 17 which would work on MAC M1 for the Docker-compose file installing Apache Jena Fuseki (from here <https://repo1.maven.org/maven2/org/apache/jena/jena-fuseki-docker/5.0.0/>). Apparently eclipse-temurin:17-alpine does not support M1. I have tried several of the variants of openjdk 17 images which I could find, but the JAVA_HOME then cannot be found and / or objcopy cannot be found.
> >>
> >> Did anyone succeed in adapting the Dockerfile to work on Mac with M1/M2 ?
> >>
> >> Additionally, I would like to ask if I can point from my configurations in Docker-compose to an existing database location accessed by multiple instances of Apache Jena Fuseki running on different machines. The location of the db is on a shared mount.
> >>
> >> Thanks a lot!
> >> All best
> >> Pietro
>