python文件的操作(python基础学习8)

Java直接内存对齐(Memory Alignment)

  返回  

实体和关系导入Neo4j过程

2021/8/21 19:18:09 浏览:

一、要在neo4j路径下的bin目录里打开命令行;
二、一开始用neo4j-admin import --nodes D:\neo4jdata\all_entity.csv --relationships D:\neo4jdata\all_roles.csv报错:
IMPORT FAILED in 57ms.
Data statistics is not available.
Peak memory usage: 0.00 B
Detected field which spanned multiple lines for an import where --multiline-fields=false. If you know that your input data include fields containing new-line characters then import with this option set to true.
Caused by:ERROR in input
data source: BufferedCharSeeker[source:D:\neo4jdata\all_entity.csv, position:20577, line:82]
in field: name:string:2
for header: [entity:ID, name:string, :LABEL, :IGNORE, :IGNORE]
raw field value: e82
original error: At D:\neo4jdata\all_entity.csv @ position 20577 - Multi-line fields are illegal in this context and so this might suggest that there’s a field with a start quote, but a missing end quote. See D:\neo4jdata\all_entity.csv @ position 20577.

查看资料后加上了针对new-line的参数,运行neo4j-admin import --multiline-fields=true --nodes D:\neo4jdata\all_entity.csv --relationships D:\neo4jdata\all_roles.csv仍然报错,说实体文件中有重复的ID–security,于是发现文件中有一些错误数据,处理之后再次运行导入成功。
三、一开始改完实体文件运行时报错说roles文件有一行的TYPE是空,没有改好这块,但重开命令行以后又试了一下上述命令就导入成功了,不知道roles里的错误怎么解决了。

联系我们

如果您对我们的服务有兴趣,请及时和我们联系!

服务热线:18288888888
座机:18288888888
传真:
邮箱:888888@qq.com
地址:郑州市文化路红专路93号