class AWS::EMR

Provides an expressive, object-oriented interface to Amazon Elastic MapReduce.

To use Amazon Elastic MapReduce you must first sign up here

For more information about Amazon Elastic MapReduce, see:

Credentials

You can setup default credentials for all AWS services via AWS.config:

AWS.config(
  :access_key_id => 'YOUR_ACCESS_KEY_ID',
  :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')

Or you can set them directly on the EMR interface:

emr = AWS::EMR.new(
  :access_key_id => 'YOUR_ACCESS_KEY_ID',
  :secret_access_key => 'YOUR_SECRET_ACCESS_KEY')

Job Flows

The {job_flows} method returns a collection you use to interact with your job flows.

# creating a job flow
job_flow = emr.job_flows.create(...)

# enumerating job flows
emr.job_flows.each do |job_flow|
  puts job_flow.id
end

See {JobFlowCollection} and {JobFlow} for more information on working with job flows.

Public Instance Methods

job_flows() click to toggle source

@return [JobFlowCollection] Returns a collection that represents all

job flows.
# File lib/aws/emr.rb, line 78
def job_flows
  JobFlowCollection.new(:config => config)
end
Also aliased as: jobs
jobs() click to toggle source
Alias for: job_flows