Skip to content

Instantly share code, notes, and snippets.

@eastcirclek
eastcirclek / building_HADOOP_on_macOS.md
Last active December 27, 2020 23:05
Building native libraries of Hadoop on macOS Catalina

Building native libraries of Hadoop-3.1.x on macOS Catalina

start

mvn -Pdist,native -DskipTests -Dtar package

error no.1

A different version of protobuf is already installed on macOS but Hadoop needs protobuf@2.5.0

[ERROR] Failed to execute goal org.apache.hadoop:hadoop-maven-plugins:3.1.3:protoc (compile-protoc) on project hadoop-common: org.apache.maven.plugin.MojoExecutionException: protoc version is 'libprotoc 3.12.4', expected version is '2.5.0' -> [Help 1]