Problem installing graph algoritms


(Mirto Busico) #1

SOLVED

In neo4j.conf the correct syntax is:

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

Hi all,
I'm trying to install graph algoritms plugin in a neo4j 3.5.1 community.

Seems that there is some problem with the documentation at

https://neo4j.com/docs/graph-algorithms/3.5/introduction/

I tried to whitelist and unrestrict algo procedures adding to neo4j.conf these lines:

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

But I receive a lot of errors like:

2019-01-11 17:43:01.543+0000 WARN [o.n.k.i.p.Procedures] The function 'algo.version' is not on the whitelist and won't be loaded.
2019-01-11 17:43:01.545+0000 WARN [o.n.k.i.p.Procedures] The procedure 'algo.unionFind.forkJoin' is not on the whitelist and won't be loaded.
2019-01-11 17:43:01.545+0000 WARN [o.n.k.i.p.Procedures] The procedure 'algo.unionFind.forkJoin.stream' is not on the whitelist and won't be loaded.
2019-01-11 17:43:01.550+0000 WARN [o.n.k.i.p.Procedures] The procedure 'algo.randomWalk.stream' is not on the whitelist and won't be loaded.
2019-01-11 17:43:01.566+0000 WARN [o.n.k.i.p.Procedures] The procedure 'algo.betweenness.sampled.stream' is not on the whitelist and won't be loaded.

And, from the browser the command

CALL algo.list()

gives the error:

There is no procedure with the name `algo.list` registered for this database instance.

How can I install and enable Graph Algoritms?

Update: the names of packages installed and the framework

Operating system: Kubuntu 18.04.1
Java version: java-8-openjdk-amd64
neo4j package: neo4j-community-3.5.1-unix.tar.gz
apoc package: apoc-3.5.0.1-all.jar
graph package: graph-algorithms-algo-3.5.0.1.jar

(Anaelle Clary) #2

Hello,
I'm facing some problems to settle some algo with the APOC. I'm using Neo4j 3.5.3 and Apoc 3.5.0.1.

I have settled the unrestricted and whitelist patterns in the neo4j.conf as written above. I can use in the web interface some apoc.algo such as cliques, dijkstra, pageRank but I cannot find the betweenness, centrality and a lot of others.
I have also noticed that there is a new algo implemented in Apoc named 'Louvain' and will also be interested to use it.

Do you know what could be the problem not seeing all the existing procedures ?
Thank you in advance for your help
Anaelle


(Mirto Busico) #3

Sorry to be late.
I don't know if this can help you; but here is my working configuration

the names of packages installed and the framework

Operating system: Kubuntu 18.04.1
Java version: java-8-openjdk-amd64
neo4j package: neo4j-community-3.5.1-unix.tar.gz
apoc package: apoc-3.5.0.1-all.jar
graph package: graph-algorithms-algo-3.5.0.1.jar

In [where you unpacked neo4j]/conf/neo4j.conf I added the following lines (near 275 line):

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

After a reboot, issuing in the browser the command

CALL algo.list()

gives a list of 71 functions and the first one is

"algo.allShortestPaths.stream"

Hope this helps.

Mirto


(Anaelle Clary) #4

Hello Mirto,
Thank you very much for your reply! You have solved my problem.
As betweenness, centrality algo were in Apoc plugin before, I have missed the information that there is a new plugin only for algorithms!!
Thank you for your help
Anaelle