graph - Exception importing data into neo4j using batch-import -


i running neo-4j 1.8.2 on remote unix box. using jar (https://github.com/jexp/batch-import/downloads).

nodes.csv same given in example:

name    age works_on michael 37  neo4j selina  14 rana    6 selma   4 

rels.csv this:

   start    end type    since   counter:int 1   2   father_of   1998-07-10  1 1   3   father_of   2007-09-15  2 1   4   father_of   2008-05-03  3 3   4   sister_of   2008-05-03  5 2   3   sister_of   2007-09-15  7 

but getting exception :

using existing configuration file

total import time: 0 seconds exception in thread "main" java.util.nosuchelementexception         @ java.util.stringtokenizer.nexttoken(stringtokenizer.java:332)         @ org.neo4j.batchimport.importer$data.split(importer.java:156)         @ org.neo4j.batchimport.importer$data.update(importer.java:167)         @ org.neo4j.batchimport.importer.importnodes(importer.java:226)         @ org.neo4j.batchimport.importer.main(importer.java:83) 

i new neo4j, checking if importer can save coding effort. great if can point probable mistake. help!

--edit:-- nodes.csv

name    dob city    state   s_id    balance desc    mgr_primary mgr_secondary mgr_tertiary  mgr_name    mgr_status john von    8/11/1928   denver  co  1114-010    7.5 ra  0023-0990   0100-0110   doozman keith   active 

my rels.csv

start   end type    since   status  f_type  f_num 2   1   address_of               1   3   has_account 5   active       4   3   f_of            primary 0111-0230 

hi had issues in past batch import script.

the formating of file must rigorous, means :

  • no spaces not expected, ones see in first line of rels.csv before "start"

  • no multiple spaces in place of tab. if files you've copied here, have 4 spaces instead of on tab, , not going work, script uses tokenizer looking tabs !!!

i had issue because convert tabs 4 spaces, , once understood that, stopped doing csv !


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -