Thanks to maven, building HBase is pretty easy. You can read about the various maven commands in Section 1.8, “Maven Build Commands”, but the simplest command to compile HBase from its java source code is:
mvn package -DskipTests
Or, to clean up before compiling:
mvn clean package -DskipTests
With Eclipse set up as explained above in Section 1.2.1, “Eclipse”, you can also simply use the build command in Eclipse. To create the full installable HBase package takes a little bit more work, so read on.
You may need to change the protobuf definitions that reside in the hbase-protocol module.
If you see
Unable to find resource 'VM_global_library.vm', ignore it.
Its not an error. It is officially ugly though.
-Dsnappy to trigger the snappy maven profile for building
snappy native libs into hbase. See also ???