【发布时间】:2014-03-20 04:12:26
【问题描述】:
我正在尝试使用batch-import 将 SQLite3 数据库导入 Neo4J。作为一个 Neo4J 菜鸟,我关注了 Max De Marzi 的帖子:Batch Importer – Part 2。
我收到此错误:
# java -server -Xmx2G -jar /opt/batch-import/target/batch-import-jar-with-dependencies.jar /var/lib/neo4j/data/graph.db nodes.csv relations.csv
Usage: Importer data/dir nodes.csv relationships.csv [node_index node-index-name fulltext|exact nodes_index.csv rel_index rel-index-name fulltext|exact rels_index.csv ....]
Using: Importer /var/lib/neo4j/data/graph.db nodes.csv relations.csv
Using Existing Configuration File
..
Importing 271544 Nodes took 2 seconds
Total import time: 4 seconds
Exception in thread "main" org.neo4j.graphdb.NotFoundException: id=271565
at org.neo4j.unsafe.batchinsert.BatchInserterImpl.getNodeRecord(BatchInserterImpl.java:917)
at org.neo4j.unsafe.batchinsert.BatchInserterImpl.createRelationship(BatchInserterImpl.java:471)
at org.neo4j.batchimport.Importer.importRelationships(Importer.java:136)
at org.neo4j.batchimport.Importer.doImport(Importer.java:214)
at org.neo4j.batchimport.Importer.main(Importer.java:78)
但节点存在:
$ grep ^271565 nodes.csv
271565 'la Callas' 'n_term' 0.0
还有其他人遇到过这个问题吗? 谢谢。
【问题讨论】:
标签: neo4j