anchor.diff:    esac
   
   
  -exit $RETVAL
  +exit $?
  
positive.code: START_PROG="<%= node.hadoop_spark.home %>/sbin/start-history-server.sh"  
  STOP_PROG="<%= node.hadoop_spark.home %>/sbin/stop-history-server.sh"  
  PID_FILE=/tmp/spark-<%= node.hadoop_spark.user %>-org.apache.spark.deploy.history.HistoryServer-1.pid
  RETVAL=0
  
  ulimit -n 65000
  
  EXEC_WITH_USER="su <%= node.hadoop_spark.user %> -c"
  
  start() {
    $EXEC_WITH_USER "$START_PROG"
    return $?
  }
  
negative.code: }
  
  status() {
    res=1
    if [ -f $PID_FILE ] ; then
       PID=`cat $PID_FILE`
       kill -0 $PID
       res=$?
    fi
    if [ $res -eq 0 ] ; then
     echo "sparkhistoryserver($PID) is running"
  