-
Notifications
You must be signed in to change notification settings - Fork 18
/
rdf-import-v2.yaml
65 lines (64 loc) · 1.37 KB
/
rdf-import-v2.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
version: v2
description: example of nebula graph v2, v3
removeTempFiles: false
clientSettings:
retry: 6
concurrency: 1 # number of graph clients
channelBufferSize: 16
space: ownthink
connection:
user: root
password: nebula
address: 127.0.0.1:9669 # change to your nebula graph's graphd address
postStart:
commands: |
CREATE SPACE IF NOT EXISTS ownthink(partition_num=50, replica_factor=1, vid_type=int);
USE ownthink;
CREATE TAG `entity`();
CREATE EDGE `relation`();
afterPeriod: 8s
preStop:
commands: |
SUBMIT JOB STATS;
logPath: ./err/importer.log
iles:
- path: ./vertex.csv
failDataPath: ./err/vertex.csv
batchSize: 128
inOrder: true
type: csv
csv:
withHeader: false
withLabel: false
schema:
type: vertex
vertex:
vid:
index: 0
type: string
tags:
- name: entity
props: []
- path: ./edge.csv
failDataPath: ./err/edge.csv
batchSize: 64
inOrder: true
type: csv
csv:
withHeader: false
withLabel: false
schema:
type: edge
edge:
name: relation
withRanking: false
srcVID:
index: 0
type: string
dstVID:
index: 1
type: string
props:
- name: name
type: string
index: 2