Comments (5)
Comment by conker84
Wednesday Jul 28, 2021 at 09:29 GMT
@akshaymhetre can you please try with?:
apoc_initializer_cypher_0=CALL apoc.cypher.runSchemaFile ("file:///schema.cypher")
apoc_initializer_cypher_1=CALL apoc.cypher.runFile ("file:///sample.cypher")
Looking forward to hearing from you!
from apoc.
Comment by aowss
Wednesday Jul 28, 2021 at 12:10 GMT
Sorry @conker84 , i am confused. I might not have understood your comment correctly.
Are you suggesting to just drop the leading NEO4J_
part?
That's strange because :
- all the docs ( including some of your comments on other issues ) mention that prefix
- all the other environment variables seem to start with that prefix
- the error message
unknown settings: apoc.initializer.cypher.0
seems to have stripped that prefix
from apoc.
Comment by conker84
Wednesday Jul 28, 2021 at 14:03 GMT
Sorry @conker84 , i am confused. I might not have understood your comment correctly.
Are you suggesting to just drop the leadingNEO4J_
part?That's strange because :
- all the docs ( including some of your comments on other issues ) mention that prefix
- all the other environment variables seem to start with that prefix
- the error message
unknown settings: apoc.initializer.cypher.0
seems to have stripped that prefix
Yes @aowss you understood correctly, we leverage under-the-hood Apache Configuration that should be capable of recognising that kind of env variable and configure APOC properly.
I did a mistake in the copy and paste in the previous comment, use this env variable:
apoc.initializer.cypher.0=CALL apoc.cypher.runSchemaFile ("file:///schema.cypher")
apoc.initializer.cypher.1=CALL apoc.cypher.runFile ("file:///sample.cypher")
As I said Apache Configuration should be capable of understanding these.
Please lemme know
from apoc.
Comment by aowss
Wednesday Jul 28, 2021 at 14:50 GMT
Thanks for your help,
Your solution seems to be working ( i am going to look more closely ).
But it makes the configuration inconsistent in terms of naming ( and the docs need to be updated )
environment:
NEO4J_AUTH: ${NEO4J_USER}/${NEO4J_PASSWORD}
NEO4J_dbms_security_procedures_unrestricted: "apoc.*"
NEO4J_dbms_logs_debug_level: DEBUG
NEO4J_apoc_import_file_enabled: "true"
apoc.initializer.cypher.0: "CALL apoc.cypher.runSchemaFile('constraints.cypher')"
apoc.initializer.cypher.1: "CALL apoc.cypher.runFiles(['nodes.cypher', 'relationships.cypher'])"
NEO4JLABS_PLUGINS: '["apoc"]'
from apoc.
Comment by conker84
Wednesday Jul 28, 2021 at 15:51 GMT
We definitely need to update the docs, I'm sorry I was sure that we did it in the past. I'll change the title of the issue
from apoc.
Related Issues (20)
- more export formats HOT 1
- using Dijkstra with calculated properties HOT 3
- having periodic.iterate allow substitutions from parameters ala `#{row.type}` HOT 1
- Request: apoc.path.expand. Option to assume unlisted labels are whitelisted HOT 3
- support file-contents/binary data for load.csv/json/xml/cypher
- Evaluate `ProcedureCallContext` to optimize heavy procedures
- apoc.coll.different() returning false when it should return true HOT 3
- Failed to read config `/var/lib/neo4j/conf/neo4j.conf`: Unrecognized setting. No declared setting with name: `apoc.export.file.enabled` HOT 5
- difference between the maven central apoc-core jar and the one on the release page for version 5.x HOT 8
- Support apoc.dump.jdbc HOT 4
- Unable to find 4.x versions of APOC when running through docker HOT 9
- Parameter to make apoc.periodic.iterate() raise an error when any batch fails HOT 8
- The missing constraint error message for apoc.import.json() is incorrect HOT 1
- apoc.path.subgraphAll returns more relationships HOT 2
- Adding apoc.import.file.enabled=true would prevent db from starting HOT 9
- Aggregation function `toMap` HOT 1
- load.xml can't load entity reference. HOT 4
- apoc.export.cypher.all exports unique indexes as node keys HOT 3
- Docs Example Bug apoc.load.json docs search demo doesn't exist anymore
- apoc.nlp.aws.entities.graph and apoc.nlp.aws.entities.stream not returning results or debug information HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apoc.