I am trying to install parquet tools on a FreeBSD machine.
I cloned this repo: git clone https://github.com/apache/parquet-mr
Then I did cd parquet-mr/parquet-tools
Then I did `mvn clean package -Plocal
As specified here: https://github.com/apache/parquet-mr/tree/master/parquet-tools
This is what I got:
Why is this dependency error here? How do I get around it?
parquet-tools
is just one module ofparquet-mr
. It depends on some of the other modules.When you build from a source version that corresponds to a release, those other modules will be available to Maven, because release artifacts are published as a part of the release process.
However, when building from a snapshot version, you have to make those dependencies available yourself. There are two ways to do so:
Option 1: Build and install all modules of the parent directory:
This will put the snapshot artifacts in your local
~/.m2
directory. Subsequently, you can (re)build justparquet-tools
like you initially tried, because now the snapshot artifacts will already be available from~/.m2
.Option 2: Build the
parquet-mr
modules from the parent directory, while asking Maven to build needed modules as well along the way:Option 1 will build more projects than option 2, so if you only need
parquet-tools
, you are better off with the latter. Please note though that probably both will require installation of a thrift compiler.