diff --git a/var/spack/repos/builtin/packages/hudi/package.py b/var/spack/repos/builtin/packages/hudi/package.py new file mode 100644 index 0000000000..6240b71cd8 --- /dev/null +++ b/var/spack/repos/builtin/packages/hudi/package.py @@ -0,0 +1,24 @@ +# Copyright 2013-2020 Lawrence Livermore National Security, LLC and other +# Spack Project Developers. See the top-level COPYRIGHT file for details. +# +# SPDX-License-Identifier: (Apache-2.0 OR MIT) + +from spack import * + + +class Hudi(Package): + """Apache Hudi stands for Hadoop Upserts Deletes and Incrementals. + Hudi manages the storage of large analytical datasets on DFS.""" + + homepage = "https://hudi.apache.org/" + url = "https://github.com/apache/hudi/archive/release-0.5.3.tar.gz" + + version('0.5.3', sha256='8cbf52007fddd07eebd20c8962cd630b05a8ae4c597523fd63db837a45a0b227') + + depends_on('maven', type='build') + depends_on('java@8', type=('build', 'run')) + + def install(self, spec, prefix): + mvn = which('mvn') + mvn('package', '-DskipTests') + install_tree('.', prefix)