Skip to content

Commit 1b0570c

Browse files
jobitmathewsrowen
authored andcommitted
[SPARK-30387] Improving stop hook log message
### What changes were proposed in this pull request? ShutdownHook of YarnClientSchedulerBackend prints just "Stopped" which can be improved to "YarnClientSchedulerBackend Stopped" for better understanding. ### Why are the changes needed? While stopping or gracefully exiting the spark-shell/spark-sql --master yarn, only printing `stopped` is useless. ### Does this PR introduce any user-facing change? Yes. Log info message change. ### How was this patch tested? Manually Closes #27049 from jobitmathew/imp_stop_message. Authored-by: Jobit Mathew <jobit.mathew@huawei.com> Signed-off-by: Sean Owen <srowen@gmail.com>
1 parent e04309c commit 1b0570c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

resource-managers/yarn/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ private[spark] class YarnClientSchedulerBackend(
164164

165165
super.stop()
166166
client.stop()
167-
logInfo("Stopped")
167+
logInfo("YARN client scheduler backend Stopped")
168168
}
169169

170170
override protected def updateDelegationTokens(tokens: Array[Byte]): Unit = {

0 commit comments

Comments
 (0)