@@ -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),
0 commit comments