java.util.NoSuchElementException: No batch importers found
‎11-05-2022 12:44 PM
Hi, I'm new to neo4j and got a database up on 4.4. I upgraded it to 5.1 and ran into this error importing tsv files. This worked fine under 4.4; I just had to update the syntax. I reduced the tsv files to a single file and single line. csvclean reports no errors. I previously used --delimiter="\t", but that doesn't work here either. Is it maybe just some settting I overlooked??? Thanks!!
import.sh
neo4j-admin database import incremental --delimiter=TAB --force \
--nodes import/neo_hw.tsv
neo_hw.tsv
text:ID orth:string freq:int :LABEL
á [ á,a ] 54 Headword
neo4j m75n ~ $ ./import.sh
Neo4j version: 5.1.0
Importing the contents of these files into /var/lib/neo4j/data/databases/neo4j:
Import mode: all
Nodes:
/var/lib/neo4j/import/neo_hw.tsv
Available resources:
Total machine memory: 5.721GiB
Free machine memory: 1018MiB
Max heap memory : 1.778GiB
Max worker threads: 8
Configured max memory: 485.2MiB
High parallel IO: true
Import error: No batch importers found
Caused by:No batch importers found
java.util.NoSuchElementException: No batch importers found
at org.neo4j.internal.batchimport.IncrementalBatchImporterFactory.lambda$withHighestPriority$1(IncrementalBatchImporterFactory.java:73)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at org.neo4j.internal.batchimport.IncrementalBatchImporterFactory.withHighestPriority(IncrementalBatchImporterFactory.java:73)
at org.neo4j.internal.recordstorage.RecordStorageEngineFactory.incrementalBatchImporter(RecordStorageEngineFactory.java:711)
at org.neo4j.importer.CsvImporter.doImport(CsvImporter.java:214)
at org.neo4j.importer.CsvImporter.doImport(CsvImporter.java:181)
at org.neo4j.importer.ImportCommand$Base.doExecute(ImportCommand.java:380)
at org.neo4j.importer.ImportCommand$Incremental.execute(ImportCommand.java:532)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:78)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:33)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.neo4j.cli.AdminTool.execute(AdminTool.java:91)
at org.neo4j.cli.AdminTool.main(AdminTool.java:79)
WARNING Import failed. The store files in /var/lib/neo4j/data/databases/neo4j are left as they are, although they are likely in an unusable state. Starting a database on these store files will likely fail or observe inconsistent records so start at your own risk or delete the store manually
java.util.NoSuchElementException: No batch importers found
at org.neo4j.internal.batchimport.IncrementalBatchImporterFactory.lambda$withHighestPriority$1(IncrementalBatchImporterFactory.java:73)
at java.base/java.util.Optional.orElseThrow(Optional.java:403)
at org.neo4j.internal.batchimport.IncrementalBatchImporterFactory.withHighestPriority(IncrementalBatchImporterFactory.java:73)
at org.neo4j.internal.recordstorage.RecordStorageEngineFactory.incrementalBatchImporter(RecordStorageEngineFactory.java:711)
at org.neo4j.importer.CsvImporter.doImport(CsvImporter.java:214)
at org.neo4j.importer.CsvImporter.doImport(CsvImporter.java:181)
at org.neo4j.importer.ImportCommand$Base.doExecute(ImportCommand.java:380)
at org.neo4j.importer.ImportCommand$Incremental.execute(ImportCommand.java:532)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:78)
at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:33)
at picocli.CommandLine.executeUserObject(CommandLine.java:1953)
at picocli.CommandLine.access$1300(CommandLine.java:145)
at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2358)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2352)
at picocli.CommandLine$RunLast.handle(CommandLine.java:2314)
at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2179)
at picocli.CommandLine$RunLast.execute(CommandLine.java:2316)
at picocli.CommandLine.execute(CommandLine.java:2078)
at org.neo4j.cli.AdminTool.execute(AdminTool.java:91)
at org.neo4j.cli.AdminTool.main(AdminTool.java:79)
```
‎11-13-2022 10:48 AM
oh well.... I was able to do this with cypher instead. Maybe this is no longer supported in the community version???
‎01-17-2023 02:14 PM
I am facing the same problem
Is incremental import supported in the community version?
Getting
java.util.NoSuchElementException: No batch importers found
at org.neo4j.internal.batchimport.IncrementalBatchImporterFactory.lambda$withHighestPriority$1(IncrementalBatchImporterFactory.java:73)