利用aopc创建schema失败

执行neo4j-graph-algorithms的例子,运行以下代码报错: CALL apoc.schema.assert( {Category:[‘name’]}, {Business:[‘id’],User:[‘id’],Review:[‘id’]});

报错信息: Neo.ClientError.Procedure.ProcedureRegistrationFailed apoc.schema.assert 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.

目前已在conf文件设置 dbms.security.procedures.unrestricted=algo.* dbms.security.procedures.unrestricted=apoc.*

请问如何解决?

 

这个问题解决实际上很简单,首先确认在你的conf文件中:

dbms.directories.plugins=plugins

这一行是不是已经注销的,类似

# dbms.directories.plugins=plugins

 接下来在配置apoc和algo的过程中:

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

注意这里需要配置为一行,如果你配置成了两行,类似下面这样就会报 is unavailable because it is sandboxed and has dependencies outside of the sandbox. Sandboxing is controlled by the dbms.security.procedures.unrestricted setting这样的错误。

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

所以你把它放在一行就不会有问题了。 

原文地址:https://blog.csdn.net/qq_32284189/article/details/85004896

转载于:https://www.cnblogs.com/jpfss/p/11607746.html

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值