Added is_yarn method to identify whether hadoop is configured to run as Yarn
Changed condition to select which Java classes to compile
Selected only CDH distros