Matthias,
can you try with cache_type=none
? The batchinserter is not using caches.
/peter
Cheers,
/peter neubauer
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L:
http://www.linkedin.com/in/neubauer
T: @peterneubauer
Neo4j 1.9 GA is out -
http://blog.neo4j.org/2013/05/neo4j-19-general-availability.html
Neo4j questions? Please use SO -
http://stackoverflow.com/search?q=neo4j
On Thu, May 23, 2013 at 7:13 AM, <
matthias...@googlemail.com> wrote:
>
> Hello,
>
> i am pretty new to neo4j and want to use the batch importer. So far it
> worked all fine, but the execution of the batch-importer failed due to the
> cache_type setting.
> It recommends gcr settings, but these are only available within the
> enterprise edition.
>
> Is there a way to overcome this issue. Help is appreciated, thanks.
>
> Below are further information that might help to solve the problem.
>
> System-Info:
> Win 7 32bit, 4G (3G usable), JRE 7
>
> Batch.properties:
> dump_configuration=false
> cache_type=weak
> 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
>
> Graph Data:
> very small sample graph
>
> Nodes
> id label
> 1 test1
> 2 test2
> 3 test3
> 4 test4
> 5 test5
> 6 test6
> 7 test7
> 8 test8
> 9 test9
> 13 test10
> 23 test11
> 34 test12
> 56 test13
>
> Rels:
> start end type status
> 1 2 directed ok
> 1 3 directed ok
> 1 4 directed n.a
> 2 3 directed ok
> 2 5 directed ok
> 2 7 directed ok
> 3 5 directed ok
> 4 6 directed ok
> 4 7 directed ok
> 5 7 directed n.a
> 5 8 directed n.a
> 5 9 directed n.a
> 5 13 directed n.a
> 5 23 directed n.a
> 6 34 directed n.a
> 6 56 directed n.a
>
> Error:
>
> 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
> Using Existing Configuration File
> Exception in thread "main" java.lang.IllegalArgumentException: Bad value
> 'weak' 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.java:215)
> at
> org.neo4j.graphdb.factory.GraphDatabaseSetting$SettingWrapper.apply(GraphDatabaseSetting.java: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)
>
> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
neo4j+un...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>