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 /sbin/stop-thriftserver.sh | |
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 'sbin/stop-thriftserver.sh')
-rwxr-xr-x | sbin/stop-thriftserver.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/sbin/stop-thriftserver.sh b/sbin/stop-thriftserver.sh new file mode 100755 index 0000000000..4031a00d4a --- /dev/null +++ b/sbin/stop-thriftserver.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# +# Licensed to the Apache Software Foundation (ASF) under one or more +# contributor license agreements. See the NOTICE file distributed with +# this work for additional information regarding copyright ownership. +# The ASF licenses this file to You under the Apache License, Version 2.0 +# (the "License"); you may not use this file except in compliance with +# the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# Stops the thrift server on the machine this script is executed on. + +sbin="`dirname "$0"`" +sbin="`cd "$sbin"; pwd`" + +"$sbin"/spark-daemon.sh stop org.apache.spark.sql.hive.thriftserver.HiveThriftServer2 1 |