File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
yarn/common/src/main/scala/org/apache/spark/deploy/yarn Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -429,10 +429,12 @@ private[spark] trait ClientBase extends Logging {
429
429
430
430
if (logApplicationReport) {
431
431
logInfo(s " Application report from ResourceManager for app ${appId.getId} (state: $state) " )
432
+ val clientToken = Option (getClientToken(report)).getOrElse(" N/A" )
433
+ val appDiagnostics = Option (report.getDiagnostics).getOrElse(" N/A" )
432
434
val details = " \n " +
433
435
s " \t full application identifier: $appId\n " +
434
- s " \t clientToken: ${getClientToken(report)} \n " +
435
- s " \t appDiagnostics: ${report.getDiagnostics} \n " +
436
+ s " \t clientToken: $clientToken \n " +
437
+ s " \t appDiagnostics: $appDiagnostics \n " +
436
438
s " \t appMasterHost: ${report.getHost}\n " +
437
439
s " \t appQueue: ${report.getQueue}\n " +
438
440
s " \t appMasterRpcPort: ${report.getRpcPort}\n " +
You can’t perform that action at this time.
0 commit comments