elasticity 6.0.6 → 6.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/HISTORY.md +7 -3
- data/README.md +5 -0
- data/lib/elasticity/job_flow.rb +2 -0
- data/lib/elasticity/s3distcp_step.rb +5 -7
- data/lib/elasticity/version.rb +1 -1
- data/spec/lib/elasticity/aws_request_v4_spec.rb +1 -1
- data/spec/lib/elasticity/job_flow_spec.rb +12 -0
- data/spec/lib/elasticity/s3distcp_step_spec.rb +11 -2
- metadata +26 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8acfedb244b21d3b8ab10c2c78b33006f15b9c9
|
4
|
+
data.tar.gz: 72978cfbb6598c283771630159f2203b0d2722f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cb3ade000c41023d37fba15f48df3be25f2d02ab7a62ee1e75c3fdc576a88d7cde639b8cff8b4144ba2b9d31ce281f6e0c55b3aae1573443e4b890d8b1db3ad6
|
7
|
+
data.tar.gz: 344e4daeb4d74e6fdefdc74a8ad6c05a3a68fa5c3b623197c5b0935a03081bb2291ffaf9da307c88cfb243228a360c6190831d0d2846130cbcfe14af48cc2723
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.3.0
|
data/HISTORY.md
CHANGED
@@ -1,10 +1,14 @@
|
|
1
|
+
## 6.0.7 - February 29, 2016
|
2
|
+
|
3
|
+
- Including PR [#125](https://github.com/rslifka/elasticity/pull/125) - "AMI 4.x support". Thank you [@fblundun](https://github.com/fblundun)!
|
4
|
+
|
1
5
|
## 6.0.6 - February 29, 2016
|
2
6
|
|
3
|
-
-
|
4
|
-
|
7
|
+
- Including PR [#120](https://github.com/rslifka/elasticity/pull/120) - "EMR Applications and support for release_label". Thank you [@robert2d](https://github.com/robert2d)!
|
8
|
+
|
5
9
|
## 6.0.5 - August 28, 2015
|
6
10
|
|
7
|
-
-
|
11
|
+
- Including PR [#119](https://github.com/rslifka/elasticity/pull/119) - "Error handling for API rate limiting". Thank you [@robert2d](https://github.com/robert2d)!
|
8
12
|
|
9
13
|
## 6.0.4 - August 3, 2015
|
10
14
|
|
data/README.md
CHANGED
@@ -131,6 +131,7 @@ jobflow.region = 'us-east-1'
|
|
131
131
|
jobflow.instance_count = 2
|
132
132
|
jobflow.master_instance_type = 'm1.small'
|
133
133
|
jobflow.slave_instance_type = 'm1.small'
|
134
|
+
jobflow.additonal_info = 'additonal info'
|
134
135
|
```
|
135
136
|
|
136
137
|
### EMR Applications (optional needs release_label >= 4.0.0)
|
@@ -334,6 +335,10 @@ copy_step = Elasticity::S3DistCpStep.new
|
|
334
335
|
copy_step.arguments = [...]
|
335
336
|
|
336
337
|
jobflow.add_step(copy_step)
|
338
|
+
|
339
|
+
# For AMI < 4.x you need to specifify legacy argument
|
340
|
+
copy_step = Elasticity::S3DistCpStep.new(true)
|
341
|
+
|
337
342
|
```
|
338
343
|
|
339
344
|
## 7 - Upload Assets (optional)
|
data/lib/elasticity/job_flow.rb
CHANGED
@@ -28,6 +28,7 @@ module Elasticity
|
|
28
28
|
attr_accessor :service_role
|
29
29
|
attr_accessor :jobflow_id
|
30
30
|
attr_accessor :aws_applications
|
31
|
+
attr_accessor :additional_info
|
31
32
|
|
32
33
|
def initialize
|
33
34
|
@action_on_failure = 'TERMINATE_JOB_FLOW'
|
@@ -201,6 +202,7 @@ module Elasticity
|
|
201
202
|
config[:tags] = jobflow_tags if @tags
|
202
203
|
config[:job_flow_role] = @job_flow_role if @job_flow_role
|
203
204
|
config[:service_role] = @service_role if @service_role
|
205
|
+
config[:additional_info] = @additional_info if @additional_info
|
204
206
|
config[:bootstrap_actions] = @bootstrap_actions.map(&:to_aws_bootstrap_action) unless @bootstrap_actions.empty?
|
205
207
|
config[:applications] = @aws_applications.map(&:to_hash) if valid_aws_applications?
|
206
208
|
config
|
@@ -1,12 +1,10 @@
|
|
1
1
|
module Elasticity
|
2
|
-
|
3
2
|
class S3DistCpStep < CustomJarStep
|
4
|
-
|
5
|
-
|
6
|
-
|
3
|
+
def initialize(legacy = false)
|
4
|
+
path = '/usr/share/aws/emr/s3-dist-cp/lib/s3-dist-cp.jar'
|
5
|
+
path = '/home/hadoop/lib/emr-s3distcp-1.0.jar' if legacy # For AMI version < 4
|
6
|
+
super(path)
|
7
7
|
@name = 'Elasticity S3DistCp Step'
|
8
8
|
end
|
9
|
-
|
10
9
|
end
|
11
|
-
|
12
|
-
end
|
10
|
+
end
|
data/lib/elasticity/version.rb
CHANGED
@@ -123,7 +123,7 @@ describe Elasticity::AwsRequestV4 do
|
|
123
123
|
|
124
124
|
describe '.aws_v4_signature' do
|
125
125
|
it 'should create the proper signature' do
|
126
|
-
subject.send(:aws_v4_signature).should == '
|
126
|
+
subject.send(:aws_v4_signature).should == '2012c7d0d1fecd99b023d2a81a5930300436e4739f274301932941506e8fc9bf'
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
@@ -24,6 +24,7 @@ describe Elasticity::JobFlow do
|
|
24
24
|
expect(subject.enable_debugging).to eql(false)
|
25
25
|
expect(subject.job_flow_role).to eql(nil)
|
26
26
|
expect(subject.service_role).to eql(nil)
|
27
|
+
expect(subject.additional_info).to eql(nil)
|
27
28
|
expect(subject.jobflow_id).to eql(nil)
|
28
29
|
end
|
29
30
|
end
|
@@ -63,6 +64,17 @@ describe Elasticity::JobFlow do
|
|
63
64
|
|
64
65
|
end
|
65
66
|
|
67
|
+
describe '#additional_info=' do
|
68
|
+
context 'when set' do
|
69
|
+
before do
|
70
|
+
subject.additional_info = 'additional info'
|
71
|
+
end
|
72
|
+
it 'additional_info is a string' do
|
73
|
+
expect(subject.additional_info).to eq('additional info')
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
66
78
|
describe '#enable_debugging=' do
|
67
79
|
|
68
80
|
context 'when a log_uri is present' do
|
@@ -6,7 +6,16 @@ describe Elasticity::S3DistCpStep do
|
|
6
6
|
|
7
7
|
it 'should set the appropriate default fields' do
|
8
8
|
expect(subject.name).to eql('Elasticity S3DistCp Step')
|
9
|
-
expect(subject.jar).to eql('/
|
9
|
+
expect(subject.jar).to eql('/usr/share/aws/emr/s3-dist-cp/lib/s3-dist-cp.jar')
|
10
10
|
end
|
11
11
|
|
12
|
-
|
12
|
+
context 'legacy' do
|
13
|
+
|
14
|
+
subject { described_class.new(true) }
|
15
|
+
|
16
|
+
it 'sets the correct JAR location' do
|
17
|
+
expect(subject.jar).to eql('/home/hadoop/lib/emr-s3distcp-1.0.jar')
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
end
|
metadata
CHANGED
@@ -1,125 +1,125 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elasticity
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.0.
|
4
|
+
version: 6.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Slifka
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-01
|
11
|
+
date: 2016-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: fog
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.0'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: unf
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.1'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.1'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: factory_girl
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '4.0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - ~>
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '4.0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fakefs
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - ~>
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.4.0
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - ~>
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.4.0
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - ~>
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0.9'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - ~>
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0.9'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - ~>
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '3.0'
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- - ~>
|
108
|
+
- - "~>"
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '3.0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: timecop
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
|
-
- - ~>
|
115
|
+
- - "~>"
|
116
116
|
- !ruby/object:Gem::Version
|
117
117
|
version: '0.6'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
|
-
- - ~>
|
122
|
+
- - "~>"
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0.6'
|
125
125
|
description: Streamlined, programmatic access to Amazon's Elastic Map Reduce service,
|
@@ -129,11 +129,11 @@ executables: []
|
|
129
129
|
extensions: []
|
130
130
|
extra_rdoc_files: []
|
131
131
|
files:
|
132
|
-
- .gitignore
|
133
|
-
- .rspec
|
134
|
-
- .ruby-gemset
|
135
|
-
- .ruby-version
|
136
|
-
- .travis.yml
|
132
|
+
- ".gitignore"
|
133
|
+
- ".rspec"
|
134
|
+
- ".ruby-gemset"
|
135
|
+
- ".ruby-version"
|
136
|
+
- ".travis.yml"
|
137
137
|
- Gemfile
|
138
138
|
- Guardfile
|
139
139
|
- HISTORY.md
|
@@ -204,17 +204,17 @@ require_paths:
|
|
204
204
|
- lib
|
205
205
|
required_ruby_version: !ruby/object:Gem::Requirement
|
206
206
|
requirements:
|
207
|
-
- -
|
207
|
+
- - ">="
|
208
208
|
- !ruby/object:Gem::Version
|
209
209
|
version: '0'
|
210
210
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
|
-
- -
|
212
|
+
- - ">="
|
213
213
|
- !ruby/object:Gem::Version
|
214
214
|
version: '0'
|
215
215
|
requirements: []
|
216
216
|
rubyforge_project:
|
217
|
-
rubygems_version: 2.
|
217
|
+
rubygems_version: 2.5.1
|
218
218
|
signing_key:
|
219
219
|
specification_version: 4
|
220
220
|
summary: Streamlined, programmatic access to Amazon's Elastic Map Reduce service.
|