This is how we build HBase in Bigtop: Common files: https://github.com/apache/bigtop/tree/master/bigtop-packages/src/common/hbase
RPM specfile: https://github.com/apache/bigtop/blob/master/bigtop-packages/src/rpm/hbase/SPECS/hbase.spec Look at do-component-build in common/ especially. If building RPM packages of Hadoop software for local consumption, you might also consider Bigtop as a community supported alternative to in house packaging. On Thu, Feb 12, 2015 at 3:14 PM, Tong Pham <tp...@quantcast.com> wrote: > Hi Andrew and Ted, > > Thanks for the timely response. It took a bit of setting up for us, > but we were finally able to build HBase 0.98.9 against Hadoop 2.6.0. > > This is what I got in my rpm spec file: > cd %{_hbasesrc} > MAVEN_OPTS="-Xmx3g" > export MAVEN_OPTS > mvn clean install -DskipTests > mvn -DskipTests -Dhadoop-two.version=2.6.0 -P hadoop-2.0 site > instal > l > assembly:single > cd %{_hbasesrc}/hbase-assembly/target > tar -xvf hbase-0.98.9-bin.tar.gz # this is the produced > tarball whic > h we then put > into our own package > > It's odd that I had to run mvn clean install -DskipTests separately. > Otherwise, > we run into > problems with dependencies. E.g.: > > [INFO] > ------------------------------------------------------------------------ > [INFO] Reactor Summary: > [INFO] > [INFO] HBase ............................................. FAILURE > [1:19.195s] > [INFO] HBase - Checkstyle ................................ SKIPPED > [INFO] HBase - Annotations ............................... SKIPPED > ... > [ERROR] Failed to execute goal > org.apache.maven.plugins:maven-site-plugin:3.3:si > te > (default-site) on project hbase: failed to get report for > org.apache.maven.plugi > ns:maven- > javadoc-plugin: Failed to execute goal on project hbase-common: Could not > resolv > e > dependencies for project org.apache.hbase:hbase-common:jar:0.98.9: The > following > > artifacts could not be resolved: > org.apache.hbase:hbase-annotations:jar:0.98.9, > org.apache.hbase:hbase-annotations:jar:tests:0.98.9: Could not find > artifact > org.apache.hbase:hbase-annotations:jar:0.98.9 in apache release > (https://repository.apache.org/content/repositories/releases/) -> [Help 1] > > Other than that, I can confirm that HBase built against 2.6.0 is working > flawles > sly on top > of our HDFS 2.6.0 cluster. ^_^ > > Regards, > Tong > > > -- Best regards, - Andy Problems worthy of attack prove their worth by hitting back. - Piet Hein (via Tom White)