如何导入csv文件到neo4j NumberFormatException [英] how to import csv file into neo4j NumberFormatException

查看:1076
本文介绍了如何导入csv文件到neo4j NumberFormatException的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已按照 maxdemarzi 的步骤操作。我使用了此示例的csv数据。
但是,执行此命令时出现此错误。

I have followed steps of maxdemarzi. And i took the csv datas of this example. However, it took this error when execute this command.

java -server -Dfile.encoding=UTF-8 -Xmx4G -jar batch-import-jar-with-dependencies.jar neo4j/data/graph.db BeerNodes.csv BeerRelationships.csv

Usage: Importer data/dir nodes.csv relationships.csv [node_index node-index-name
 fulltext|exact nodes_index.csv rel_index rel-index-name fulltext|exact rels_ind
ex.csv ....]
Using: Importer neo4j/data/graph.db BeerNodes.csv BeerRelationships.csv

Using Existing Configuration File

Importing 2351 Nodes took 0 seconds

Total import time: 2 seconds
Exception in thread "main" java.lang.NumberFormatException: For input string: "1
,10000,isa"
        at java.lang.NumberFormatException.forInputString(Unknown Source)
        at java.lang.Long.parseLong(Unknown Source)
        at java.lang.Long.parseLong(Unknown Source)
        at org.neo4j.batchimport.Importer.id(Importer.java:195)
        at org.neo4j.batchimport.Importer.id(Importer.java:163)
        at org.neo4j.batchimport.Importer.importRelationships(Importer.java:129)

        at org.neo4j.batchimport.Importer.doImport(Importer.java:214)
        at org.neo4j.batchimport.Importer.main(Importer.java:78)

任何建议?

推荐答案

转换您的csv文件以使用 TAB

Convert your csv files to use TAB as field separator.

这篇关于如何导入csv文件到neo4j NumberFormatException的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆