本文介绍了错误“不支持在单个导入中混合指定和未指定的组所有物".使用neo4j-import命令时的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将大量数据导入Neo4j,而使用LOAD CSV方式导入它花费的时间太长.

I'm trying to import a fair amount of data into Neo4j, which it takes too long to be imported using the LOAD CSV way.

由于这个原因,我正在尝试使用neo4j-import命令,但是出现以下错误,但是我没有找到任何有关它的信息或确切的含义.错误是:

For that reason I'm trying with the neo4j-import command but I got the following error and I haven't found any information about it or what it means exactly. The error is:

 2015-04-29 14:34:06.225+0000 ERROR [org.neo4j]: Error during import Mixing specified and unspecified group belongings in a single import isn't supported
java.lang.RuntimeException: Mixing specified and unspecified group belongings in a single import isn't supported
    at org.neo4j.unsafe.impl.batchimport.staging.StageExecution.stillExecuting(StageExecution.java:62)
    at org.neo4j.unsafe.impl.batchimport.staging.ExecutionSupervisor.anyStillExecuting(ExecutionSupervisor.java:79)
    at org.neo4j.unsafe.impl.batchimport.staging.ExecutionSupervisor.finishAwareSleep(ExecutionSupervisor.java:102)
    at org.neo4j.unsafe.impl.batchimport.staging.ExecutionSupervisor.supervise(ExecutionSupervisor.java:64)
    at org.neo4j.unsafe.impl.batchimport.staging.ExecutionSupervisors.superviseExecution(ExecutionSupervisors.java:80)
    at org.neo4j.unsafe.impl.batchimport.staging.ExecutionSupervisors.superviseDynamicExecution(ExecutionSupervisors.java:59)
    at org.neo4j.unsafe.impl.batchimport.ParallelBatchImporter.executeStages(ParallelBatchImporter.java:239)
    at org.neo4j.unsafe.impl.batchimport.ParallelBatchImporter.doImport(ParallelBatchImporter.java:159)
    at org.neo4j.tooling.ImportTool.main(ImportTool.java:293)
    at org.neo4j.tooling.ImportTool.main(ImportTool.java:227)
Caused by: java.lang.IllegalStateException: Mixing specified and unspecified group belongings in a single import isn't supported
    at org.neo4j.unsafe.impl.batchimport.input.Groups.getOrCreate(Groups.java:53)
    at org.neo4j.unsafe.impl.batchimport.input.csv.InputNodeDeserialization.initialize(InputNodeDeserialization.java:60)
    at org.neo4j.unsafe.impl.batchimport.input.csv.InputEntityDeserializer.initialize(InputEntityDeserializer.java:67)
    at org.neo4j.unsafe.impl.batchimport.input.csv.InputGroupsDeserializer.createNestedIterator(InputGroupsDeserializer.java:74)
    at org.neo4j.unsafe.impl.batchimport.input.csv.InputGroupsDeserializer.createNestedIterator(InputGroupsDeserializer.java:35)
    at org.neo4j.helpers.collection.NestingIterator.fetchNextOrNull(NestingIterator.java:67)
    at 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.nextBatchOrNull(IteratorBatcherStep.java:53)
    at org.neo4j.unsafe.impl.batchimport.InputIteratorBatcherStep.nextBatchOrNull(InputIteratorBatcherStep.java:41)
    at org.neo4j.unsafe.impl.batchimport.staging.ProducerStep.process(ProducerStep.java:74)
    at org.neo4j.unsafe.impl.batchimport.staging.ProducerStep$1.run(ProducerStep.java:54)

有人遇到过同样的问题或碰巧知道这是什么意思吗?

Has someone experienced the same issue or happens to know how what that means?

非常感谢你,胡安·塞拉(Juan M.Sierra)

Thank you very much,Juan M. Sierra

推荐答案

什么是大量数据"?请分享您的文件结构/标题?

What is a "fair amount of data" ? Please share your file structures / headers?

我想您有几列带有:ID(group)和:START_ID(group)的列,还有几列没有的列.确保每个关系文件始终定义了分组.

I presume you have a few columns with :ID(group) and :START_ID(group) and a few without. Make sure that per relationship-file you always have groupings defined.

例如:START_ID(group1),:END_ID(group2)

这篇关于错误“不支持在单个导入中混合指定和未指定的组所有物".使用neo4j-import命令时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-30 04:37