【发布时间】:2017-02-02 08:24:57
【问题描述】:
我正在尝试导入 Neo4J 节点和关系。我有 2 个.csv 文件(制表符分隔),如下所示:
users.csv(它包含 10000 个用户)
userID name
1 Cedric
2 Kirby
3 Zachary
4 Hoyt
5 Ella
6 Darrel
..........
..........
..........
rels.csv(它包含以前用户之间的 100.000 个关系)
idRel id1 id2
1 4471 6462
2 4824 382
3 1936 9777
4 4448 5431
我在 Ubuntu 16 上使用 jexp batch importer。
执行./import-mvn.sh test.db sample/users.csv sample/rels.csv 我可以正确导入所有 10000 个用户,但只能导入 6077 个关系(不是 100.000,为什么?)。
我在终端中收到此错误:[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:java (default-cli) on project batch-import: An exception occured while executing the Java class. null: InvocationTargetException: Node[100,used=false,rel=-1,prop=-1,labels=Inline(0x0:[]),light,secondaryUnitId=-1] not in use -> [Help 1]
【问题讨论】: