Neo
Neo

Reputation: 4478

How to load csv file from hdfs into neo4j database?

I am using

LOAD CSV FROM 'hdfs://myfolder/docs/csv/name.csv'

but i get error : Invalid URL 'hdfs://myfolder/docs/csv/name.csv': unknown protocol: hdfs.

Is there any way to load csv from hdfs into neo4j. Thanks

Upvotes: 3

Views: 711

Answers (1)

Tom Geudens
Tom Geudens

Reputation: 2656

At this time that is not possible :

CSV files can be stored on the database server and are then accessible using a file:/// URL. Alternatively, LOAD CSV also supports accessing CSV files via HTTPS, HTTP, and FTP.

As per the documentation at http://neo4j.com/docs/developer-manual/current/cypher/clauses/load-csv/.

You may be able to expose your hdfs filesystem over http (and then use a http:// url) but otherwise ... no.

Hope this helps.

Regards, Tom

Upvotes: 3

Related Questions