I'm trying to import a large CSV file into Neo4j 3.x via the Cypher Shell (instead of the Neo4j - Shell) on a macOS dev machine.
The import statements are defined within a cypher script file.
I have set the correct import directory within the conf file as "conf-path for import CSV files".
When I pipe in the command as follows:
cat <path to the Cypher script file> | $NEO4J_HOME/bin/cypher-shell -u user -p password --format auto
the path to the Neo4j App is added upfront when the shell tries to access the CSV files. That leads to a concat path like this:
file:/<path to the Neo4j App/neo4j-community-3.x>/file:<path to the CSV file set within conf>/Import.CSV
and that throws a "Couldn't load the external resource at:..." error
The Cypher Script is loaded correctly because upfront CONSTRAINT commands are executed as intended. The Cypher scripts fails when it tries to access the CSV files with "LOAD_CSV".
Is there any additional setting I have to make to let the Cypher Shell know that it should not add the Neo4j App directory?
I tried to find this in the document without much luck.
Any help is greatly appreciated.
Thanks
Krid