Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SW-431] Allow to pass additional arguments to run-python-script.sh #275

Merged
merged 1 commit into from May 13, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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_EGG_FILE \
--conf spark.driver.extraJavaOptions="-XX:MaxPermSize=384m" \
$VERBOSE \
$SCRIPT \
"$@"
fi