On Saturday, May 24, 2014 5:24:18 PM UTC-7, Michael Hunger wrote:
>
> use this as header for your rels file
>
> ns_name:string:Xns_name ns_name:string:Xns_name type name:string:Xname
> ns:string:Xns ns_name:string:Xns_name
>
> it uses the first part (ns_name) for the lookup.
>
Thanks! That makes sense and it seems to have improved things. However, I
still get an error:
$ time import.sh test.db ../nodes.csv ../rels.csv
Usage: Importer data/dir nodes.csv relationships.csv [node_index ...
Using: Importer batch.properties test.db ../nodes.csv ../rels.csv
Using Existing Configuration File
Importing 7315 Nodes took 1 seconds
Total import time: 3 seconds
Exception in thread "main" java.util.NoSuchElementException:
More than one element in org.mapdb.Bind$5$1@48aa00ec.
First element is '1' and the second element is '2'
at org.neo4j.helpers.collection.IteratorUtil.single(IteratorUtil.java:340)
at
org.neo4j.helpers.collection.IteratorUtil.singleOrNull(IteratorUtil.java:130)
at
org.neo4j.helpers.collection.IteratorUtil.singleOrNull(IteratorUtil.java:288)
at
org.neo4j.batchimport.index.LongIterableIndexHits.getSingle(LongIterableIndexHits.java:37)
at
org.neo4j.batchimport.index.LongIterableIndexHits.getSingle(LongIterableIndexHits.java:13)
at org.neo4j.batchimport.Importer.lookup(Importer.java:130)
at org.neo4j.batchimport.Importer.id(Importer.java:183)
at org.neo4j.batchimport.Importer.importRelationships(Importer.java:147)
at org.neo4j.batchimport.Importer.doImport(Importer.java:232)
at org.neo4j.batchimport.Importer.main(Importer.java:83)
My guess is that it doesn't like the fact that the two ns_name lookups get
different values.
However, that doesn't tell me what I need to do to fix it...
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.