[SPARK-2742][yarn] delete useless variables