#! /bin/bash

export BASE_DIR="`dirname $BASH_SOURCE`/.."

if [[ -z "${SPARK_CONF_DIR}" ]]; then
  export SPARK_CONF_DIR="$BASE_DIR/conf"
fi

exec java -jar $BASE_DIR/lib/emr-serverless-spark-tool-*.jar "$@"
