neo4j-admin导入csv时报错
发布于 3 年前 作者 xiaoyaopeng01 533 次浏览 来自 问答

neo4j-admin import --database=test1.db --nodes=node.csv C:\Program Files (x86)\neo4j-community-4.1.10>neo4j-admin import --database=test1.db --nodes import/node.csv java.io.UncheckedIOException: java.nio.file.AccessDeniedException: C:\Program Files (x86)\neo4j-community-4.1.10\import.report at org.neo4j.importer.ImportCommand.execute(ImportCommand.java:258) at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:69) at org.neo4j.cli.AbstractCommand.call(AbstractCommand.java:35) at picocli.CommandLine.executeUserObject(CommandLine.java:1783) at picocli.CommandLine.access$900(CommandLine.java:145) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2150) at picocli.CommandLine$RunLast.handle(CommandLine.java:2144) at picocli.CommandLine$RunLast.handle(CommandLine.java:2108) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:1975) at picocli.CommandLine.execute(CommandLine.java:1904) at org.neo4j.cli.AdminTool.execute(AdminTool.java:87) at org.neo4j.cli.AdminTool.main(AdminTool.java:65) Caused by: java.nio.file.AccessDeniedException: C:\Program Files (x86)\neo4j-community-4.1.10\import.report at java.base/sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:89) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:103) at java.base/sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:108) at java.base/sun.nio.fs.WindowsFileSystemProvider.newByteChannel(WindowsFileSystemProvider.java:235) at java.base/java.nio.file.spi.FileSystemProvider.newOutputStream(FileSystemProvider.java:478) at java.base/java.nio.file.Files.newOutputStream(Files.java:220) at org.neo4j.io.fs.DefaultFileSystemAbstraction.openAsOutputStream(DefaultFileSystemAbstraction.java:78) at org.neo4j.importer.CsvImporter.doImport(CsvImporter.java:144) at org.neo4j.importer.ImportCommand.execute(ImportCommand.java:250) … 11 more

1 回复

AccessDeniedException 权限问题,把 csv放到D盘下试试

回到顶部