Nice to know it worked. Though it's just a fix and not a solution. You can again run into some issue if there are other api conflicts between hadoop 2.2.0 and 2.5.1 versions. I'll suggest upgrading your hadoop version to be on the safe side.
Cheers, Ritesh
