Neo4j 2.2导入工具不会按预期忽略字段

时间:2015-02-26 12:31:07

标签: import neo4j

文档(http://neo4j.com/docs/milestone/import-tool-header-format.html)表示可以将字段标记为IGNORE,以便“完全忽略此字段”。

我创建了一个包含以下内容的头文件:

tx_id:ID,:IGNORE,value:int 

和内容文件

1, some value to be ignored, 100

2, another value to be ignored, 200

但是当使用Neo4J 2.2导入工具时,它一次又一次失败。 我尝试了很多变种但没有成功。 我知道如何忽略导入的CSV文件中的列/字段?

我使用的是2.2.0-M04版 使用--stacktrace我得到以下

导入错误:'IGNORE' java.lang.RuntimeException:'IGNORE'         在org.neo4j.unsafe.impl.batchimport.staging.StageExecution.stillExecuting(StageExecution.java:63)         at org.neo4j.unsafe.impl.batchimport.staging.ExecutionSupervisor.anyStillExecuting(ExecutionSupervisor.java:70)         在org.neo4j.unsafe.impl.batchimport.staging.ExecutionSupervisor.finishAwareSleep(ExecutionSupervisor.java:93)         at org.neo4j.unsafe.impl.batchimport.staging.ExecutionSupervisor.supervise(ExecutionSupervisor.java:55)         在org.neo4j.unsafe.impl.batchimport.ParallelBatchImporter.executeStages(ParallelBatchImporter.java:267)         在org.neo4j.unsafe.impl.batchimport.ParallelBatchImporter.doImport(ParallelBatchImporter.java:151)         在org.neo4j.tooling.ImportTool.main(ImportTool.java:216) 引起:java.lang.IllegalArgumentException:'IGNORE'         在org.neo4j.csv.reader.Extractors.valueOf(Extractors.java:140)         at org.neo4j.unsafe.impl.batchimport.input.csv.DataFactories $ DefaultNodeFileHeaderParser.entry(DataFactories.jav)         at org.neo4j.unsafe.impl.batchimport.input.csv.DataFactories $ AbstractDefaultFileHeaderParser.create(DataFactorie)         at org.neo4j.unsafe.impl.batchimport.input.csv.InputGroupsDeserializer.createNestedIterator(InputGroupsDeseriali)         at org.neo4j.unsafe.impl.batchimport.input.csv.InputGroupsDeserializer.createNestedIterator(InputGroupsDeseriali)         at org.neo4j.helpers.collection.NestingIterator.fetchNextOrNull(NestingIterator.java:67)         在org.neo4j.helpers.collection.PrefetchingIterator.peek(PrefetchingIterator.java:60)         at org.neo4j.helpers.collection.PrefetchingIterator.hasNext(PrefetchingIterator.java:46)         at org.neo4j.unsafe.impl.batchimport.staging.IteratorBatcherStep.nextOrNull(IteratorBatcherStep.java:48)         在org.neo4j.unsafe.impl.batchimport.staging.ProducerStep.process(ProducerStep.java:74)         在org.neo4j.unsafe.impl.batchimport.staging.ProducerStep $ 1.run(ProducerStep.java:56)

由于

1 个答案:

答案 0 :(得分:0)

这是一个将在RC1中修复的错误