我在使用APOC和Graph Algorithms插件时遇到了一些问题。
我按照说明将.jars放入{NEO4j_HOME}/plugins中,并且还更改了我的{NEO4j_HOME}/conf/neo4j.conf中的设置

dbms.directories.data=/Users/mlo/neo4j-community-3.3.1/data
dbms.directories.plugins=/Users/mlo/neo4j-community-3.3.1/plugins
dbms.directories.certificates=/Users/mlo/neo4j-community-3.3.1/certificates
dbms.directories.logs=/Users/mlo/neo4j-community-3.3.1/logs
dbms.directories.lib=/Users/mlo/neo4j-community-3.3.1/lib
dbms.directories.run=/Users/mlo/neo4j-community-3.3.1/run

dbms.security.auth_enabled=false
dbms.security.procedures.unrestricted=algo.*
dbms.security.procedures.unrestricted=apoc.*

一些程序可以工作。
CALL apoc.help('dijkstra')
CALL algo.list()

但是,大多数存储过程根本不起作用。
Neo.ClientError.Procedure.ProcedureRegistrationFailed
algo.unionFind is unavailable because it is sandboxed and has dependencies outside of the sandbox. Sandboxing is controlled by the dbms.security.procedures.unrestricted setting. Only unrestrict procedures you can trust with access to database internals.
algo.pageRank is unavailable because it is sandboxed and has dependencies outside of the sandbox. Sandboxing is controlled by the dbms.security.procedures.unrestricted setting. Only unrestrict procedures you can trust with access to database internals.

有人可以指出我的设置哪里出问题了吗?谢谢。

最佳答案

更改这些行:

dbms.security.procedures.unrestricted=algo.*
dbms.security.procedures.unrestricted=apoc.*

至:
dbms.security.procedures.unrestricted=algo.*,apoc.*

并重新启动Neo4j服务。

10-07 22:42