I have a csv file with the following structure:
h1_h2,hashtag1,hashtag2,coccurrence
39108234088393,9230981401776738405,11889764071793228909,2
48887306406636,2844752706633868157,14936885980370043276,2
...
There are 1028112 lines in file.
I tried to import it into collection via 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
and got the error:
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
What does thar error means? The file is OK, there is no empty lines and duplicated _keys in it. Moreover, when I rebooted the system and tried again, there was no such error, it imported successfully.
I'd appreciate all the help I can get. Envoronment:
Storage Engine: RocksDB
Deployment Mode: Single Server
Configuration: Intel Xeon X5650 x2, 32GB RAM
Operating System: Windows 10