Couldn't load the external resource at 

Neo.ClientError.Statement.ExternalResourceFailed: Couldn't load the external resource at: 
Neo.ClientError.Statement.ExternalResourceFailed: Invalid URL

以上是路径问题的常见错误提示,解决参考:

1. 将BussinessObj.csv放入配置文件neo4j.conf中dbms.directories.import这个配置项对应的目录下,

必须在路径上加上file:/或者file:// 这个非常重要:
如果是liunx系统必须加入file:/作为前缀,

windows系统加入LOAD CSV FROM "file://c:/location/local/my.csv"

 

以下是一个liunx示范:

比如配置项dbms.directories.import=/var/lib/neo4j/import, 要导入的文件BussinessObj.csv放入/var/lib/neo4j/import目录下,然后按如下方式导入:

 

1. 打开 浏览器,输入http://IP:7474/browser/,输入以下命令执行导入即可,注意路径是file:/你的文件名,路径中不要包含dbms.directories.import的配置路径/var/lib/neo4j/import


LOAD CSV WITH HEADERS FROM "file:/BussinessObj.csv" AS line
MERGE (b:BussinessObj{name:line.name,coreFlag:line.coreFlag,description:line.description})