运行log:
2021/11/26 15:11:43 --- START OF NEBULA IMPORTER ---
2021/11/26 15:11:44 failed to open connection, error: failed to verify client version: verifyClientVersion failed: wrong method name
2021/11/26 15:11:45 --- END OF NEBULA IMPORTER ---
exit status 200
配置文件:
version: v2
description: example
removeTempFiles: false
clientSettings:
retry: 3
concurrency: 10 # number of graph clients
channelBufferSize: 128
space: Baike2
connection:
user: root
password: 123456
address: 10.93.0.237:9169
postStart:
# 配置连接Nebula Graph服务器之后,在插入数据之前执行的一些操作。
commands: |
DROP SPACE IF EXISTS Baike2;
CREATE SPACE IF NOT EXISTS Baike2(vid_type=FIXED_STRING(128));
USE Baike2;
CREATE TAG entity(name string);
CREATE EDGE relation(name string);
# 执行上述命令后到执行插入数据命令之间的间隔。
afterPeriod: 15s
preStop:
# 配置断开Nebula Graph服务器连接之前执行的一些操作。
commands: |
logPath: ./err/test.log
files:
- path: ../vertex.csv
failDataPath: ./err/vertex.csv
batchSize: 100
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: vertex
vertex:
tags:
- name: entity
props:
- name: name
type: string
- path: ../edge.csv
failDataPath: ./err/edge.csv
batchSize: 100
type: csv
csv:
withHeader: true
withLabel: false
schema:
type: edge
edge:
name: relation
withRanking: false
props:
- name: name
type: string
version 2.5.0,importer也clone的v2版本,yaml也用的v2
其中user: root
password: 123456
address: 10.93.0.237:9169
我通过graph studio登录正常,通过python-nebula2也可以插入节点
不知道为什么 client version有问题?
去掉postStart,prestop运行也有问题