1. Checkout/Clone the repoI'm using Cloudera version, so I'd like to be synched with the exact version I'm running. But the community repo https://github.com/apache/hadoop would also make it:
git clone https://github.com/cloudera/hadoop-common.git hadoop-cdh
Go to the freshly cloned repo
2. Ensure Java 7+Well, you'd better to anticipate the Java7 EOL in April 2015* and go with 8, but you must have at least Java7.
3. Ensure Protobuf 2.5+You'll find more info about where to get and how to build protobuf 2.5+ on ubuntu 12.x here: http://steveloughran.blogspot.ch/2013/09/how-to-update-ubuntu-12x-box-to-protoc.html
You can then point your maven hadoop plugin to your custom installation of protobuf:
You can now compile the project
mvn clean install -DskipTests
4. Run Maven EclipseUnfortunately the maven-eclipse-plugin has a regression after version 2.6, and thus this exact version needs to be used to run it properly:
mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse
And that's it, you're good to import the project you need into your favorite IDE!