This is the familiar pattern:
I've applied this patch against trunk and run in an EC2 vm (Linux ip-10-152-187-175 2.6.32-276.el6.x86_64 #1 SMP Tue May 29 17:38:19 EDT 2012 x86_64 x86_64 x86_64 GNU/Linux, ami-89ad18e0, jdk-7u21-linux-x64). The test passes on both hadoop1 and hadoop2 profiles.
The 0.94 patch applies cleanly and runs just fine for both hadoop1 and hadoop2 profiles on the same VM.
But then we have this:
produced this build error on 0.94-security.
A worse result than before. Not confined to EC2.
Let's revert the patch and close this issue definitively.
I propose instead we move MiniMRCluster instantiation and JobConf building and its gory details to the hadoop-compat modules. A simple consistent approach remains elusive.