Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-17-2019 02:04 PM
Just installed Neo4j desktop this passed week. I was able to create a graph.db and start it up and browser took me to play screen. Appears I have thing installed correctly.
I've scourged the import documentation and tried several flavors.
Issue:
Unable to successfully complete a bulk load on existing files. (Meaning I had a colleague sent me his exported neo4j database files. To get a jump start.)
neo4j-admin import --f=allfiles.txt (> is my command prompt)
Bulk file: allfiles.txt contains this:
--nodes:Race "race/race_node*.csv"
--nodes:Track "track/tracks.csv"
--nodes:Person "person/person.csv"
--nodes:Team "team/team.csv"
--nodes "race/play_node*.csv"
--nodes:RaceLog "racelog/racelog.csv"
--nodes:Appearance "race/appearance_node*.csv"
--nodes:TeamRace "race/team_race_node*.csv"
--nodes "race/simple_node*.csv"
--relationships "race/simple_relationship*.csv"
--relationships "race/participated*.csv"
--relationships:COMMITTED_ERROR "race/committed_error*.csv"
As you noticed with the *, I have a large number of named files.
Action so far.
0. Deleted grab.db from database folder since this is a new db import.
IMO - acts like it doesn't know how to parse all the commands individually in the file or embedded in the command line.
Anyone can tell me the obvious thing I'm missing.
Solved! Go to Solution.
01-17-2019 03:37 PM
Good call - one .* made the difference. Thank you.
Once file was updated.
--nodes:Race "race/race_node.*.csv"
--nodes:Track "track/tracks.csv"
--nodes:Person "person/person.csv"
--nodes:Team "team/team.csv"
--nodes "race/play_node.*.csv"
--nodes:RaceLog "racelog/racelog.csv"
--nodes:Appearance "race/appearance_node.*.csv"
--nodes:TeamRace "race/team_race_node.*.csv"
--nodes "race/simple_node.*.csv"
--relationships "race/simple_relationship.*.csv"
--relationships "race/participated.*.csv"
--relationships:COMMITTED_ERROR "race/committed_error.*.csv"
neo4j-admin import --f=allfiles.txt (Success!)
01-17-2019 02:17 PM
The file pattern is a regular expression (regexp) so your *
has to be written as .*
or better .+
Not sure about the / in Windows but I guess it should still work.
Btw. you have a "Terminal" screen in your Desktop for each database which gives you\bin\Neo4jAdmin.cmd
(or bat don't recall) directly.
01-17-2019 03:37 PM
Good call - one .* made the difference. Thank you.
Once file was updated.
--nodes:Race "race/race_node.*.csv"
--nodes:Track "track/tracks.csv"
--nodes:Person "person/person.csv"
--nodes:Team "team/team.csv"
--nodes "race/play_node.*.csv"
--nodes:RaceLog "racelog/racelog.csv"
--nodes:Appearance "race/appearance_node.*.csv"
--nodes:TeamRace "race/team_race_node.*.csv"
--nodes "race/simple_node.*.csv"
--relationships "race/simple_relationship.*.csv"
--relationships "race/participated.*.csv"
--relationships:COMMITTED_ERROR "race/committed_error.*.csv"
neo4j-admin import --f=allfiles.txt (Success!)
All the sessions of the conference are now available online