跳转至

编译ExchangeGraph

本文介绍如何编译Nebula Exchange。用户也可以直接Graph编译完成的.jar文件。

准备工作Graph

  • 安装Graph。
  • 下载Graph,解压到本地Maven库的目录io/streamnative/connectors中。

编译ExchangeGraph

  1. 在根目录克隆仓库nebula-spark-utils

    git clone -b v2.5 https://github.com/vesoft-inc/nebula-spark-utils.git
    
  2. 切换到目录nebula-exchange

    cd nebula-spark-utils/nebula-exchange
    
  3. 打包Nebula Exchange。

    mvn clean package -Dmaven.test.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true
    

编译成功后,用户可以在当前目录里查看到类似如下目录结构。

.
├── README-CN.md
├── README.md
├── pom.xml
├── src
│   ├── main
│   └── test
└── target
    ├── classes
    ├── classes.timestamp
    ├── maven-archiver
    ├── nebula-exchange-2.x.y-javadoc.jar
    ├── nebula-exchange-2.x.y-sources.jar
    ├── nebula-exchange-2.x.y.jar
    ├── original-nebula-exchange-2.x.y.jar
    └── site

target目录下,用户可以找到exchange-2.x.y.jar文件。

Note

JAR文件版本号会因Nebula Java Client的发布版本而变化。用户可以在Graph查看最新版本。

迁移数据时,用户可以参考配置文件Graph。

下载依赖包失败Graph

如果编译时下载依赖包失败:

  • 检查网络设置,确认网络正常。
  • 修改Maven安装目录下libexec/conf/settings.xml文件的mirror部分:

    <mirror>
     <id>alimaven</id>
     <mirrorOf>central</mirrorOf>
     <name>aliyun maven</name>
     <url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
    </mirror>
    

最后更新: August 11, 2021
Back to top