pipely 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d3a0aea2c124ee3ec4cb3e504d87ca54eb9e7e66
4
- data.tar.gz: b7d38398007feba37baf0ec9b733b221f636ac6d
3
+ metadata.gz: 74943132df56cd3648e12d5f45fb4761fb4bc3d2
4
+ data.tar.gz: bee0d005acd89ba86f703090877350f667120e3f
5
5
  SHA512:
6
- metadata.gz: 3c9b0e0a60b928c6408fa4fb6555a3da1f076408f7b8a18c8c818b484ebe476a3435a6563e3aa255c068c2505d3046227542678a3898b64c6b81b45fe0e0eccb
7
- data.tar.gz: f74a577528bf0dbc6474116a6e7264118871f3ba36ded404291a884e7091dd56d1c3a324ea406f6413489302c0a1a490b40e166317979f7355faeef788c7e560
6
+ metadata.gz: 1e98b2c4ea1c5042b70b8a56f87b11a45211444f9b7d7fbae84bf27ddea676f11d1d51a06315599581743e62674618d818ae2c896ca8be3fda01999cfc02185c
7
+ data.tar.gz: 69f416836edc06e0a24b8fea78ad1568b7a1ecea873e63ad58a7d598c0e50126067bc33ff0ea7eed7879a89ffe4b69d43fd6ddfcb890a0f8eda3e95ee4f90e3f
@@ -25,7 +25,7 @@ module Pipely
25
25
  end
26
26
 
27
27
  (options[:defs] || {}).each do |name, value|
28
- parts += ['-D', "#{name}=#{value}"]
28
+ parts += ['-D', "#{name}=#{value}".gsub(',', "\\,")]
29
29
  end
30
30
 
31
31
  Array(options[:input]).each do |input|
@@ -1,3 +1,3 @@
1
1
  module Pipely
2
- VERSION = "0.6.1" unless defined?(::Pipely::VERSION)
2
+ VERSION = "0.6.2" unless defined?(::Pipely::VERSION)
3
3
  end
@@ -116,10 +116,10 @@ describe Pipely::Build::Template do
116
116
  :output => '/output_dir/',
117
117
  :mapper => '/mapper.rb',
118
118
  :reducer => 'org.apache.hadoop.mapred.lib.IdentityReducer',
119
- :defs => {'name' => 'value'}
119
+ :defs => {'mapred.text.key.partitioner.options' => '-k1,1'}
120
120
  )
121
121
 
122
- expect(step).to eq("/home/hadoop/contrib/streaming/hadoop-streaming.jar,-D,name=value,-input,s3n://asset-bucket/run-prefix/\#{format(@scheduledStartTime,'YYYY-MM-dd_HHmmss')}/input_dir/,-output,s3://asset-bucket/run-prefix/\#{format(@scheduledStartTime,'YYYY-MM-dd_HHmmss')}/output_dir/,-mapper,s3n://step-bucket/run-prefix/mapper.rb,-reducer,org.apache.hadoop.mapred.lib.IdentityReducer")
122
+ expect(step).to eq('/home/hadoop/contrib/streaming/hadoop-streaming.jar,-D,mapred.text.key.partitioner.options=-k1\\,1,-input,s3n://asset-bucket/run-prefix/#{format(@scheduledStartTime,\'YYYY-MM-dd_HHmmss\')}/input_dir/,-output,s3://asset-bucket/run-prefix/#{format(@scheduledStartTime,\'YYYY-MM-dd_HHmmss\')}/output_dir/,-mapper,s3n://step-bucket/run-prefix/mapper.rb,-reducer,org.apache.hadoop.mapred.lib.IdentityReducer')
123
123
  end
124
124
  end
125
125
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pipely
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Gillooly