Skip to content

Commit

Permalink
EmrEtlRunner: updated Bash script to support enrichments path (fixes #…
Browse files Browse the repository at this point in the history
…916)

StorageLoader: updated combined Bash script to support enrichments path (fixes #917)
  • Loading branch information
alexanderdean committed Jul 23, 2014
1 parent 3376e85 commit c9199eb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion 3-enrich/emr-etl-runner/bin/snowplow-emr-etl-runner.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@
rvm_path=/path/to/.rvm # Typically in the $HOME of the user who installed RVM
RUNNER_PATH=/path/to/snowplow/3-enrich/snowplow-emr-etl-runner
RUNNER_CONFIG=/path/to/your-config.yml
RUNNER_ENRICHMENTS=/path/to/your/enrichment-jsons

# Load the RVM environment
export PATH=$PATH:${rvm_path}/bin
source ${rvm_path}/scripts/rvm

# Run the ETL job on EMR
export BUNDLE_GEMFILE=${RUNNER_PATH}/Gemfile
bundle exec ${RUNNER_PATH}/bin/snowplow-emr-etl-runner --config ${RUNNER_CONFIG}
bundle exec ${RUNNER_PATH}/bin/snowplow-emr-etl-runner --config ${RUNNER_CONFIG} --enrichments ${RUNNER_ENRICHMENTS}
3 changes: 2 additions & 1 deletion 4-storage/storage-loader/bin/snowplow-runner-and-loader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ rvm_path=/path/to/.rvm # Typically in the $HOME of the user who installed RVM
RUNNER_PATH=/path/to/snowplow/3-enrich/emr-etl-runner
LOADER_PATH=/path/to/snowplow/4-storage/storage-loader
RUNNER_CONFIG=/path/to/your-runner-config.yml
RUNNER_ENRICHMENTS=/path/to/your/enrichment-jsons
LOADER_CONFIG=/path/to/your-loader-config.yml

# Load the RVM environment
Expand All @@ -24,7 +25,7 @@ source ${rvm_path}/scripts/rvm

# Run the ETL job on EMR
export BUNDLE_GEMFILE=${RUNNER_PATH}/Gemfile
bundle exec ${RUNNER_PATH}/bin/snowplow-emr-etl-runner --config ${RUNNER_CONFIG}
bundle exec ${RUNNER_PATH}/bin/snowplow-emr-etl-runner --config ${RUNNER_CONFIG} --enrichments ${RUNNER_ENRICHMENTS}

# Check the damage
ret_val=$?
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ EmrEtlRunner: removed enrichment-specific parameters from config.yml.sample (#80
EmrEtlRunner: replaced enrichment-specific arguments from EmrEtlRunner (#808)
EmrEtlRunner: removed %3D code following Scalding upgrade (#849)
EmrEtlRunner: fixed contract on partition_by_run (#894)
EmrEtlRunner: updated Bash script to support enrichments path (#916)
StorageLoader: bumped to 0.3.1
StorageLoader: now looking in eu-west-1 region for s3://snowplow-hosted-assets (#895)
StorageLoader: updated combined Bash script to support enrichments path (#917)
Scala Hadoop Enrich: bumped to 0.6.0
Scala Hadoop Enrich: bumped Scala to 2.10.4 (#912)
Scala Hadoop Enrich: bumped Scalding to 0.11.1 (#911)
Expand Down

0 comments on commit c9199eb

Please sign in to comment.