Skip to content

Commit

Permalink
[SW-431] Allow to pass additional arguments to run-python-script.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubhava committed May 13, 2017
1 parent f08a545 commit c71d57b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions bin/run-python-script.sh
Expand Up @@ -8,22 +8,13 @@ checkSparkHome
# Verify if correct Spark version is used
checkSparkVersion


if [ $1 ] && [[ ${1} != "--"* ]]; then
SCRIPT=$1
shift
else
echo "Path to script must be set"
exit 0
fi
SCRIPT_MASTER=${MASTER:-"$DEFAULT_MASTER"}
SCRIPT_DEPLOY_MODE="cluster"
SCRIPT_DEPLOY_MODE=${DEPLOY_MODE:-"client"}
SCRIPT_DRIVER_MEMORY=${DRIVER_MEMORY:-$DEFAULT_DRIVER_MEMORY}
SCRIPT_H2O_SYS_OPS=${H2O_SYS_OPS:-""}

echo "---------"
echo " Using script (SCRIPT) : $SCRIPT"
echo " Using master (MASTER) : $SCRIPT_MASTER"
echo " Deploy mode (DEPLOY_MODE) : $SCRIPT_DEPLOY_MODE"
echo " Driver memory (DRIVER_MEMORY): $SCRIPT_DRIVER_MEMORY"
Expand Down Expand Up @@ -54,7 +45,6 @@ VERBOSE=
--py-files $PY_ZIP_FILE \
--conf spark.driver.extraJavaOptions="-XX:MaxPermSize=384m" \
$VERBOSE \
$SCRIPT \
"$@"
fi

0 comments on commit c71d57b

Please sign in to comment.