nebula 3.6.0
nebula-importer_4.1.0
配置文件
client:
version: v3
address: "10.13.100.246:9669"
user: root
password: nebula
ssl:
enable: false
certPath: "/home/xxx/cert/importer.crt"
keyPath: "/home/xxx/cert/importer.key"
caPath: "/home/xxx/cert/root.crt"
insecureSkipVerify: false
concurrencyPerAddress: 10
reconnectInitialInterval: 1s
retry: 3
retryInitialInterval: 1s
manager:
spaceName: twitter2010
batch: 1024
readerConcurrency: 50
importerConcurrency: 50
statsInterval: 10s
hooks:
before:
- statements:
- |
DROP SPACE IF EXISTS twitter2010;
CREATE SPACE IF NOT EXISTS twitter2010(partition_num=5, replica_factor=1, vid_type=FIXED_STRING(16));
USE twitter2010;
CREATE TAG Person();
CREATE EDGE Knows();
wait: 10s
after:
- statements:
- |
SHOW SPACES;
log:
level: INFO
console: true
files:
- /ssd/tanwei/logs/nebula-importer.log
sources:
- path: /ssd/tanwei/twitter/twitter-v.csv
batch: 1024
csv:
delimiter: ","
withHeader: false
lazyQuotes: false
tags:
- name: Person
mode: INSERT
id:
type: "STRING"
index: 0
- path: /ssd/tanwei/twitter/twitter-e.csv
batch: 1024
csv:
delimiter: ","
withHeader: true
lazyQuotes: false
edges:
- name: Knows
mode: INSERT
src:
id:
type: "STRING"
index: 0
dst:
id:
type: "STRING"
index: 1
提示读取文件失败,是为什么