Github user witgo commented on a diff in the pull request: https://github.com/apache/spark/pull/1180#discussion_r15352693 --- Diff: yarn/common/src/main/scala/org/apache/spark/scheduler/cluster/YarnClientSchedulerBackend.scala --- @@ -115,7 +117,33 @@ private[spark] class YarnClientSchedulerBackend( } } + private def yarnApplicationStateCheckerThread(): Thread = { + var sparkContextStopped = false + val t = new Thread { + override def run() { + while (!sparkContextStopped) { + val report = client.getApplicationReport(appId) + val state = report.getYarnApplicationState() + if (state == YarnApplicationState.FINISHED || state == YarnApplicationState.KILLED + || state == YarnApplicationState.FAILED) { + logError(s"Yarn application already ended: $state") + sc.stop() --- End diff -- Seems to be not properly stop `sc`. I have not tested in a cluster of hadoop 0.23, But, I test in the hadoop 2.3 no problem.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---