|
||||
0001 #!/usr/bin/env bash 0002 0003 # 0004 # Licensed to the Apache Software Foundation (ASF) under one or more 0005 # contributor license agreements. See the NOTICE file distributed with 0006 # this work for additional information regarding copyright ownership. 0007 # The ASF licenses this file to You under the Apache License, Version 2.0 0008 # (the "License"); you may not use this file except in compliance with 0009 # the License. You may obtain a copy of the License at 0010 # 0011 # http://www.apache.org/licenses/LICENSE-2.0 0012 # 0013 # Unless required by applicable law or agreed to in writing, software 0014 # distributed under the License is distributed on an "AS IS" BASIS, 0015 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 0016 # See the License for the specific language governing permissions and 0017 # limitations under the License. 0018 # 0019 0020 # Starts the history server on the machine this script is executed on. 0021 # 0022 # Usage: start-history-server.sh 0023 # 0024 # Use the SPARK_HISTORY_OPTS environment variable to set history server configuration. 0025 # 0026 0027 if [ -z "${SPARK_HOME}" ]; then 0028 export SPARK_HOME="$(cd "`dirname "$0"`"/..; pwd)" 0029 fi 0030 0031 # NOTE: This exact class name is matched downstream by SparkSubmit. 0032 # Any changes need to be reflected there. 0033 CLASS="org.apache.spark.deploy.history.HistoryServer" 0034 0035 if [[ "$@" = *--help ]] || [[ "$@" = *-h ]]; then 0036 echo "Usage: ./sbin/start-history-server.sh [options]" 0037 pattern="Usage:" 0038 pattern+="\|Using Spark's default log4j profile:" 0039 pattern+="\|Started daemon with process name" 0040 pattern+="\|Registered signal handler for" 0041 0042 "${SPARK_HOME}"/bin/spark-class $CLASS --help 2>&1 | grep -v "$pattern" 1>&2 0043 exit 1 0044 fi 0045 0046 . "${SPARK_HOME}/sbin/spark-config.sh" 0047 . "${SPARK_HOME}/bin/load-spark-env.sh" 0048 0049 exec "${SPARK_HOME}/sbin"/spark-daemon.sh start $CLASS 1 "$@"
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |