What neo4j version are you doing this on, Chen?
Cheers,
/peter neubauer
Neo4j 1.8.RC1 "Vindeln Vy" -
http://blog.neo4j.org/2012/09/neo4j-18rc1-really-careful-ftw.html
G: neubauer.peter
S: peter.neubauer
P: +46 704 106975
L:
http://www.linkedin.com/in/neubauer
T: @peterneubauer
Wanna learn something new? Come to @graphconnect.
On Sun, Sep 23, 2012 at 7:38 PM, bin chen <
binchen...@gmail.com> wrote:
> Hi, I got the following error while using batchinserter. It works well for a
> small set but does not work for a larger test set consisting of millions of
> relationships. I suspected it has something to do with the memory, but
> havenot fixed it. Any hint would be appreciated.
>
> Exception in thread "main"
> org.neo4j.kernel.impl.nioneo.store.UnderlyingStorageException: Unable to
> close store D:\....\data\test\neo4j-store1\neostore.relationshipstore.db
> at
> org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.close(CommonAbstractStore.java:699)
> at
> org.neo4j.kernel.impl.nioneo.store.RelationshipStore.close(RelationshipStore.java:79)
> at
> org.neo4j.kernel.impl.nioneo.store.NeoStore.closeStorage(NeoStore.java:231)
> at
> org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.close(CommonAbstractStore.java:634)
> at
> org.neo4j.unsafe.batchinsert.BatchInserterImpl.shutdown(BatchInserterImpl.java:700)
> at com.linkingpilot.app.BatchImporterImpl.finish(BatchImporterImpl.java:134)
> at com.linkingpilot.app.ImporterImpl.buildNewDb(ImporterImpl.java:47)
> at com.linkingpilot.app.ImporterTest.main(ImporterTest.java:35)
> Caused by: java.io.IOException: The requested operation cannot be performed
> on a file with a user-mapped section open
> at sun.nio.ch.FileChannelImpl.truncate0(Native Method)
> at sun.nio.ch.FileChannelImpl.truncate(FileChannelImpl.java:340)
> at
> org.neo4j.kernel.impl.nioneo.store.CommonAbstractStore.close(CommonAbstractStore.java:669)
> ... 7 more
>
> Thanks.
>
> --
>
>