Github user yhuai commented on a diff in the pull request:
https://github.com/apache/spark/pull/7853#discussion_r39754972
--- Diff:
sql/hive-thriftserver/src/main/scala/org/apache/spark/sql/hive/thriftserver/HiveThriftServer2.scala
---
@@ -93,6 +93,11 @@ object HiveThriftServer2 extends Logging {
} else {
None
}
+ // If application was killed before HiveThriftServer2 start
successfully then SparkSubmit
+ // process can not exit, so check whether if SparkContext was
stopped.
+ if (SparkSQLEnv.sparkContext.stopped.get()) {
+ System.exit(-1)
--- End diff --
Since we have `logInfo("HiveThriftServer2 started")` at a few lines above,
can we add a log at here to say that sparkcontext is stopped and we will exit?
---
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 [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]