Skip to content

Commit

Permalink
[SPARK-24873][YARN] Turn off spark-shell noisy log output
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

[SPARK-24182](#21243) changed the `logApplicationReport` from `false` to `true`. This pr revert it to `false`. otherwise `spark-shell` will show noisy log output:
```java
...
18/07/16 04:46:25 INFO Client: Application report for application_1530676576026_54551 (state: RUNNING)
18/07/16 04:46:26 INFO Client: Application report for application_1530676576026_54551 (state: RUNNING)
...
```

Closes #21827

## How was this patch tested?

 manual tests

Author: Yuming Wang <[email protected]>

Closes #21784 from wangyum/SPARK-24182.
  • Loading branch information
wangyum authored and HyukjinKwon committed Jul 21, 2018
1 parent 106880e commit d7ae424
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ private[spark] class YarnClientSchedulerBackend(
override def run() {
try {
val YarnAppReport(_, state, diags) =
client.monitorApplication(appId.get, logApplicationReport = true)
client.monitorApplication(appId.get, logApplicationReport = false)
logError(s"YARN application has exited unexpectedly with state $state! " +
"Check the YARN application logs for more details.")
diags.foreach { err =>
Expand Down

0 comments on commit d7ae424

Please sign in to comment.