d5c6e11016
Pull in guava 22.0 by using the shaded version up in new hbase-thirdparty project. In poms, exclude guava everywhere except on hadoop-common. Do this so we minimize transitive includes. hadoop-common is needed because hadoop Configuration uses guava doing preconditions. Everywhere we used guava, instead use shaded so fix a load of imports. Stopwatch API changed as did hashing and toStringHelper which is now in MoreObjects class. Otherwise, minimal changes to come up on 22.0
ON PROTOBUFS This maven module has core protobuf definition files ('.protos') used by hbase REST. Generation of java files from protobuf .proto files included here is done apart from the build. Run the generation whenever you make changes to the .orotos files and then check in the produced java (The reasoning is that change is infrequent so why pay the price of generating files anew on each build. To generate java files from protos run: $ mvn compile -Dcompile-protobuf or $ mvn compile -Pcompile-protobuf After you've done the above, check it and then check in changes (or post a patch on a JIRA with your definition file changes and the generated files). Be careful to notice new files and files removed and do appropriate git rm/adds.