HIVE-9078: Hive should not submit second SparkTask while previous one has failed.[Spark Branch] (Chengxiang via Xuefu)

git-svn-id: https://svn.apache.org/repos/asf/hive/branches/spark@1645704 13f79535-47bb-0310-9956-ffa450edef68