我有一个具有以下结构的csv文件:
h1_h2,hashtag1,hashtag2,coccurrence
39108234088393,9230981401776738405,11889764071793228909,2
48887306406636,2844752706633868157,14936885980370043276,2
...
文件中有1028112行。
我试图通过arangoimp
arangoimp --file E:\current_crawler\Data\edges\edges_for_graph_ep_83.csv --collection edges_temp4 --create-collection true
--create-collection-type edge --type csv --translate "hashtag1=_from" --translate "hashtag2=_to" --from-collection-prefix hashtags
--to-collection-prefix hashtags --translate "h1_h2=_key" --server.database "newDB" --server.username username --server.password password
并收到错误:
Connected to ArangoDB 'http+tcp://127.0.0.1:8529', version 3.3.4, database: 'newDB', username: 'svm'
----------------------------------------
database: newDB
collection: edges_temp4
from collection prefix: hashtags
to collection prefix: hashtags
create: yes
source filename: E:\current_crawler\Data\edges\edges_for_graph_ep_83.csv
file type: csv
quote: "
separator:
threads: 2
connect timeout: 5
request timeout: 1200
----------------------------------------
Starting CSV import...
2018-08-22T16:49:21Z [3012] INFO processed 1998848 bytes (3%) of input file
2018-08-22T16:49:21Z [3012] INFO processed 3964928 bytes (6%) of input file
2018-08-22T16:49:21Z [3012] INFO processed 5963776 bytes (9%) of input file
2018-08-22T16:49:22Z [3012] INFO processed 7929856 bytes (12%) of input file
2018-08-22T16:49:22Z [3012] INFO processed 9928704 bytes (15%) of input file
2018-08-22T16:49:22Z [3012] INFO processed 11894784 bytes (18%) of input file
2018-08-22T16:49:22Z [3012] INFO processed 13893632 bytes (21%) of input file
2018-08-22T17:09:23Z [3012] ERROR Caught exception Expecting item during import
什么错误是什么?该文件没有问题,其中没有空行和重复的_keys。此外,当我重新引导系统并再次尝试时,没有出现此类错误,它已成功导入。
我将很高兴获得所有帮助。 恩惠:
存储引擎:RocksDB
部署模式:单服务器
配置:Intel Xeon X5650 x2,32GB RAM
操作系统:Windows 10