Giter VIP home page Giter VIP logo

nebula-exchange's Introduction

Nebula Exchange 2.0

中文版

Nebula Exchange (Exchange for short) is an Apache Spark application. It is used to migrate cluster data in bulk from Spark to Nebula Graph in a distributed environment. It supports migration of batch data and streaming data in various formats.

Exchange 2.0 only supports Nebula Graph 2.0 . If you want to import data for Nebula Graph v1.x,please use Nebula Exchange v1.0.

How to get

  1. Package latest Exchange

    $ git clone https://github.com/vesoft-inc/nebula-exchange.git
    $ cd nebula-exchange/nebula-exchange
    $ mvn clean package -Dmaven.test.skip=true -Dgpg.skip -Dmaven.javadoc.skip=true

    After the packaging, you can see the newly generated nebula-exchange-2.5-SNAPSHOT.jar under the nebula-exchange/nebula-exchange/target/ directory.

  2. Download from Maven repository

    release version: https://repo1.maven.org/maven2/com/vesoft/nebula-exchange/

    snapshot version: https://oss.sonatype.org/content/repositories/snapshots/com/vesoft/nebula-exchange/

How to use

Import command:

$SPARK_HOME/bin/spark-submit --class com.vesoft.nebula.exchange.Exchange --master local nebula-exchange-2.5.0.jar -c /path/to/application.conf

If your source is HIVE, import command is:

$SPARK_HOME/bin/spark-submit --class com.vesoft.nebula.exchange.Exchange --master local nebula-exchange-2.5.0.jar -c /path/to/application.conf -h

Note:Submit Exchange with Yarn-Cluster mode, please use following command:

$SPARK_HOME/bin/spark-submit --class com.vesoft.nebula.exchange.Exchange \
--master yarn-cluster \
--files application.conf \
--conf spark.driver.extraClassPath=./ \
--conf spark.executor.extraClassPath=./ \
nebula-exchange-2.5.0.jar \
-c application.conf

Note: When use Exchange to generate SST files, please add spark.sql.shuffle.partition config for Spark's shuffle operation:

$SPARK_HOME/bin/spark-submit --class com.vesoft.nebula.exchange.Exchange \
--master local \
--conf spark.sql.shuffle.partitions=200 \
nebula-exchange-2.5.0.jar \
-c application.conf

For more details about Exchange, please refer to Exchange 2.0 .

Version match

There are the version correspondence between Nebula Exchange and Nebula:

Nebula Exchange Version Nebula Version
2.0.0 2.0.0, 2.0.1
2.0.1 2.0.0, 2.0.1
2.1.0 2.0.0, 2.0.1
2.5.0 2.5.0, 2.5.1
2.5.1 2.5.0, 2.5.1
2.6.0 2.6.0
2.5-SNAPSHOT nightly

New Features

  1. Supports importing vertex data with String and Integer type IDs.
  2. Supports importing data of the Null, Date, DateTime, and Time types(DateTime uses UTC, not local time).
  3. Supports importing data from other Hive sources besides Hive on Spark.
  4. Supports recording and retrying the INSERT statement after failures during data import.
  5. Supports SST import, but not support property's default value yet.

Refer to application.conf as an example to edit the configuration file.

nebula-exchange's People

Contributors

nicole00 avatar cooper-lzy avatar darionyaphet avatar laura-ding avatar harrischu avatar jievince avatar jude-zhu avatar oldlady344 avatar randomjoe211 avatar whitewum avatar codelone avatar wey-gu avatar riverzzz avatar yixinglu avatar guojun85 avatar amber1990zhang avatar shinji-ikarig avatar zhongqishang avatar dutor avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.