- 部署方式(分布式 / 单机 / Docker / DBaaS):单机,三节点
使用spark writer 从neo4j 导入nebula时,出现错误(多次导入都错,raft leader没有切换):
ERROR AsyncGraphClientImpl:139 - execute error: Get UUID Failed
命令:
spark-submit --class com.vesoft.nebula.tools.importer.Exchange --master "local" exchange-1.0.1.jar -c neo4j_nebula.conf
neo4j数据一个label下面的所有顶点,大概4000w+,vid是字符串类型,nebula这边vid使用uuid转化。
neo4j_nebula.conf
tags: [
# Loading tag from neo4j
{
name: test
type: {
source: neo4j
sink: client
}
server: "bolt://xxx:7687"
user: xxx
password: xxx
exec: "match (n:test) return n.vid as vid order by (n.vid)"
fields: [vid]
nebula.fields: [vid]
vertex: vid
vertex: {
field: vid
policy: "uuid"
}
partition: 10
batch: 1000
check_point_path: /tmp/test
}
]
错误日志