DIR=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
ROOT_DIR=${DIR}/..

cd ..
mvn clean package
echo "y" | rm -rf test/deploy/samza/*
mkdir -p test/deploy/samza && tar -xvf target/rico-samza-druid*.tar.gz -C test/deploy/samza
cd -

export SAMZA_CONTAINER_NAME=$1
export JAVA_OPTS="-Dlog4j.configuration=file://${ROOT_DIR}/../src/main/resources/log4j.properties"

(cd ${ROOT_DIR}/deploy/samza && exec ./bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://${ROOT_DIR}/../src/main/config/$1.properties)

Add a samba local job runner.
Add a samba local job runner.
