Computes Merkle Tree root on Spark cluster.
export JAVA_HOME=`/usr/libexec/java_home -v 11.0.6`
./gradlew build
jar can be found in target/libs
.
./gradlew clean test
Used for local testing:
- Use spark 2.4.4 with hadoop 2.7
- Install scala 2.11 locally
TASKS_MERKLE_ROOT_CALCULATOR_PATHS="./input" \
TASKS_MERKLE_ROOT_CALCULATOR_OUTPUT_PATH="./output" \
TASKS_MERKLE_ROOT_CALCULATOR_PARTITIONS="4" \
spark-submit \
--class tasks.MerkleRootCalculatorTask \
--master "local[*]" \
./target/libs/merkle-tree-spark.jar