diff --git a/bin/utils.sh b/bin/utils.sh index cb7aa70dea19e..0804b1ed9f231 100755 --- a/bin/utils.sh +++ b/bin/utils.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash + # # Licensed to the Apache Software Foundation (ASF) under one or more # contributor license agreements. See the NOTICE file distributed with @@ -16,12 +17,9 @@ # limitations under the License. # -# * ---------------------------------------------------- * -# | Utility functions for launching Spark applications | -# * ---------------------------------------------------- * - # Gather all all spark-submit options into SUBMISSION_OPTS function gatherSparkSubmitOpts() { + if [ -z "$SUBMIT_USAGE_FUNCTION" ]; then echo "Function for printing usage of $0 is not set." 1>&2 echo "Please set usage function to shell variable 'SUBMIT_USAGE_FUNCTION' in $0" 1>&2 @@ -59,4 +57,3 @@ function gatherSparkSubmitOpts() { export SUBMISSION_OPTS export APPLICATION_OPTS } -