[英]Stopping OrientDB service fails, ETL import not possible
My goal is to import data from CSV-files into OrientDB. 我的目标是将数据从CSV文件导入OrientDB。 I use the
OrientDB 2.2.22
Docker image. 我使用
OrientDB 2.2.22
Docker映像。 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"
. 当我尝试在Docker中执行
/orientdb/bin/oetl.sh config.json
脚本时,出现错误: "Can not open storage it is acquired by other process"
。
I guess this is, because the OrientDB - service is still running. 我猜这是因为OrientDB-服务仍在运行。 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. 使用
./oetl.sh
脚本的唯一方法是停止Docker实例并以运行Shell的交互方式重新启动它,但这很尴尬,因为要使用“ OrientDB Studio”,我必须再次停止docker并启动在正常模式下。
As Roberto Franchini mentioned above setting the dbURL
parameter in the Loader to use a remote
URL fixed the first issue "Can not open storage it is acquired by other process"
. 正如上面提到的Roberto Franchini所说,在Loader中将
dbURL
参数设置为使用remote
URL已解决了第一个问题"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. .orientdb.sh
的问题仍然存在,但是使用远程URL方法,我不再需要关闭并重新启动服务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.