0

我正在尝试将 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 肯定存在,所以这......令人困惑。

4

1 回答 1

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

于 2013-04-22T23:47:30.283 回答