Skip to content
Snippets Groups Projects
Commit 89a20b83 authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Delete some code that was added back in a merge and print less info in

spark-daemon
parent 6edef9c8
No related branches found
No related tags found
No related merge requests found
...@@ -75,8 +75,6 @@ if [ "$SPARK_IDENT_STRING" = "" ]; then ...@@ -75,8 +75,6 @@ if [ "$SPARK_IDENT_STRING" = "" ]; then
export SPARK_IDENT_STRING="$USER" export SPARK_IDENT_STRING="$USER"
fi fi
export SPARK_PRINT_LAUNCH_COMMAND="1"
# get log directory # get log directory
if [ "$SPARK_LOG_DIR" = "" ]; then if [ "$SPARK_LOG_DIR" = "" ]; then
export SPARK_LOG_DIR="$SPARK_HOME/logs" export SPARK_LOG_DIR="$SPARK_HOME/logs"
...@@ -126,7 +124,6 @@ case $startStop in ...@@ -126,7 +124,6 @@ case $startStop in
spark_rotate_log $log spark_rotate_log $log
echo starting $command, logging to $log echo starting $command, logging to $log
echo "Spark Daemon: $command" > $log
cd "$SPARK_PREFIX" cd "$SPARK_PREFIX"
nohup nice -n $SPARK_NICENESS "$SPARK_PREFIX"/spark-class $command "$@" >> "$log" 2>&1 < /dev/null & nohup nice -n $SPARK_NICENESS "$SPARK_PREFIX"/spark-class $command "$@" >> "$log" 2>&1 < /dev/null &
echo $! > $pid echo $! > $pid
......
...@@ -77,13 +77,6 @@ else ...@@ -77,13 +77,6 @@ else
exit 1 exit 1
fi fi
fi fi
if [[ ! -f "$FWDIR/RELEASE" && -z "$SCALA_LIBRARY_PATH" ]]; then
if [ -z "$SCALA_HOME" ]; then
echo "SCALA_HOME is not set" >&2
exit 1
fi
SCALA_LIBRARY_PATH="$SCALA_HOME/lib"
fi
# Set SPARK_MEM if it isn't already set since we also use it for this process # Set SPARK_MEM if it isn't already set since we also use it for this process
SPARK_MEM=${SPARK_MEM:-512m} SPARK_MEM=${SPARK_MEM:-512m}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment