trafficbroker-mandy 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/mandy-hadoop +4 -6
- data/bin/mandy-rm +2 -2
- data/lib/mandy.rb +2 -0
- data/lib/reducers/max_reducer.rb +10 -0
- data/lib/reducers/min_reducer.rb +10 -0
- data/lib/support/tuple.rb +5 -0
- metadata +3 -1
data/bin/mandy-hadoop
CHANGED
@@ -19,18 +19,16 @@ require absolute_path(file)
|
|
19
19
|
|
20
20
|
Mandy::Job.jobs.each_with_index do |job, i|
|
21
21
|
|
22
|
-
jobconf = job.settings.map { |key, value| %(-
|
23
|
-
|
22
|
+
jobconf = job.settings.map { |key, value| %(-D #{key}='#{value}') }.join(' ')
|
24
23
|
output = File.join(output_folder, "#{i+1}-#{job.name.downcase.gsub(/\W/, '-')}")
|
25
24
|
|
26
|
-
command = %($HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/contrib/streaming/hadoop-*-streaming.jar \
|
27
|
-
-
|
25
|
+
command = %($HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/contrib/streaming/hadoop-*-streaming.jar #{jobconf}\
|
26
|
+
-conf '#{config}' \
|
28
27
|
-input "#{input}" \
|
29
28
|
-mapper "mandy-map #{filename} '#{job.name}'" \
|
30
29
|
-reducer "mandy-reduce #{filename} '#{job.name}'" \
|
31
30
|
-file "#{file}" \
|
32
|
-
-output "#{output}"
|
33
|
-
#{jobconf})
|
31
|
+
-output "#{output}")
|
34
32
|
|
35
33
|
`#{command}`
|
36
34
|
|
data/bin/mandy-rm
CHANGED
data/lib/mandy.rb
CHANGED
data/lib/support/tuple.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trafficbroker-mandy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Kent
|
@@ -46,6 +46,8 @@ files:
|
|
46
46
|
- lib/reducers/base_reducer.rb
|
47
47
|
- lib/reducers/pass_through_reducer.rb
|
48
48
|
- lib/reducers/sum_reducer.rb
|
49
|
+
- lib/reducers/max_reducer.rb
|
50
|
+
- lib/reducers/min_reducer.rb
|
49
51
|
- lib/test_runner.rb
|
50
52
|
has_rdoc: false
|
51
53
|
homepage:
|