forked from snowplow/snowplow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
673fcac
commit 3d16d6f
Showing
2 changed files
with
61 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
[ | ||
{ | ||
"Name": "ETL Step 0: Create the SnowPlow event table as needed", | ||
"ActionOnFailure": "TERMINATE_JOB_FLOW", | ||
"HadoopJarStep": { | ||
"Jar": "/home/hadoop/contrib/streaming/hadoop-0.18-streaming.jar", | ||
"Args": [ | ||
"-input", "s3n://elasticmapreduce/samples/freebase/input/", | ||
"-output", "s3n://<bucket>/freebase/step1out/", | ||
"-mapper", "s3n://elasticmapreduce/samples/freebase/code/mapper.py" | ||
] | ||
} | ||
}, | ||
{ | ||
"Name": "ETL Step 1: extract CloudFront log files to a temporary SnowPlow data table", | ||
"ActionOnFailure": "TERMINATE_JOB_FLOW", | ||
"HadoopJarStep": { | ||
"Jar": "/home/hadoop/contrib/streaming/hadoop-0.18-streaming.jar", | ||
"Args": [ | ||
"-input", "s3n://<bucket>/freebase/step1out/", | ||
"-output", "s3n://<bucket>/freebase/step2out/", | ||
"-mapper", "s3n://elasticmapreduce/samples/freebase/code/top_sdb_mapper.rb", | ||
"-reducer", "s3n://elasticmapreduce/samples/freebase/code/top_sdb_reducer.rb", | ||
"-cacheFile", "s3n://elasticmapreduce/samples/freebase/code/base64.rb#base64.rb", | ||
"-cacheFile", "s3n://elasticmapreduce/samples/freebase/code/aws_sdb.rb#aws_sdb.rb" | ||
] | ||
} | ||
}, | ||
{ | ||
"Name": "ETL Step 2: Load the temporary event data into the SnowPlow event table", | ||
"ActionOnFailure": "TERMINATE_JOB_FLOW", | ||
"HadoopJarStep": { | ||
"Jar": "/home/hadoop/contrib/streaming/hadoop-0.18-streaming.jar", | ||
"Args": [ | ||
"-input", "s3n://elasticmapreduce/samples/freebase/input/", | ||
"-output", "s3n://<bucket>/freebase/names/step1", | ||
"-mapper", "s3n://elasticmapreduce/samples/freebase/code/name_mapper.rb", | ||
"-reducer", "s3n://elasticmapreduce/samples/freebase/code/name_reducer.rb", | ||
"-cacheFile", "s3n://elasticmapreduce/samples/freebase/code/base64.rb#base64.rb", | ||
"-cacheFile", "s3n://elasticmapreduce/samples/freebase/code/aws_sdb.rb#aws_sdb.rb" | ||
] | ||
} | ||
}, | ||
{ | ||
"Name": "ETL Step 3: Delete the temporary event data", | ||
"ActionOnFailure": "TERMINATE_JOB_FLOW", | ||
"HadoopJarStep": { | ||
"Jar": "/home/hadoop/contrib/streaming/hadoop-0.18-streaming.jar", | ||
"Args": [ | ||
"-input", "s3n://elasticmapreduce/samples/freebase/input/", | ||
"-output", "s3n://<bucket>/freebase/names/step1", | ||
"-mapper", "s3n://elasticmapreduce/samples/freebase/code/name_mapper.rb", | ||
"-reducer", "s3n://elasticmapreduce/samples/freebase/code/name_reducer.rb", | ||
"-cacheFile", "s3n://elasticmapreduce/samples/freebase/code/base64.rb#base64.rb", | ||
"-cacheFile", "s3n://elasticmapreduce/samples/freebase/code/aws_sdb.rb#aws_sdb.rb" | ||
] | ||
} | ||
} | ||
] |