diff options
author | WangTaoTheTonic <barneystinson@aliyun.com> | 2014-10-01 15:15:09 -0700 |
---|---|---|
committer | Michael Armbrust <michael@databricks.com> | 2014-10-01 15:15:24 -0700 |
commit | d61f2c15bb22253bfdda77462b1bd383987d2f5a (patch) | |
tree | a1e90441252ab3d670e76b5139d020837d18f33a /core | |
parent | fcad3fae6135bc2c9bdaf9e4c3cfe24838e63eae (diff) | |
download | spark-d61f2c15bb22253bfdda77462b1bd383987d2f5a.tar.gz spark-d61f2c15bb22253bfdda77462b1bd383987d2f5a.tar.bz2 spark-d61f2c15bb22253bfdda77462b1bd383987d2f5a.zip |
[SPARK-3658][SQL] Start thrift server as a daemon
https://issues.apache.org/jira/browse/SPARK-3658
And keep the `CLASS_NOT_FOUND_EXIT_STATUS` and exit message in `SparkSubmit.scala`.
Author: WangTaoTheTonic <barneystinson@aliyun.com>
Author: WangTao <barneystinson@aliyun.com>
Closes #2509 from WangTaoTheTonic/thriftserver and squashes the following commits:
5dcaab2 [WangTaoTheTonic] issue about coupling
8ad9f95 [WangTaoTheTonic] generalization
598e21e [WangTao] take thrift server as a daemon
Diffstat (limited to 'core')
-rw-r--r-- | core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala b/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala index 580a439c9a..f97bf67fa5 100644 --- a/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala +++ b/core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala @@ -320,6 +320,10 @@ object SparkSubmit { } catch { case e: ClassNotFoundException => e.printStackTrace(printStream) + if (childMainClass.contains("thriftserver")) { + println(s"Failed to load main class $childMainClass.") + println("You need to build Spark with -Phive.") + } System.exit(CLASS_NOT_FOUND_EXIT_STATUS) } |