importer导入出错

  • nebula 版本:3.2.0
  • 部署方式:单机
  • 安装方式:RPM
  • 是否为线上版本:N
  • 硬件信息
    • 磁盘 SSD
      报错信息
2022/10/17 20:24:43 --- START OF NEBULA IMPORTER ---
2022/10/17 20:24:43 [INFO] config.go:399: find file: /home/hnu/zcl/1000.csv
2022/10/17 20:24:43 [INFO] config.go:393: Failed data path: err/course.csv/1000.csv
2022/10/17 20:24:43 [INFO] config.go:399: find file: /home/hnu/zcl/1000.csv
2022/10/17 20:24:43 [WARN] config.go:334: You have not configured the failed data output file path in: files[0].failDataPath, reset to default path: /home/hnu/zcl/err/1000.csv
2022/10/17 20:24:43 [WARN] config.go:573: Not set files[0].schema.edge.srcVID.Type, reset to default value `string'
2022/10/17 20:24:43 [WARN] config.go:573: Not set files[0].schema.edge.dstVID.Type, reset to default value `string'
2022/10/17 20:24:44 Client(0) fails to execute commands (DROP SPACE IF EXISTS 1000.csv;
CREATE SPACE IF NOT EXISTS 1000.csv (vid_type=FIXED_STRING(30));
USE 1000.csv;
CREATE TAG NebulaVertex(id string);
CREATE EDGE nebulaEdge(name weights);
), response error code: -1004, message: SyntaxError: syntax error near `1000.'
2022/10/17 20:24:45 --- END OF NEBULA IMPORTER ---

配置文件

version: v3
description: example
removeTempFiles: false
clientSettings:
  retry: 3
  concurrency: 10
  channelBufferSize: 1024
  space: 1000.csv
  connection:
    user: root
    password: 123456
    address: 127.0.0.1:9669
  postStart:
    commands: |
      DROP SPACE IF EXISTS 1000.csv;
      CREATE SPACE IF NOT EXISTS 1000.csv (vid_type=FIXED_STRING(30));
      USE 1000.csv;
      CREATE TAG NebulaVertex(id string);
      CREATE EDGE nebulaEdge(name weights);
    afterPeriod: 8s
  preStop:
    commands: |
      USE 1000.csv;
logPath: ./err/l.log
files:
  - path: ./1000.csv
    batchSize: 4096
    inOrder: false
    type: csv
    csv:
      withHeader: false
      withLabel: false
      delimiter: ","
    schema:
      type: edge
      edge:
        name: nebulaEdge
        withRanking: false
        srcVID:
          index: 0
        dstVID:
          index: 1
        props:
          - name: weights
            type: string
            index: 0
          - name: leftVid
            type: string
            index: 0
          - name: rightVid
            type: string
            index: 1
  - path: ./1000.csv
    failDataPath: ./err/course.csv
    batchSize: 4096
    inOrder: false
    type: csv
    csv:
      withHeader: false
      withLabel: false
      delimiter: ","
    schema:
      type: vertex
      vertex:
        vid:
          type: string
          index: 0
        tags:
          - name: NebulaVertex
            props:
            - name: id
              type: string
              index: 0

求大佬帮我看看

space 不支持点 .
可以换成 1000_csv

version: v3
description: example
removeTempFiles: false
clientSettings:
  retry: 3
  concurrency: 10
  channelBufferSize: 1024
  space: 1000_csv
  connection:
    user: root
    password: 123456
    address: 127.0.0.1:9669
  postStart:
    commands: |
      DROP SPACE IF EXISTS 1000_csv;
      CREATE SPACE IF NOT EXISTS 1000_csv (vid_type=FIXED_STRING(30));
      USE 1000_csv;
      CREATE TAG NebulaVertex(id string);
      CREATE EDGE nebulaEdge(weights string, leftVid string, rightVid string);
    afterPeriod: 8s
  preStop:
    commands: |
      USE 1000_csv;
logPath: ./err/1.log
files:
  - path: ./1000.csv
    batchSize: 4096
    inOrder: false
    type: csv
    csv:
      withHeader: false
      withLabel: false
      delimiter: ","
    schema:
      type: edge
      edge:
        name: nebulaEdge
        withRanking: false
        srcVID:
          index: 0
        dstVID:
          index: 1
        props:
          - name: weights
            type: string
            index: 0
          - name: leftVid
            type: string
            index: 0
          - name: rightVid
            type: string
            index: 1
  - path: ./1000.csv
    failDataPath: ./err/course.csv
    batchSize: 4096
    inOrder: false
    type: csv
    csv:
      withHeader: false
      withLabel: false
      delimiter: ","
    schema:
      type: vertex
      vertex:
        vid:
          type: string
          index: 0
        tags:
          - name: NebulaVertex
            props:
            - name: id
              type: string
              index: 0

已经更换了但是还是同样的报错

贴一下错误信息

2022/10/18 12:03:20 --- START OF NEBULA IMPORTER ---
2022/10/18 12:03:20 [INFO] config.go:399: find file: /home/hnu/zcl/1000.csv
2022/10/18 12:03:20 [INFO] config.go:393: Failed data path: err/course.csv/1000.csv
2022/10/18 12:03:20 [INFO] config.go:399: find file: /home/hnu/zcl/1000.csv
2022/10/18 12:03:20 [WARN] config.go:334: You have not configured the failed data output file path in: files[0].failDataPath, reset to default path: /home/hnu/zcl/err/1000.csv
2022/10/18 12:03:20 [WARN] config.go:573: Not set files[0].schema.edge.srcVID.Type, reset to default value `string'
2022/10/18 12:03:20 [WARN] config.go:573: Not set files[0].schema.edge.dstVID.Type, reset to default value `string'
2022/10/18 12:03:20 Client(0) fails to execute commands (DROP SPACE IF EXISTS 1000_csv;
CREATE SPACE IF NOT EXISTS 1000_csv (vid_type=FIXED_STRING(30));
USE 1000_csv;
CREATE EDGE nebulaEdge(weights string, leftVid string, rightVid string);
CREATE TAG NebulaVertex(id string);
), response error code: -1004, message: SyntaxError: syntax error near `1000'
2022/10/18 12:03:21 --- END OF NEBULA IMPORTER ---

不好意思,要以英文字母开头,s1000_csv 或者 csv_1000

此话题已在最后回复的 7 天后被自动关闭。不再允许新回复。