These are accompanying notes for the getting started with neo4j batch importer video.
-
Download neo4j - I used version 1.9.1 in the video but any of the 1.9.* series should be fine.
-
Create nodes and relationships files. I ran the following commands:
bundle exec ruby generate-nodes.rb bundle exec ruby generate-relationships.rb
which uses bundler - a ruby tool used to manage dependencies. This step can be replaced with your own CSV generating code.
./neo4j-community-1.9.1/bin/neo4j stop
curl http://dist.neo4j.org.s3.amazonaws.com/jexp/batch-import/batch-import-full-1.9.jar -o batch-import-full-1.9.jar
java -jar batch-import-full-1.9.jar
head -n 10 nodes.tsv
head -n 10 relationships.tsv
java -jar batch-import-full-1.9.jar neo4j-community-1.9.1/data/graph.db nodes.tsv relationships.tsv
./neo4j-community-1.9.1/bin/neo4j start
You can learn more about the batch importer from its github page.