Skip to content
Snippets Groups Projects
Commit 66b7bea7 authored by azuryyu's avatar azuryyu
Browse files

Make App report interval configurable during 'run on Yarn'

parent a8bb8638
No related branches found
No related tags found
No related merge requests found
......@@ -437,8 +437,10 @@ class Client(conf: Configuration, args: ClientArguments) extends YarnClientImpl
}
def monitorApplication(appId: ApplicationId): Boolean = {
val interval = System.getProperty("spark.yarn.report.interval", "1000").toLong
while (true) {
Thread.sleep(1000)
Thread.sleep(interval)
val report = super.getApplicationReport(appId)
logInfo("Application report from ASM: \n" +
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment