mandy 0.4.991 → 0.4.992

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/mandy-hadoop +4 -2
  3. data/bin/mandy-local +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.991
1
+ 0.4.992
@@ -49,7 +49,9 @@ end
49
49
 
50
50
  file = ARGV[0]
51
51
  filename = File.basename(file)
52
- input = ARGV[1]
52
+ inputs = ARGV[1].split(",")
53
+ input = inputs.map {|path| "-input \"#{path}\""}.join(" ")
54
+
53
55
  output_folder = ARGV[2]
54
56
  config = options.config || 'cluster.xml'
55
57
  puts "Packaging Gems for distribution..."
@@ -79,7 +81,7 @@ begin
79
81
  command = %($HADOOP_HOME/bin/hadoop jar $HADOOP_HOME/contrib/streaming/hadoop-*-streaming.jar #{jobconf}\
80
82
  -files "#{payload}","#{bootstrap_file}" \
81
83
  -conf '#{config}' \
82
- -input "#{input}" \
84
+ #{input} \
83
85
  #{ inputreader.nil? ? '' : "-inputreader \"#{inputreader}\"" } \
84
86
  -mapper "ruby bootstrap.rb #{File.basename(payload)} map #{filename} '#{job.name}'" \
85
87
  -reducer "ruby bootstrap.rb #{File.basename(payload)} reduce #{filename} '#{job.name}'" \
@@ -39,7 +39,7 @@ end
39
39
 
40
40
  set_env(options.cmdenv) if options.cmdenv
41
41
  file = absolute_path(ARGV[0])
42
- input = absolute_path(ARGV[1])
42
+ input = ARGV[1].split(",").map {|f| absolute_path(f)}.join(" ")
43
43
  output_folder = FileUtils.mkdir_p(absolute_path(ARGV[2]))
44
44
  require file
45
45
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mandy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.991
4
+ version: 0.4.992
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Kent