version: v3
description: Twitter dataset import for NebulaGraph 3.8
clientSettings:
  retry: 3
  concurrency: 50
  channelBufferSize: 1024
  space: twitter
  connection:
    user: root
    password: nebula
    address: 127.0.0.1:9669
  postStart:
    commands: |
      USE twitter;
      SHOW TAGS;
      SHOW EDGES;
    afterPeriod: 30s
logPath: ./import_logs
files:
  # 顶点文件配置
  - path: /path/to/vertices.csv
    failDataPath: ./vertex_errors.csv
    batchSize: 100000
    type: csv
    csv:
      withHeader: true
      delimiter: ","
    schema:
      type: vertex
      vertex:
        vid: 
          index: 0
        tags:
          - name: User
            # 无属性时保持为空数组
            props: [] 

  # 边文件配置
  - path: /path/to/edges.csv
    failDataPath: ./edge_errors.csv
    batchSize: 500000
    type: csv
    csv:
      withHeader: true
      delimiter: ","
    schema:
      type: edge
      edge:
        name: FOLLOWS
        withRanking: false
        src: 
          index: 0
        dst: 
          index: 1
        # 无属性时保持为空数组
        props: []