Generalize the yarn profile to hadoop versions 2.2+