Skip to content
Snippets Groups Projects
Commit aa9134f7 authored by kalpit's avatar kalpit
Browse files

spark instance number must be present in log filename to prevent multiple...

spark instance number must be present in log filename to prevent multiple workers from overriding each other's logs
parent f08db010
No related branches found
No related tags found
No related merge requests found
...@@ -94,9 +94,9 @@ if [ "$SPARK_PID_DIR" = "" ]; then ...@@ -94,9 +94,9 @@ if [ "$SPARK_PID_DIR" = "" ]; then
fi fi
# some variables # some variables
export SPARK_LOGFILE=spark-$SPARK_IDENT_STRING-$command-$HOSTNAME.log export SPARK_LOGFILE=spark-$SPARK_IDENT_STRING-$command-$instance-$HOSTNAME.log
export SPARK_ROOT_LOGGER="INFO,DRFA" export SPARK_ROOT_LOGGER="INFO,DRFA"
log=$SPARK_LOG_DIR/spark-$SPARK_IDENT_STRING-$command-$HOSTNAME.out log=$SPARK_LOG_DIR/spark-$SPARK_IDENT_STRING-$command-$instance-$HOSTNAME.out
pid=$SPARK_PID_DIR/spark-$SPARK_IDENT_STRING-$command-$instance.pid pid=$SPARK_PID_DIR/spark-$SPARK_IDENT_STRING-$command-$instance.pid
# Set default scheduling priority # Set default scheduling priority
......
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