neo4j-admin import:导入错误:无法打开存储文件:../ data / database / graph.db / neostore.propertystore.db.index

时间:2017-07-14 20:25:06

标签: java neo4j jvm

我尝试执行以下命令:

$ ../bin/neo4j-admin import --mode csv --    database graph.db --nodes head.csv,file1.csv

但我收到了这个错误:

    Import error: Unable to open store file: ../data/databases/graph.db/neostore.propertystore.db.index
    Caused by:Unable to open store file: ../data/databases/graph.db/neostore.propertystore.db.index
    org.neo4j.kernel.impl.store.UnderlyingStorageException: Unable to open store file: ../data/databases/graph.db/neostore.propertystore.db.index
        at org.neo4j.kernel.impl.store.CommonAbstractStore.checkAndLoadStorage(CommonAbstractStore.java:209)
        at org.neo4j.kernel.impl.store.CommonAbstractStore.initialise(CommonAbstractStore.java:133)
        at org.neo4j.kernel.impl.store.NeoStores.initialize(NeoStores.java:262)
        at org.neo4j.kernel.impl.store.NeoStores.createPropertyKeyTokenStore(NeoStores.java:553)
        at org.neo4j.kernel.impl.store.StoreType$4.open(StoreType.java:65)
        at org.neo4j.kernel.impl.store.StoreType$4.open(StoreType.java:60)
        at org.neo4j.kernel.impl.store.NeoStores.openStore(NeoStores.java:255)
        at org.neo4j.kernel.impl.store.NeoStores.getOrCreateStore(NeoStores.java:300)
        at org.neo4j.kernel.impl.store.NeoStores.<init>(NeoStores.java:144)
        at org.neo4j.kernel.impl.store.StoreFactory.openNeoStores(StoreFactory.java:169)
        at org.neo4j.kernel.impl.store.StoreFactory.openAllNeoStores(StoreFactory.java:133)
        at org.neo4j.unsafe.impl.batchimport.store.BatchingNeoStores.<init>(BatchingNeoStores.java:118)
        at org.neo4j.unsafe.impl.batchimport.store.BatchingNeoStores.batchingNeoStores(BatchingNeoStores.java:189)
        at org.neo4j.unsafe.impl.batchimport.ParallelBatchImporter.getBatchingNeoStores(ParallelBatchImporter.java:272)
        at org.neo4j.unsafe.impl.batchimport.ParallelBatchImporter.doImport(ParallelBatchImporter.java:167)
        at org.neo4j.tooling.ImportTool.doImport(ImportTool.java:510)
        at org.neo4j.tooling.ImportTool.main(ImportTool.java:443)
        at org.neo4j.tooling.ImportTool.main(ImportTool.java:354)
    Caused by: java.io.FileNotFoundException: /mnt/data3/kaushik2/data/databases/graph.db/neostore.propertystore.db.index (Too many open files)
        at java.io.RandomAccessFile.open(RandomAccessFile.java:333)
        at java.io.RandomAccessFile.<init>(RandomAccessFile.java:257)
        at org.neo4j.io.fs.DefaultFileSystemAbstraction.open(DefaultFileSystemAbstraction.java:68)
        at org.neo4j.io.fs.DefaultFileSystemAbstraction.open(DefaultFileSystemAbstraction.java:53)
        at org.neo4j.io.pagecache.impl.SingleFilePageSwapper.<init>(SingleFilePageSwapper.java:152)
        at org.neo4j.io.pagecache.impl.SingleFilePageSwapperFactory.createPageSwapper(SingleFilePageSwapperFactory.java:71)
        at org.neo4j.io.pagecache.impl.muninn.MuninnPagedFile.<init>(MuninnPagedFile.java:135)
        at org.neo4j.io.pagecache.impl.muninn.MuninnPageCache.map(MuninnPageCache.java:362)
        at org.neo4j.kernel.impl.store.CommonAbstractStore.checkAndLoadStorage(CommonAbstractStore.java:182)
        ... 17 more

此命令are here使用的参数和配置。可能是什么原因?

1 个答案:

答案 0 :(得分:0)

您遇到太多打开文件问题。

Document doc = Jsoup.connect("URL").userAgent("Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2228.0 Safari/537.36").timeout(111110).followRedirects(true).execute().parse();
System.out.println(doc.text());

将显示当前限制,并且特定进程占用太多(例如,使用lsof检查)并且您必须启动该过程或者您必须提高限制(具体取决于您的操作系统,但是有许多程序浮动,你应该没有找到一个)。

希望这有帮助, 汤姆