Here is the code that loads products for the example Northwind database.
LOAD CSV WITH HEADERS FROM "http://data.neo4j.com/northwind/products.csv" AS row
CREATE (n:Product)
SET n = row,
n.unitPrice = toFloat(row.unitPrice),
n.unitsInStock = toInteger(row.unitsInStock), n.unitsOnOrder = toInteger(row.unitsOnOrder),
n.reorderLevel = toInteger(row.reorderLevel), n.discontinued = (row.discontinued <> "0")
My problem is that if I copy the csv file to mydomain.local, and modify the FROM part of the statement to read http://mydomain.local/products.csv, it won't load. I get a "Couldn't load external resource .." error.
Mydomain.local is served from a virtual machine on my laptop. It is also where neo4j is being served from. I have modified /etc/hosts to point the domain name to the ip address.
I can put the mydomain url in a web browser bar and read the csv no problem, so why can't neo4j find it there?