Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-18-2019 08:04 AM
Hi Team,
I have apoc plugins - apoc-3.5.0.1-all.jar in neo4j DB. But when i run below Cypher query getting below error
match(n {path:'/PROJECTS/DATA/SERIAL/MORT/PUB_MORT_SVCG/ARCH/CAPDW_FW_LPS_MONTHLY_2520'})
with (n)
call apoc.path.expandConfig(n,{relationshipFilter: "TO",
labelFilter: "",
uniqueness: "",
minLevel:1, maxLevel:5,
filterStartNode:false}) yield path as path
return path
Limit 100;
Neo.ClientError.Procedure.ProcedureNotFound: There is no procedure with the name apoc.path.expandConfig
registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
03-18-2019 08:10 AM
I've not used expandConfig, but it can be replaced for your query ?
MATCH p=(n)-[*..5]-() WHERE n.path='/PROJECTS/DATA/SERIAL/MORT/PUB_MORT_SVCG/ARCH/CAPDW_FW_LPS_MONTHLY_2520'
RETURN p LIMIT 100
03-18-2019 08:14 AM
This is working fine.. I need to skip any nodes.. need to use apoc expand config in label filter. So that will have leverage to skip nodes in between.
But if apoc.path.expandConfig is missing means - I missed something during neo4j installation?
03-18-2019 08:19 AM
The jar should be in the plugins
folder. Where did you download the jar from, and what version of Neo4j are you using with this?
03-18-2019 08:38 AM
yea .. I have inside apoc jar file inside plugins folder. Neo4j 3.5
03-18-2019 08:19 AM
I've tried with MovieGraph data and apoc.path.expandConfig works..
Neo4j Desktop 1.1.15 + Neo4j 3.5.2 + APOC 3.5.01
MATCH (n:Person) WHERE n.name='Tom Hanks'
WITH n
CALL apoc.path.expandConfig(n, {relationshipFilter: "ACTED_IN", labelFilter: "", uniqueness: "", minLevel: 1, maxLevel: 5, filterStartNode: false}) yield path
RETURN path
LIMIT 3
03-18-2019 08:23 AM
I have apoc jar file in plugins.. I am running using docker by below commands
sudo docker run -d
--publish=7474:7474
--publish=7473:7473
--publish=7687:7687
--volume=/mnt/nvme1n1/neo4j/neo4j/logs:/logs
--volume=/mnt/nvme1n1/neo4j/neo4j/data:/data
--volume=/mnt/nvme1n1/neo4j/neo4j/conf:/conf
--volume=/mnt/nvme1n1/neo4j/neo4j/plugins:/plugins
neo4j:3.5
03-18-2019 08:34 AM
Like this i need to add anything in neo4j.conf
dbms.security.procedures.unrestricted=apoc.trigger.,apoc.meta.
Can you please check your neo4j.conf and let me know? it will be very helpful
Thanks,
Nithin.
03-18-2019 08:41 AM
My config is like this. It may helps.
dbms.security.procedures.unrestricted=apoc.*
03-18-2019 08:55 AM
It didn't help after adding in config file
03-18-2019 12:52 PM
I have noticed jar file doesn't have full rights.. Once i gave full rights.. issue resolved
Thanks,
Nithin.
All the sessions of the conference are now available online