- nebula 版本:nebula-graph-3.4.0
- 部署方式:分布式 三台服务器
- 安装方式:rpm
- 硬件信息
- CPU:Intel(R) Xeon(R) Gold 5320 CPU @ 2.20GHz
硬盘:Disk /dev/sda: 1999.8 GB, 1999844147200 bytes, 3905945600 sectors
问题描述:
- CPU:Intel(R) Xeon(R) Gold 5320 CPU @ 2.20GHz
- 使用nebula-importer导入csv文件,配置文件部分配置如下:
version: v3
description: example
removeTempFiles: false
clientSettings:
retry: 3
concurrency: 50 # number of graph clients
channelBufferSize: 1000
space: newTest
connection:
user: root
password: FUZAduowei.111
address: 192.168.0.186:9669,192.168.0.187:9669,192.168.0.188:9669
postStart:
commands: |
CREATE SPACE IF NOT EXISTS `newTest`(PARTITION_NUM = 30, REPLICA_FACTOR = 1, vid_type = FIXED_STRING(50));
USE newTest;
CREATE TAG IF NOT EXISTS `node`(`ip_num` string,`node_id` string,`country_code` string,`point` geography,`addr` string,`node_type` string, `node_index` string);
CREATE EDGE IF NOT EXISTS `follow`(`edgeType` string,`edgeIndex` string, `source_longitude` double,`source_latitude` double,`source_node_type` string,`source_node_index` string,`target_longitude` double,`target_latitude` double,`target_node_type` string,`target_node_index` string);
CREATE TAG INDEX IF NOT EXISTS `dtype_index` on `node`(`node_type`(10));
CREATE TAG INDEX IF NOT EXISTS `geo_index` on `node`(`point`);
CREATE EDGE INDEX IF NOT EXISTS `follow_index_type` on `follow`(`edgeType`(10));
afterPeriod: 10s
logPath: ./test.log
files:
- path: ./node.csv
failDataPath: ./err/pointerr.csv
batchSize: 256
type: csv
csv:
withHeader: false
withLabel: false
delimiter: ','
schema:
type: vertex
vertex:
vid:
index: 0
type: string
tags:
- name: node
props:
- name: ip_num
type: string
index: 1
- name: node_id
type: string
index: 2
- name: country_code
type: string
index: 3
- name: point
type: geography
index: 4
- name: addr
type: string
index: 5
- name: node_type
type: string
index: 6
- name: node_index
type: string
index: 7
- path: ./link.csv
failDataPath: ./err/lineerr.csv
batchSize: 256
type: csv
csv:
withHeader: false
withLabel: false
delimiter: ','
schema:
type: edge
edge:
name: follow
withRanking: false
srcVID:
index: 0
type: string
dstVID:
index: 1
type: string
props:
- name: edgeType
type: string
index: 2
- name: edgeIndex
type: string
index: 3
- name: source_longitude
type: double
index: 4
- name: source_latitude
type: double
index: 5
- name: source_node_type
type: string
index: 6
- name: source_node_index
type: string
index: 7
- name: target_longitude
type: double
index: 8
- name: target_latitude
type: double
index: 9
- name: target_node_type
type: string
index: 10
- name: target_node_index
type: string
- index: 11
输入导入明明后,就会只显示如下输出,日志文件中也没有任何的记录:
2023/11/15 15:38:44 --- START OF NEBULA IMPORTER ---
2023/11/15 15:38:45 --- END OF NEBULA IMPORTER ---