Code Monkey home page Code Monkey logo

ldbc_finbench_datagen's Introduction

logo

FinBench DataGen

Build status

The LDBC FinBench Data Generator (Datagen) produces the datasets for the LDBC FinBench's workloads.

This data generator produces labelled directred property graphs based on the simulation of financial activities in business systems. The key features include generation, factorization and transformation. A detailed description of the schema produced by Datagen, as well as the format of the output files, can be found in the latest version of official LDBC FinBench specification document.

DataGen Design

Data Schema

Schema

Implementation

  • Generation: Generation simulates financial activities in business systems to produce the raw data.
  • Factorization: Factorization profiles of the raw data to produce factor tables used for further parameter curation.
  • Transformation: Transformation transforms the raw data to the data for SUT and benchmark driver.

Note:

  • Generation and Factorization are implemented in Scala while transformation is implemented in Python under transformation/.
  • SUT stands for System Under Test.

Quick Start

Pre-requisites

  • Java 8 installed.
  • Python3 and related packages installed. See each install-dependencies.sh for details.
  • Scala 2.12, note that it will be integrated when maven builds.
  • Spark deployed. Spark 3.2.x is the recommended runtime to use. The rest of the instructions are provided assuming Spark 3.2.x.

Workflow

  • Use the spark application to generate the factor tables and raw data.
  • Use the python scripts to transform the data to snapshot data and write queries.

Generation of Raw Data

  • Deploy Spark
    • use scripts/get-spark-to-home.sh to download pre-built spark to home directory and then decompress it.
    • Set the PATH environment variable to include the Spark binaries.
  • Build the project
    • run mvn clean package -DskipTests to package the artifacts.
  • Run locally with scripts
    • See scripts/run_local.sh for details. It uses spark-submit to run the data generator. Please make sure you have the pre-requisites installed and the build is successful.
  • Run in cloud: To be supported
  • Run in cluster: To be supported

Transformation of Raw Data

  • set the ${FinBench_DATA_ROOT} variable in transformation/transform.sh and run.

TroubleShooting

N/A yet

Related Work

ldbc_finbench_datagen's People

Contributors

qishipengqsp avatar nicole00 avatar yangbin-ultipa avatar spasserby 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.