vesoft-inc / nebula-importer

Nebula Graph Importer with Go
Apache License 2.0
90 stars 60 forks source link

nebula-importer supports nebula-graph v2-alpha-preview. #98

Closed laishzh closed 3 years ago

laishzh commented 3 years ago

因为官方版本还未就绪(link),所以自己先参照nebula-go/v2做了对应的修改,本地测试导入v1版本数据正常。希望能够作为临时版本供大家使用。

主要修改如下:

  1. 使用nebula-go/v2 作为nebula graph client。
  2. 将INSERT VERTEX和INSERT EDGE时的vid value使用双引号包裹。
  3. 去除测试数据中的uuid函数,使用(string)hash代替原先hash。但后续在yaml里面写function的推荐方法是什么?

TODO:

  1. Fix GitHub CI problem
CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

laishzh commented 3 years ago

本地环境(Mac & Ubuntu 18.04)执行ci均成功(见下图),但是github CI失败,不知道如何定位调试了。

image

laishzh commented 3 years ago

Fix CI Problem: Add BeforePeriod to wait for metad & storaged to complete postStart commands. Please refers to https://github.com/vesoft-inc/nebula-importer/pull/98/commits/c89c0f34a9b20dd39ede6100a2b0e3ddee453cc2