Change Executor to only look at the env variable SPARK_YARN_MODE