neo4j批量导入缓存类型问题

时间:2013-05-23 14:56:46

标签: neo4j

我对neo4j很新,面对以下问题。执行批量导入(Micheal Hunger - 批量导入程序)命令时,我收到有关cache_type设置的错误。它建议使用gcr设置,但这些设置仅在企业版中提供。

非常感谢帮助,谢谢。

系统信息 win7 32bit 4G RAM(3G可用),jre7,neo4j-community-1.8.2

数据:(非常小的测试数据) nodes.csv(制表符分隔)13个节点 rels.csv(制表符分隔)16关系

执行和错误:

C:\ Daten \ Studium \ LV HU Berlin \ SS 2013 \ Datamanagement and BI \ Neuer Ordner> java -server -Xmx1G -jar target \ batch-import-jar-with-dependencies.jar target \ db nodes.csv rels.csv

使用现有配置文件

Exception in thread "main" java.lang.IllegalArgumentException: Bad value 'none' for setting 'cache_type': must
     be one of [gcr]
        at org.neo4j.helpers.Settings$DefaultSetting.apply(Settings.java:788)
        at org.neo4j.helpers.Settings$DefaultSetting.apply(Settings.java:708)
        at        org.neo4j.graphdb.factory.GraphDatabaseSetting$SettingWrapper.apply(GraphDatabaseSetting.ja    va:215)
        at     org.neo4j.graphdb.factory.GraphDatabaseSetting$SettingWrapper.apply(GraphDatabaseSetting.ja    va:189)
        at        org.neo4j.kernel.configuration.ConfigurationValidator.validate(ConfigurationValidator.java:    50)
        at org.neo4j.kernel.configuration.Config.applyChanges(Config.java:121)
        at org.neo4j.kernel.configuration.Config.<init>(Config.java:89)
        at org.neo4j.kernel.configuration.Config.<init>(Config.java:79)
        at org.neo4j.unsafe.batchinsert.BatchInserterImpl.<init>(BatchInserterImpl.java:83)
        at org.neo4j.unsafe.batchinsert.BatchInserterImpl.<init>(BatchInserterImpl.java:67)
        at org.neo4j.unsafe.batchinsert.BatchInserters.inserter(BatchInserters.java:60)
        at org.neo4j.batchimport.Importer.createBatchInserter(Importer.java:40)
        at org.neo4j.batchimport.Importer.<init>(Importer.java:26)
        at org.neo4j.batchimport.Importer.main(Importer.java:54)

Batch.properties:

dump_configuration=false

cache_type=none

use_memory_mapped_buffers=true
neostore.propertystore.db.index.keys.mapped_memory=5M
neostore.propertystore.db.index.mapped_memory=5M
neostore.nodestore.db.mapped_memory=200M
neostore.relationshipstore.db.mapped_memory=500M
neostore.propertystore.db.mapped_memory=200M
neostore.propertystore.db.strings.mapped_memory=200M

1 个答案:

答案 0 :(得分:0)

遇到了和你一样的问题,我改变了batch.properties

中的行

cache_type=nonecache_type=gcr并且它有效。不确定速度如何变化。不确定为什么其他选项nonesoftweakstrong无效。 也许迈克尔可以给出答案吗?

从neo4j文件中得到答案 http://docs.neo4j.org/chunked/stable/configuration-caches.html#_object_cache