【问题标题】:Can't import all data in neo4j via batch importer无法通过批量导入器导入 neo4j 中的所有数据
【发布时间】: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]

【问题讨论】:

    标签: maven neo4j


    【解决方案1】:

    也许你应该看看官方的导入工具,见https://neo4j.com/docs/operations-manual/current/tutorial/import-tool/

    格式基本相同,除了标题格式不同。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-05
      相关资源
      最近更新 更多