簡體   English   中英

Neo4j apoc不會導出

[英]Neo4j apoc will not export

我知道那里有數百個問題(我在問這個問題之前一直在尋找。)因為無論我嘗試什么,Neo4j 都不會運行 APOC 導出功能。

CALL apoc.export.graphml.all('/tmp/complete-graph.graphml', {useTypes:true, storeNodeIds:false})

Failed to invoke procedure : Caused by: java.lang.RuntimeException: Export to files not enabled, please set apoc.export.file.enabled=true in your neo4j.conf

這是我的 neo4j.conf 文件的底部:

dbms.security.procedures.unrestricted=apoc.*
dbms.directories.plugins=/var/lib/neo4j/plugins`
apoc.export.file.enabled=true
apoc.import.file.enabled=true

這是/var/lib/neo4j/plugins的內容:

-rwxr-xr-x 1 neo4j adm 15949360 Apr 16 2020 apoc-3.5.0.11-all.jar

我在 Ubuntu 18 上運行 v 3.5。

所以事實證明插件是重復的,我也需要白名單:

dbms.security.procedures.unrestricted=apoc.*
dbms.security.procedures.whitelist=*
apoc.import.file.enabled=true
apoc.export.file.enabled=true

除此之外,我設置dbms.directories.import=/然后允許我導出以及創建 graph.xml 文件並在 neo4j 可以寫入之前對其設置權限。

如果有疑問 - 為它祈禱。 上帝總是回答。

這仍然沒有解決它。 在 DBMS 5.2 中使用 Neo4j

//EXPORT til CYPHER CALL apoc.export.cypher.all("all-plain.cypher", { format: "plain", useOptimizations: {type: "UNWIND_BATCH", unwindBatchSize: 20} }) YIELD file, batches, source, format, nodes, relationships, properties, time, rows, batchSize RETURN file

給出相同的錯誤: 在此處輸入圖像描述

並且此 DBMS 的 neo4j.conf 文件添加了以下內容: 在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM