importer的一个错误

提问参考模版:

  • nebula 版本:2.0.1
  • 部署方式(分布式 / 单机 / Docker / DBaaS):单机
  • 问题的具体描述
  • 相关的 meta / storage / graph info 日志信息
    用importer导入数据,只有两种vertex,提示错误
2021/04/17 15:16:37 --- START OF NEBULA IMPORTER ---
2021/04/17 15:16:37 [INFO] config.go:404: files[0].schema.vertex is nil
2021/04/17 15:16:37 [INFO] config.go:404: files[1].schema.vertex is nil
2021/04/17 15:16:42 [INFO] connection_pool.go:74: [nebula-clients] connection pool is initialized successfully
2021/04/17 15:16:42 [INFO] clientmgr.go:28: Create 10 Nebula Graph clients
2021/04/17 15:16:42 [ERROR] session.go:57: [nebula-clients] Error info: read tcp 192.168.88.52:52202->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(0) fails to execute commands (USE `tcy2021`;), error: read tcp 192.168.88.52:52202->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] session.go:57: [nebula-clients] Error info: read tcp 192.168.88.52:52204->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(6) fails to execute commands (USE `tcy2021`;), error: execute failed: out of sequence response
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(1) fails to execute commands (USE `tcy2021`;), error: read tcp 192.168.88.52:52204->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] session.go:57: [nebula-clients] Error info: read tcp 192.168.88.52:52206->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(2) fails to execute commands (USE `tcy2021`;), error: read tcp 192.168.88.52:52206->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] session.go:57: [nebula-clients] Error info: read tcp 192.168.88.52:52208->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(3) fails to execute commands (USE `tcy2021`;), error: read tcp 192.168.88.52:52208->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] session.go:57: [nebula-clients] Error info: read tcp 192.168.88.52:52210->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] session.go:57: [nebula-clients] Error info: read tcp 192.168.88.52:52212->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(5) fails to execute commands (USE `tcy2021`;), error: read tcp 192.168.88.52:52212->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(4) fails to execute commands (USE `tcy2021`;), error: read tcp 192.168.88.52:52210->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(7) fails to execute commands (USE `tcy2021`;), error: execute failed: out of sequence response
2021/04/17 15:16:42 [ERROR] session.go:57: [nebula-clients] Error info: read tcp 192.168.88.52:52218->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] session.go:57: [nebula-clients] Error info: read tcp 192.168.88.52:52220->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(8) fails to execute commands (USE `tcy2021`;), error: read tcp 192.168.88.52:52218->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 [ERROR] clientpool.go:148: Client(9) fails to execute commands (USE `tcy2021`;), error: read tcp 192.168.88.52:52220->106.86.152.144:33136: use of closed network connection
2021/04/17 15:16:42 runtime error: invalid memory address or nil pointer dereference
2021/04/17 15:16:43 --- END OF NEBULA IMPORTER ---

问题:

2021/04/17 15:16:37 [INFO] config.go:404: files[0].schema.vertex is nil
2021/04/17 15:16:37 [INFO] config.go:404: files[1].schema.vertex is nil

这个错误是怎么会事啊

import.yaml
----------------
clientSettings:
  channelBufferSize: 128
  concurrency: 10
  connection:
    address: 192.168.88.52:9669
    password: Wang1980
    user: tyc2021
  retry: 3
  space: tcy2021
description: tyc2021 by xywl2000@163.com
files:
- batchSize: 128
  csv:
    withHeader: false
    withLabel: false
  failDataPath: /Users/wangli/App/scrap_tyc2021/src/nebula_import_data/b5dd0422-9f91-11eb-bfd9-f9bf5d0e7ff4_err
  inOrder: false
  limit: 10
  path: /Users/wangli/App/scrap_tyc2021/src/nebula_import_data/b5dd0422-9f91-11eb-bfd9-f9bf5d0e7ff4
  schema:
    tags:
      name: "\u5730\u5740"
      props:
      - index: 1
        name: name
        type: string
    type: vertex
    vertext:
      vertex:
        vid:
          index: 0
  type: csv
- batchSize: 128
  csv:
    withHeader: false
    withLabel: false
  failDataPath: /Users/wangli/App/scrap_tyc2021/src/nebula_import_data/b5dd0423-9f91-11eb-bfd9-f9bf5d0e7ff4_err
  inOrder: false
  limit: 10
  path: /Users/wangli/App/scrap_tyc2021/src/nebula_import_data/b5dd0423-9f91-11eb-bfd9-f9bf5d0e7ff4
  schema:
    tags:
      name: "\u81EA\u7136\u4EBA"
      props:
      - index: 1
        name: name
        type: string
      - index: 2
        name: card_id
        type: string
      - index: 3
        name: profile
        type: string
      - index: 4
        name: link_update_timestamp
        type: datetime
    type: vertex
    vertext:
      vertex:
        vid:
          index: 0
  type: csv
logPath: /Users/wangli/App/scrap_tyc2021/src/nebula_import_data/log
postStart:
  afterPeriod: 8s
  commands: "UPDATE CONFIGS storage:wal_ttl=3600;UPDATE CONFIGS storage:rocksdb_column_family_options\
    \ = { disable_auto_compactions = true };DROP SPACE IF EXISTS tyc2021;CREATE SPACE\
    \ IF NOT EXISTS tyc2021(partition_num=5, replica_factor=1, vid_type=FIXED_STRING(10));USE\
    \ tyc2021;create tag \u5730\u5740(name string);create tag \u81EA\u7136\u4EBA(name\
    \ string,card_id string,profile string,link_update_timestamp datetime);"
preStop:
  commands: UPDATE CONFIGS storage:rocksdb_column_family_options = { disable_auto_compactions
    = false };UPDATE CONFIGS storage:wal_ttl=86400;
removeTempFiles: false
version: v2
  schema:
    tags:
      name: "\u5730\u5740"
      props:
      - index: 1
        name: name
        type: string
    type: vertex
    # 下面的错了
    vertext:
      vertex:
        vid:
          index: 0
  type: csv

vertext 错了,可以参考下:GitHub - vesoft-inc/nebula-importer: Nebula Graph Importer with Go

谢谢

浙ICP备20010487号