2016-12-16 206 views
2

我一直试图在最新版本的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 procedure apoc.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中成功运行这个完全相同的语句,但是自升级以来它不起作用。

回答

2

我认为这可能是一个错误。

如果您在浏览器中点击'星号',然后在'系统'下点击'服务器配置'链接。运行此查询以查看Neo4J认为它具有何种设置。这

部分看起来像:

{ 
     "isIs": "false ", 
     "name": "apoc.export.file.enabled", 
     "description": "Configuration attribute", 
     "type": "java.lang.String", 
     "isReadable": "true", 
     "value": "true", 
     "isWriteable": "false " 
     }, 

这表明该文件导入设置有和格式正确无误。

问题是为什么这不被尊重?这是我已经能够确定面临同样的问题。