停止OrientDB服务失败,ETL导入不可能

我的目标是将数据从CSV文件导入OrientDB。 我使用OrientDB 2.2.22 Docker镜像。 当我尝试在Docker中执行/orientdb/bin/oetl.sh config.json脚本时,出现错误: "Can not open storage it is acquired by other process"

我想这是因为OrientDB服务仍在运行。 但是,如果我试图阻止它,我会得到下一个错误。

 ./orientdb.sh stop ./orientdb.sh: return: line 70: Illegal number: root 

要么

 ./orientdb.sh status ./orientdb.sh: return: line 89: Illegal number: root 

使用./oetl.sh脚本的唯一方法是停止Docker实例,并以运行shell的交互模式重新启动它,但这很尴尬,因为使用“OrientDB Studio”,我必须再次停止docker并启动它在正常模式下。

正如Roberto Franchini在上面提到的dbURL ,将Loader中的dbURL参数设置为使用remote URL,修复了第一个问题"Can not open storage it is acquired by other process"

.orientdb.sh的问题仍然存在,但是使用远程URL方法,我不需要closures并重新启动服务。