My goal is to import data from CSV-files into OrientDB.
I use the OrientDB 2.2.22
Docker image.
When I try to execute the /orientdb/bin/oetl.sh config.json
script within Docker, I get the error: "Can not open storage it is acquired by other process"
.
I guess this is, because the OrientDB - service is still running. But, if I try to stop it i get the next error.
./orientdb.sh stop
./orientdb.sh: return: line 70: Illegal number: root
or
./orientdb.sh status
./orientdb.sh: return: line 89: Illegal number: root
The only way for to use the ./oetl.sh
script is to stop the Docker instance and restart it in the interactive mode running the shell, but this is awkward because to use the "OrientDB Studio" I have to stop docker again and start it in the normal mode.
As Roberto Franchini mentioned above setting the
dbURL
parameter in the Loader to use aremote
URL fixed the first issue"Can not open storage it is acquired by other process"
.The issues with the
.orientdb.sh
still exists, but with the remote-URL approach I don't need to shutdown and restart the service anymore.