Skip to content

Commit

Permalink
[SPARK-30387] Improving stop hook log message
Browse files Browse the repository at this point in the history
### 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>
  • Loading branch information
jobitmathew authored and srowen committed Jan 2, 2020
1 parent e04309c commit 1b0570c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private[spark] class YarnClientSchedulerBackend(

super.stop()
client.stop()
logInfo("Stopped")
logInfo("YARN client scheduler backend Stopped")
}

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

0 comments on commit 1b0570c

Please sign in to comment.