Skip to content

Get Exchange

This topic introduces how to get the JAR file of Nebula Exchange.

Download the JAR file directly

The JAR file of Exchange Community Edition can be downloaded directly.

To download Exchange Enterprise Edition, get Nebula Graph Enterprise Edition Package first.

Get the JAR file by compiling the source code

You can get the JAR file of Exchange Community Edition by compiling the source code. The following introduces how to compile the source code of Exchange.

Enterpriseonly

You can get Exchange Enterprise Edition in Nebula Graph Enterprise Edition Package only.

Prerequisites

  • Install the correct version of Apache Spark. Exporting data from different sources requires different Spark versions. For more information, see Software dependencies.

Steps

  1. Clone the repository nebula-exchange in the / directory.

    git clone -b v3.0.0 https://github.com/vesoft-inc/nebula-exchange.git
    
  2. Switch to the directory nebula-exchange.

    cd nebula-exchange
    
  3. Package Nebula Exchange. Run the following command based on the Spark version:

    • For Spark 2.2:

      mvn clean package -Dmaven.test.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true \
      -pl nebula-exchange_spark_2.2 -am -Pscala-2.11 -Pspark-2.2
      
    • For Spark 2.4:

      mvn clean package -Dmaven.test.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true \
      -pl nebula-exchange_spark_2.4 -am -Pscala-2.11 -Pspark-2.4
      
    • For Spark 3.0:

      mvn clean package -Dmaven.test.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true \
      -pl nebula-exchange_spark_3.0 -am -Pscala-2.12 -Pspark-3.0
      

After the compilation is successful, you can find the nebula-exchange_spark_x.x-v3.0.0.jar file in the nebula-exchange_spark_x.x/target/ directory. x.x indicates the Spark version, for example, 2.4.

Note

The JAR file version changes with the release of the Nebula Java Client. Users can view the latest version on the Releases page.

When migrating data, you can refer to configuration file target/classes/application.conf.

Failed to download the dependency package

If downloading dependencies fails when compiling:

  • Check the network settings and ensure that the network is normal.
  • Modify the mirror part of Maven installation directory libexec/conf/settings.xml:

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

Last update: March 8, 2022