Sha256: 678fe2178e5e0a3bfbfe30267733a0ea3053a797e883fca7289647112dd8d64d
Contents?: true
Size: 696 Bytes
Versions: 1
Compression:
Stored size: 696 Bytes
Contents
#!/usr/bin/env ruby Dir[File.dirname(__FILE__)+'/vendor/**/lib'].each{|dir| $: << dir } require 'rubygems' require 'wukong' # # * Copy the emr.yaml from here into ~/.wukong/emr.yaml # and edit it to suit. # * Download the Amazon elastic-mapreduce runner. Get a copy from # http://elasticmapreduce.s3.amazonaws.com/elastic-mapreduce-ruby.zip # * Find out what breaks, fix it or ask us for help (coders@infochimps.org) and # submit a patch # class FooStreamer < Wukong::Streamer::LineStreamer def initialize *args super *args @line_no = 0 end def process *args yield ["%5d" % @line_no, *args] @line_no += 1 end end Wukong::Script.new(FooStreamer, FooStreamer).run
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wukong-1.5.3 | examples/emr/elastic_mapreduce_example.rb |