V2 if 2.2.0 and is_yarn
Export JAVA_HOME
added -E