Class: RP::EMR::BootstrapAction

Inherits:
Object
  • Object
show all
Extended by:
Assembler
Defined in:
lib/rp/emr/bootstrap_action.rb

Overview

Bootstrap action wrapper

Examples:

def bootstrap_hadoop
  RP::EMR::BootstrapAction.new(
    name: 'Configure Hadoop',
    path: 's3://elasticmapreduce/bootstrap-actions/configure-hadoop',
    args: ['-c', 'fs.s3n.multipart.uploads.enabled=false']
  )
end

def bootstrap_daemons
  RP::EMR::BootstrapAction.new(
    name: 'Configure Daemons',
    path: 's3://elasticmapreduce/bootstrap-actions/configure-daemons',
    args: ['--namenode-heap-size=15000'],
  )
end

Instance Method Summary collapse

Instance Method Details

#to_hashObject



27
28
29
30
31
32
33
34
35
# File 'lib/rp/emr/bootstrap_action.rb', line 27

def to_hash
  {
    name: name,
    script_bootstrap_action: {
      path: path,
      args: args,
    },
  }
end