Git Product home page Git Product logo

Comments (5)

neo-technology-build-agent avatar neo-technology-build-agent commented on June 3, 2024

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.

neo-technology-build-agent avatar neo-technology-build-agent commented on June 3, 2024

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.

neo-technology-build-agent avatar neo-technology-build-agent commented on June 3, 2024

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 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

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.

neo-technology-build-agent avatar neo-technology-build-agent commented on June 3, 2024

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.

neo-technology-build-agent avatar neo-technology-build-agent commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.