Skip to content

Commit 39e8c7b

Browse files
committed
Address review comments
1 parent 6619f9b commit 39e8c7b

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,9 @@ private[spark] trait ClientBase extends Logging {
7777
}
7878

7979
/**
80-
* Copy the given file to a remote file system if needed. This is used for preparing
81-
* resources for launching the ApplicationMaster container. Exposed for testing.
80+
* Copy the given file to a remote file system (e.g. HDFS) if needed.
81+
* The file is only copied if the source and destination file systems are different. This is used
82+
* for preparing resources for launching the ApplicationMaster container. Exposed for testing.
8283
*/
8384
def copyFileToRemote(
8485
destDir: Path,
@@ -409,6 +410,7 @@ private[spark] trait ClientBase extends Logging {
409410
* Report the state of an application until it has exited, either successfully or
410411
* due to some failure, then return the application state.
411412
*
413+
* @param appId ID of the application to monitor.
412414
* @param returnOnRunning Whether to also return the application state when it is RUNNING.
413415
* @param logApplicationReport Whether to log details of the application report every iteration.
414416
* @return state of the application, one of FINISHED, FAILED, KILLED, and RUNNING.
@@ -425,9 +427,8 @@ private[spark] trait ClientBase extends Logging {
425427
val state = report.getYarnApplicationState
426428

427429
if (logApplicationReport) {
428-
logInfo(s"Application report from ResourceManager for app ${appId.getId} (state: $state)")
430+
logInfo(s"Application report for $appId (state: $state)")
429431
val details = Seq[(String, String)](
430-
("full identifier", appId.toString),
431432
("client token", getClientToken(report)),
432433
("diagnostics", report.getDiagnostics),
433434
("ApplicationMaster host", report.getHost),

yarn/common/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ private[spark] class YarnClientSchedulerBackend(
107107
"It might have been killed or unable to launch application master.")
108108
}
109109
if (state == YarnApplicationState.RUNNING) {
110-
logInfo(s"Application ${appId.getId} has started running.")
110+
logInfo(s"Application $appId has started running.")
111111
}
112112
}
113113

0 commit comments

Comments
 (0)