2013-04-22 20 views
0

我試圖使用java批量插入一個Neo4j的數據庫,我收到以下錯誤信息: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

有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

+0

是它應該。我驚呆了,你撿起來了! – 2013-04-23 01:39:41