Compile Hadoop Source Code
From Lofaro Lab Wiki
install mvn from binary, protoc from src
install other dependencies
mvn clean install -DskipTests
mvn package -Pdist -Pdoc -Psrc -Dtar -DskipTests
code is in ~/hadoop-2.7.3-src/hadoop-dist/target/hadoop-2.7.3
This step needs to be done before installing Hadoop. On the github in the sources section, the files are located in apache-maven-3.3.9-bin.tar.gz and protobuf-2.5.0.tar.gz