Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/running-on-yarn.md
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,13 @@ providers can be disabled individually by setting `spark.security.credentials.{s
The default value should be enough for most deployments.
</td>
</tr>
<tr>
<td><code>spark.yarn.log.application.report</code></td>
<td>true</td>
<td>
Whether to show the interaction reports with yarn.
</td>
</tr>
</table>

## Troubleshooting Kerberos
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -334,4 +334,9 @@ package object config {
.booleanConf
.createWithDefault(false)

private[spark] val SPARK_YARN_LOG_APPLICATION_REPORT = ConfigBuilder("spark.yarn.log.application.report")
.doc("Whether to show the interaction reports with yarn.")
.booleanConf
.createWithDefault(true)

}
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ private[spark] class YarnClientSchedulerBackend(
override def run() {
try {
val YarnAppReport(_, state, diags) =
client.monitorApplication(appId.get, logApplicationReport = true)
client.monitorApplication(appId.get,
logApplicationReport = conf.getBoolean(SPARK_YARN_LOG_APPLICATION_REPORT, true))
logError(s"YARN application has exited unexpectedly with state $state! " +
"Check the YARN application logs for more details.")
diags.foreach { err =>
Expand Down