cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! Site migration is underway. Phase 2: migrate recent content

Export CSV to S3 fails with "No such file or directory"

I've been trying to Export to S3 with the multiple options presented in APOC Export CSV docs like:

s3://endpoint:port/bucket/key?accessKey=accessKey&secretKey=secretKey

Example :

CALL apoc.export.csv.query(
    "MATCH (a:Person)  RETURN a.name",
    "s3://s3.eu-west-1.amazonaws.com/<BUCKET_NAME>/graph-export/all_nodes.csv?accessKey=<MY_ACCESS_KEY>&secretKey=<MY_SECRET_KEY>",
    {}
)

All the URL formats fail with following error:

Failed to invoke procedure `apoc.export.csv.query`: Caused by: java.io.FileNotFoundException:  (No such file or directory)

Is there something I'm missing here?
I couldn't find any details except for the linked doc about Exporting to S3 in the Neo4j Community/Github Repos/Google.

Neo4j Version: Neo4j Community Server 4.2.1

3 REPLIES 3

dominicvivek06
Graph Fellow

Does the IAM user have write and read permission on the bucket ?

Yes, I'm able to write to the bucket using awscli.
I was more concerned about the S3 URL formation. Since that is one of the differences between the query and the awscli.

Hi, I have the same problem. Were you able to solve? If so, in what way?