我一直试图在最新版本的Neo4j 3.1.0和APOC 3.1.0.3中运行apoc.load.csv
过程。Neo4j 3.1.0 apoc.load.csv问题
CALL apoc.periodic.iterate('CALL apoc.load.csv("file:///data.csv",
{sep:",", header:TRUE}) yield map ','
with {map} as map MATCH (t:Tweet{id:toFloat(map.tweet_id)})
SET t.clean_text = map.clean_text,
t.positive_score = toInt(map.nb_positive),
t.negative_score = toInt(map.nb_negative),
t.sentiment_score = toInt(map.score)',
{batchSize:5000, parallel:true})
Error: Failed to invoke procedure
apoc.periodic.iterate
: Caused by: org.neo4j.graphdb.QueryExecutionException: Failed to invoke procedureapoc.load.csv
: Caused by: java.lang.RuntimeException: Import from files not enabled, please set apoc.import.file.enabled=true in your neo4j.conf
我已经尝试过运行apoc.load.csv
片,我仍然得到同样的错误告诉我的语句添加到我的neo4j.conf
文件,我有。我甚至重新启动了我的电脑。
我能够在Neo4j 3.0.6和APOC 3.0.4.1中成功运行这个完全相同的语句,但是自升级以来它不起作用。