Skip to content

Instantly share code, notes, and snippets.

@mreid-moz
Created September 27, 2016 19:09
Show Gist options
  • Save mreid-moz/e70742c74c7205261c60c32f7eebf344 to your computer and use it in GitHub Desktop.
Save mreid-moz/e70742c74c7205261c60c32f7eebf344 to your computer and use it in GitHub Desktop.
#!/bin/bash
if [[ -z "$bucket" || -z "$date" ]]; then
echo "Missing arguments!" 1>&2
exit 1
fi
git clone https://github.com/mreid-moz/telemetry-batch-view.git
cd telemetry-batch-view
git checkout addons_view
sbt assembly
spark-submit --master yarn \
--deploy-mode client \
--class com.mozilla.telemetry.views.AddonsView \
target/scala-2.11/telemetry-batch-view-1.1.jar \
--bucket $bucket \
--from $date \
--to $date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment