简体   繁体   English

在 grapheneDB 上正确配置图形数据科学插件

[英]Correctly provisioning the graph data science plugin on grapheneDB

I have a graph working fully with the plugin locally in neo4j desktop.我有一个在 neo4j 桌面上本地完全使用插件的图表。 I've replicated everything from this graph in my grapheneDB instance.我已经在我的 grapheneDB 实例中复制了该图中的所有内容。 I can't use the gds procedures as I get the error:当我收到错误时,我无法使用 gds 程序:

gds.proc... 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.

I know to fix this I need to add these two lines to the config/properties file:我知道要解决这个问题,我需要将这两行添加到 config/properties 文件中:

dbms.security.procedures.unrestricted=apoc.*,gds.*
dbms.security.procedures.whitelist=apoc.*,gds.*

I just dont know how to do that on grapheneDB, I've read all the docs I can find.我只是不知道如何在 grapheneDB 上做到这一点,我已经阅读了我能找到的所有文档。

I've tried adding the gds plugin by adding the jar file as just a stored procedure and then also as a server extension with a zip file containing both the jar file and the two config lines mention above in a neo4j-server.properties file.我尝试通过将 jar 文件添加为存储过程,然后将其添加为带有 zip 文件的服务器扩展程序,该文件包含 Z68995FCBF432492D15484D04A9D2AC404j 文件中提到的 Z68995FCBF432492D15484D04A9D2AC404j 文件和上面提到的两个服务器属性行。

When added as a server extension I can tell neo4j hasnt found the gds plugin at all.当添加为服务器扩展时,我可以告诉 neo4j 根本没有找到 gds 插件。 Am I just missing a location in the properties file?我只是缺少属性文件中的位置吗? Or am I missing something obvious in the stored procedure upload method?还是我在存储过程上传方法中遗漏了一些明显的东西?

Using the dev free tier graphenedb, Neo4j Community Edition 3.5.17 and graph data science 1.1.1使用开发免费层 graphenedb、Neo4j 社区版 3.5.17 和图形数据科学 1.1.1

Thanks谢谢

After a couple of weeks back and forth with graphene support, the config changes have been made.在石墨烯支持来回几周后,配置更改已经完成。 They will be adding support for the GDS plugin as part of their base image soon, but until then you may still need to request that they patch your db for you and add it as a stored procedure.他们将很快添加对 GDS 插件的支持作为其基本映像的一部分,但在此之前,您可能仍需要请求他们为您修补数据库并将其添加为存储过程。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM