Neo4j批量插入器未知错误

时间:2013-04-22 21:36:30

标签: neo4j batch-insert

我正在尝试将java批处理插件用于neo4j数据库,并收到以下错误消息:

>java -server -Xmx4G -jar target/batch-import-jar-with-dependencies.jar target/db nodes6.csv, rels5.csv

Using Existing Configuration File
Nodes file nodes6.csv, does not exist

Total import time: 0 seconds 
Exception in thread "main" org.neo4j.graphdb.NotFoundException: id=4621
    at org.neo4j.unsafe.batchinsert.BatchInserterImpl.getNodeRecord(BatchInserterImpl.java:915)
    at org.neo4j.unsafe.batchinsert.BatchInserterImpl.createRelationship(BatchInserterImpl.java:468)
    at org.neo4j.batchimport.Importer.importRelationships(Importer.java:108)
    at org.neo4j.batchimport.Importer.main(Importer.java:63)

Nodes6.csv肯定存在,所以这......令人困惑。

1 个答案:

答案 0 :(得分:1)

这里有2个错误,第一个是它无法找到你的nodes6.csv文件,对我而言,你看起来像是用额外的,输入了文件名。

你有什么: java -server -Xmx4G -jar target/batch-import-jar-with-dependencies.jar target/db nodes6.csv, rels5.csv

应该是这样:java -server -Xmx4G -jar target/batch-import-jar-with-dependencies.jar target/db nodes6.csv rels5.csv