lib/elasticity/hive_step.rb in elasticity-2.4 vs lib/elasticity/hive_step.rb in elasticity-2.5

- old
+ new

@@ -15,11 +15,11 @@ @variables = { } @action_on_failure = 'TERMINATE_JOB_FLOW' end def to_aws_step(job_flow) - args = %w(s3://elasticmapreduce/libs/hive/hive-script --run-hive-script --args) + args = %w(s3://elasticmapreduce/libs/hive/hive-script --base-path s3://elasticmapreduce/libs/hive/ --hive-versions latest --run-hive-script --args) args.concat(['-f', @script]) @variables.keys.sort.each do |name| args.concat(['-d', "#{name}=#{@variables[name]}"]) end { @@ -41,14 +41,14 @@ :action_on_failure => 'TERMINATE_JOB_FLOW', :hadoop_jar_step => { :jar => 's3://elasticmapreduce/libs/script-runner/script-runner.jar', :args => [ 's3://elasticmapreduce/libs/hive/hive-script', - '--base-path', - 's3://elasticmapreduce/libs/hive/', - '--install-hive', - '--hive-versions', - 'latest' + '--base-path', + 's3://elasticmapreduce/libs/hive/', + '--install-hive', + '--hive-versions', + 'latest' ], }, :name => 'Elasticity - Install Hive' } end \ No newline at end of file