[INFO] Reactor Build Order:
[INFO] Apache Hadoop Main
[INFO] Apache Hadoop Build Tools
[INFO] Apache Hadoop Project POM
[INFO] Apache Hadoop Annotations
[INFO] Apache Hadoop Assemblies
[INFO] Apache Hadoop Project Dist POM
[INFO] Apache Hadoop Maven Plugins
[INFO] Apache Hadoop MiniKDC
[INFO] Apache Hadoop Auth
[INFO] Apache Hadoop Auth Examples
[INFO] Apache Hadoop Common
[INFO] Apache Hadoop NFS
[INFO] Apache Hadoop KMS
[INFO] Apache Hadoop Common Project
[INFO] Apache Hadoop HDFS
[INFO] Apache Hadoop HttpFS
[INFO] Apache Hadoop HDFS BookKeeper Journal
[INFO] Apache Hadoop HDFS-NFS
[INFO] Apache Hadoop HDFS Project
[INFO] hadoop-yarn
[INFO] hadoop-yarn-api
[INFO] hadoop-yarn-common
[INFO] hadoop-yarn-server
[INFO] hadoop-yarn-server-common
[INFO] hadoop-yarn-server-nodemanager
[INFO] hadoop-yarn-server-web-proxy
[INFO] hadoop-yarn-server-applicationhistoryservice
[INFO] hadoop-yarn-server-resourcemanager
[INFO] hadoop-yarn-server-tests
[INFO] hadoop-yarn-client
[INFO] hadoop-yarn-server-sharedcachemanager
[INFO] hadoop-yarn-applications
[INFO] hadoop-yarn-applications-distributedshell
[INFO] hadoop-yarn-applications-unmanaged-am-launcher
[INFO] hadoop-yarn-site
[INFO] hadoop-yarn-registry
[INFO] hadoop-yarn-project
[INFO] hadoop-mapreduce-client
[INFO] hadoop-mapreduce-client-core
[INFO] hadoop-mapreduce-client-common
[INFO] hadoop-mapreduce-client-shuffle
[INFO] hadoop-mapreduce-client-app
[INFO] hadoop-mapreduce-client-hs
[INFO] hadoop-mapreduce-client-jobclient
[INFO] hadoop-mapreduce-client-hs-plugins
[INFO] Apache Hadoop MapReduce Examples
[INFO] hadoop-mapreduce
[INFO] Apache Hadoop MapReduce Streaming
[INFO] Apache Hadoop Distributed Copy
[INFO] Apache Hadoop Archives
[INFO] Apache Hadoop Rumen
[INFO] Apache Hadoop Gridmix
[INFO] Apache Hadoop Data Join
[INFO] Apache Hadoop Ant Tasks
[INFO] Apache Hadoop Extras
[INFO] Apache Hadoop Pipes
[INFO] Apache Hadoop OpenStack support
[INFO] Apache Hadoop Amazon Web Services support
[INFO] Apache Hadoop Azure support
[INFO] Apache Hadoop Client
[INFO] Apache Hadoop Mini-Cluster
[INFO] Apache Hadoop Scheduler Load Simulator
[INFO] Apache Hadoop Tools Dist
[INFO] Apache Hadoop Tools
[INFO] Apache Hadoop Distribution

Step 1 : login as pi user and install prerequisite packages

sudo apt-get -y install build-essential autoconf automake libtool cmake zlib1g-dev pkg-config libssl1.0-dev

sudo apt-get -y install snappy libsnappy-dev

sudo apt-get -y install bzip2 libbz2-dev

sudo apt-get -y install libjansson-dev

sudo apt-get install maven

step 2 : build protobuf 2.5.0

see my post here

step 3 : download and build hadoop 2.7.6

pi@node5:~ $ wget http://www.apache.org/dyn/closer.cgi/hadoop/common/hadoop-2.7.6/hadoop-2.7.6-src.tar.gz

pi@node5:~ $ tar -xzvf hadoop-2.7.6-src.tar.gz 

pi@node5:~ $ mv hadoop-2.7.6-src hadoop

pi@node5:~ $ cd hadoop/hadoop-common-project/hadoop-common/src

pi@node5:~ $ wget https://issues.apache.org/jira/secure/attachment/12570212/HADOOP-9320.patch
pi@node5:~ $ patch < HADOOP-9320.patch


pi@ndoe5:~ $ mvn clean install -DskipTests

pi@ndoe5:~ $ mvn clean package -Pdist,native -DskipTests -Dtar -Dmaven.javadoc.skip=true


Raspberry PI 2 Hadoop 2 Cluster Raspberry PI Hadoop Cluster A Hadoop data lab project on Raspberry Pi Building a Hadoop cluster with Raspberry Pi How to Hadoop at home with Raspberry Pi  [raspberry pi3] hadoop 编译搭建和配置 基于树莓派的集群实验(一)–spark on yarn hadoop Native Libraries Guide Building Hadoop 2.9.0 on Raspberry 3

Build a Hadoop 3 cluster with Raspberry Pi 3

Compile Apache Hadoop on Linux (fix warning: Unable to load native-hadoop library)