【问题标题】:ArangoDB Import: arangoimp file crashes on run (timeout 1200)ArangoDB 导入:arangoimp 文件在运行时崩溃(超时 1200)
【发布时间】:2018-09-20 19:25:34
【问题描述】:

刚接触图形数据库并尝试为我的高级项目学习一些平台。我正在使用 ArangoDB,但似乎无法正确导入数据。

手册上说要运行arangoimp文件来执行导入命令,但是每次我启动arangoimp文件时,它都会要求输入密码(为空白),然后退出并显示以下内容...

/Applications/ArangoDB3-CLI.app/Contents/Resources/arangoimp ; exit;
Please specify a password: 

Connected to ArangoDB 'http+tcp://127.0.0.1:8529',
version 3.3.15, database: '_system', username: 'root'
----------------------------------------
database:               _system
collection:             
create:                 no
source filename:        
file type:              json
threads:                2
connect timeout:        5
request timeout:        1200
----------------------------------------
2018-09-20T19:17:30Z [25483] FATAL Collection name is missing.
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.

[Process completed]

这里是菜鸟,非常感谢您的帮助...在 Mac 上工作...

【问题讨论】:

    标签: import graph-databases arangodb


    【解决方案1】:

    arangoimp 是一个需要几个参数的命令行工具。例如。您要填充的集合和源数据。

    所以你应该使用类似的东西:

    arangoimp --file "mydatafile.json" --type json --collection "mycollection"

    阅读arangoimp documentation,了解有关所有选项和远程数据库访问的更多详细信息。

    【讨论】:

    • 文档使您看起来应该将该命令输入到 arango shell 控制台,但如果我导航到该目录并从那里执行,它在终端控制台中可以正常工作。感谢您尝试帮助新人!
    猜你喜欢
    • 1970-01-01
    • 2021-03-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-06
    相关资源
    最近更新 更多