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.
- 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.
- 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.
- 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.
- 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.
- use
- Build the project
- run
mvn clean package -DskipTests
to package the artifacts.
- run
- 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.
- See
- Run in cloud: To be supported
- Run in cluster: To be supported
- set the
${FinBench_DATA_ROOT}
variable intransformation/transform.sh
and run.
N/A yet
- FinBench Specification: https://github.com/ldbc/ldbc_finbench_docs
- FinBench Driver: https://github.com/ldbc/ldbc_finbench_driver
- FinBench Reference Implementation: https://github.com/ldbc/ldbc_finbench_transaction_impls
- FinBench ACID Suite: https://github.com/ldbc/finbench-acid