nebula-exchange导数据报错

Nebula 版本号是2.5.0 Exchange 的版本号也是 2.5.0

截屏2021-09-15 下午2.31.32

创建过 schema

在使用nebula-exchange导数据时,一直报错

Exception in thread “main” com.vesoft.nebula.client.meta.exception.ExecuteFailedException: Execute failed: Get Space execute failed, errorCode: E_SPACE_NOT_FOUND

配置文件如下:

{
  # Spark relation config
  spark: {
    app: {
      name: Nebula Exchange 2.5.0
    }

    master:local

    driver: {
      cores: 1
      maxResultSize: 1G
    }

    executor: {
        memory:1G
    }

    cores:{
      max: 16
    }
  }

  nebula: {
    address:{
      graph:["192.168.220.xx:9669"]
      meta:["192.169.220.xx:9559"]
    }
    user: root
    pswd: root
    space:basketballplayer

    # nebula client connection parameters
    connection {
      # socket connect & execute timeout, unit: millisecond
      timeout: 300000
    }

    error: {
      # max number of failures, if the number of failures is bigger than max, then exit the application.
      max: 32
      # failed import job will be recorded in output path
      output: /nebula-exchange/errors
    }

    # use google's RateLimiter to limit the requests send to NebulaGraph
    rate: {
      # the stable throughput of RateLimiter
      limit: 1024
      # Acquires a permit from RateLimiter, unit: MILLISECONDS
      # if it can't be obtained within the specified timeout, then give up the request.
      timeout: 1000
    }
  }

  # Processing tags
  # There are tag config examples for different dataSources.
  tags: [

    {
      name: player
      type: {
        source: csv
        sink: client
      }
      path: "file:/dataset/vertex_player.csv"
      # if your csv file has no header, then use _c0,_c1,_c2,.. to indicate fields
      fields: [_c1, _c2]
      nebula.fields: [age, name]
      vertex: {
        field:_c0
      }
      separator: ","
      header: false
      batch: 256
      partition: 32
    }

    {
      name: team
      type: {
        source: csv
        sink: client
      }
      path: "/dataset/vertex_team.csv"
      fields: [_c1]
      nebula.fields: [name]
      vertex: {
        field: _c0
        #policy: hash
      }
      separator: ","
      header: false
      batch: 256
      partition: 32
    }

  ]

  edges: [
    {
      name: follow
      type: {
         source: csv
         sink: client
      }
      path: "/dataset/edge_follow.csv"
      fields: [_c2]
      nebula.fields: [degree]
      source: {
        field:_c0
        #policy:hash
      }
      target: {
        field:_c1
        #policy:hash
      }
      separator: ","
      header: false
      batch: 256
      partition: 32
    }

    {
      name: server
      type: {
        source: csv
        sink: client
      }
      path: "/dataset/edge_serve.csv"
      fields: [_c2, _c3]
      nebula.fields: [start_year, end_year]
      source: {
        field: _c0
        #policy: hash
      }
      target: {
        field: _c1
      }
     # 指定一个列作为rank的源(可选)
     # ranking: csv-field-2
      separator: ","
      header: false
      batch: 256
      partition: 32
    }

  ]
}

连错nebula服务了? 你可以用console连接192.168.220.xx:9669 这个地址之后 show spaces 看下

没有连错服务,每一台都是graph服务,没看出来哪儿有错误,我重新搭建试试吧

这个问题一直困扰着,实在不知道哪里有问题了?

信息贴一下?

连接nebula 的console 地址贴一下, show spaces 结果贴一下

截屏2021-10-11 下午2.19.26

连接console的 ./nebula-console命令贴一下, show hosts meta 贴一下。

你按照上面 Nicole 的回复给下她信息,不然一直卡在这,要信息没有就没法定位。不要浪费彼此时间了,你信息给了我们才能好做下一步的判断是不是有别的问题,尤其是配置信息,这块是最容易出现问题的。

要的信息,我都回复了吧,还有啥没有回复呢?

ip 那边不要打马赛克,让研发同学看一眼

连接命令
./nebula-console -addr 10.17.254.247 -port 9669 -u root -p nebula

show hosts meta 贴一下

上面贴的有啊
./nebula-console -addr 10.17.254.247 -port 9669 -u root -p nebula

改一下 meta 的配置,local_ip 换成 meta 机器的 ip,不要用 127.0.0.1

好的,我尝试一下

你show hosts时 meta服务的地址是127.0.0.1,但你Exchange配置文件中配置的是真实ip。 两者要保持统一,要么将服务中的ip改成真实ip后 重新创建space, 要么在meta服务所在机器上运行Exchange。

2 个赞