Neo4j csv cypher import

后端 未结 6 508
小鲜肉
小鲜肉 2020-12-21 15:27

Im trying to import csv files from disk with cypher commands as shown in the tutorial, but Im getting \"Couldn\'t load the external resourse at: externalResourceFailure. Is

相关标签:
6条回答
  • 2020-12-21 15:46

    You have to put the files into the import directory in neo4j.

    0 讨论(0)
  • 2020-12-21 15:51

    it will work if path like this "file:///C:/myfile.csv"

    0 讨论(0)
  • 2020-12-21 16:03

    On mac: create a folder inside the Neo4j directory. Neo4j will install in Documents (by default)

    mkdir /Users//Documents/Neo4j/default.graphdb/import

    Copy your file in this location

    Use it like this

    USING PERIODIC COMMIT LOAD CSV WITH HEADERS FROM "file:///user_list.csv" as row create (:Users {userId: row.USER_ID });

    0 讨论(0)
  • 2020-12-21 16:07

    The Windows and Linux file systems require different file URI schemes for streaming over HTTP. Neo4j's LOAD CSV Cypher clause makes an HTTP web request to the URI of a file and not the file system path.

    For more information on file URI schemes on Windows please take a look at: http://en.wikipedia.org/wiki/File_URI_scheme#Windows_2

    0 讨论(0)
  • 2020-12-21 16:09

    You can also create a folder import into your neo4j installation folder and run a cipher like this

    LOAD CSV WITH HEADERS FROM "file:///yourcsvfile.csv" AS row
    
    0 讨论(0)
  • 2020-12-21 16:12

    take alook at SyntaxException with Neo4j LOAD command

    in the question, step 3, please check if you path to the file is correct on your operating system:

    the syntax for accessing a local file on windows is simply "file:c:/nosql/test/unclaimed.csv" and not file:// as might be inferred from examples on ...

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