kijiproject/kiji-schema — pull request #25 by kimballa (2012-12-19 04:18:27+00:00)
Title: Platform bridge support

Covers SCHEMA-56, 57, 58, and 60.

This adds the ability to compile and test against Apache Hadoop 1.x & HBase 0.92 in addition to CDH4.

You can compile and test at the top level with:
mvn install

By default this uses CDH4. You can select Apache Hadoop 1.x by running:
mvn install -Dplatform=hadoop1

In either case, both bridge implementations will be correctly compiled against their associated dependencies. This just changes the compile/test dependencies associated with the main kiji-schema module. It also changes the version of hbase-maven-plugin selected to run tests.

You can verify after unit tests have run, that the correct bridge implementation has been selected by reading the output in kiji-schema/target/surefire-reports/org.kiji.schema.platform.TestSchemaPlatformBridge-output.txt

e.g.:
12/12/18 20:12:56 INFO org.kiji.schema.platform.TestSchemaPlatformBridge: Hadoop version: 1.0.3
12/12/18 20:12:56 INFO org.kiji.schema.platform.TestSchemaPlatformBridge: HBase version: 0.92.1
12/12/18 20:12:56 INFO org.kiji.schema.platform.TestSchemaPlatformBridge: Got platform bridge: org.kiji.schema.platform.Hadoop1xSchemaBridge

When running against Hadoop 1.x, you must make sure your umask is set to 0022 or else hbase-maven-plugin will fail to start.

I have not yet tested running with Hadoop 1.x against any downstream projects.

Whomever reviews this, please speak with me before pushing. We should coordinate to minimize impact on downstream projects.