Cypher query, Load CSV not responding in Neo4j 2.1

对着背影说爱祢 提交于 2019-12-10 18:44:05

问题


While try to upload the data to Neo4j 2.1 through LOAD CSV command, its not responding and even doesn't throw any exception while try with invalid path. Any comments

LOAD CSV FROM "file:///d:/import.csv" AS csvLine
MERGE (p:Person { name: csvLine[0]})
MERGE (m:Movie { title: csvLine[1]})  
CREATE (p)-[:PLAYED { role: csvLine[2]}]->(m)


回答1:


Sorry to hear you're having issues. Please refresh the browser's cache to use the LOAD CSV statement.

This is a bug in the milestone release. I've opened an issue on GitHub: https://github.com/neo4j/neo4j/issues/2215

When upgrading Neo4j 2.0.1 to 2.1.0-M01 the JS file containing the client-side validation for Cypher is returning as a cached version of the previous release. Because of this, users trying to use the LOAD CSV feature by either start word "LOAD" or "USING" will receive a red alert that says ":help". To prevent this issue, the reference URI of the JS files should contain a query string key-value pair "...?version=2.1.0-M06" or the file name should be changed for each release to include the release version.

Current work-around: Refresh your browser cache for the page (CTRL+F5 on Windows, SHIFT+F5 on Mac OSX).




回答2:


When loading on Windows user file:C:/whatever (note no // or /// forward slahes after the 'file' protocol...

http://www.neo4j.org/graphgist?d788e117129c3730a042



来源:https://stackoverflow.com/questions/22755289/cypher-query-load-csv-not-responding-in-neo4j-2-1

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!