class RP::EMR::Step::SetupHive

Public Instance Methods

to_hash() click to toggle source
# File lib/rp/emr/step/setup_hive.rb, line 12
def to_hash
  step.to_hash
end

Private Instance Methods

step() click to toggle source
# File lib/rp/emr/step/setup_hive.rb, line 18
def step
  RP::EMR::Step.new(
    name: "Setup Hive",
    action_on_failure: action_on_failure,
    hadoop_jar_step: {
      jar: 's3://us-east-1.elasticmapreduce/libs/script-runner/script-runner.jar',
      args: [
        's3://us-east-1.elasticmapreduce/libs/hive/hive-script',
        '--base-path',  's3://us-east-1.elasticmapreduce/libs/hive/',
        '--install-hive',
        '--hive-versions', hive_version,
      ]
    }
  )
end