为提高效率,提问时请提供以下信息,问题描述清晰可优先响应。
- 【TiDB 版本】:4.0.8
- 【问题描述】:定义一个TiSpark 任务:
val spark = SparkSession.
XXXX此处省略
val data = spark.sql(“SELECT XXXXX from xxx where xxx group by xxx”)
data.write.
format(“tidb”).
option(“tidb.user”, “xxx”).
option(“tidb.password”, “xxx”).
option(“database”, “xxx”).
option(“table”, “xxx”).
mode(“append”).
save()
任务执行到某一个Job完成后,Spark APP不再执行新的任务,且tidb数据写入完毕,按照正常理解,此时任务已经执行完毕,Spark app应主动结束任务,但此时APP一直在RUNNING状态,但没有任务继续执行。
最后的日志为:
20/12/14 17:32:46 WARN KVErrorHandler: NotLeader Error with region id 24722984 and store id 8, new store id 11
20/12/14 17:32:46 WARN KVErrorHandler: Failed to send notification back to driver since CacheInvalidateCallBack is null in executor node.
20/12/14 17:32:46 WARN KVErrorHandler: Stale Epoch encountered for region [{Region[24722984] ConfVer[5189] Version[6261] Store[11] KeyRange[t\200\000\000\000\000\000$\210_r\200\000\000\000\000\332\030>]:[t\200\000\000\000\000\000$\210_r\200\000\000\000\001\177\251\024]}]
20/12/14 17:32:46 WARN KVErrorHandler: Failed to send notification back to driver since CacheInvalidateCallBack is null in executor node