Cypher Neo4j Couldn't load the external resource

前端 未结 15 1760
谎友^
谎友^ 2021-02-07 05:09

In a Windows environment, I\'m trying to load a .csv file with statement:

LOAD CSV WITH HEADERS FROM \"file:///E:/Neo4j/customers.csv\" AS row

相关标签:
15条回答
  • 2021-02-07 05:48
    1. Set the Property "dbms.directories.import=import"
    2. Create folder 'import' explicitly at "/Users/User/Documents/Neo4j/default.graphdb/" because pre-defined directory did not exist entirely
    3. place the csv data set here in the import folder
    4. then run the code like - LOAD CSV FROM "file:///C:/customers.csv" AS row

    In addition after you run the line, you can analyze what is going wrong in the code section to get a better understanding

    0 讨论(0)
  • 2021-02-07 05:49

    For the ubuntu system, I placed the file in /usr/lib/neo4j which helped me solved the issue. On every other location, i tried giving full permissions(777) but the problem remains the same. After going through another stackoverflow post, i realized that the file should be kept in neo4j directory.

    0 讨论(0)
  • 2021-02-07 05:51

    For macOS Mojave v 10.14.5

    Actually, I had to uncomment dbms.directories.import=import from ~/Library/Application Support/Neo4j Desktop/Application/neo4jDatabases/database-e2dd2a9c-d450-4639-861b-1e7e42b56b31/installation-3.5.5/conf/neo4j.conf and restart the service. Then it worked. All files has to be placed in import directory.

    Run command LOAD CSV WITH HEADERS FROM 'FILE:/<yourCSV>.csv' as l return l

    0 讨论(0)
提交回复
热议问题