Class: Commands::HiveSiteCommand
- Inherits:
-
HiveCommand
- Object
- Command
- StepCommand
- HiveCommand
- Commands::HiveSiteCommand
- Defined in:
- lib/commands.rb
Instance Attribute Summary
Attributes inherited from HiveCommand
Attributes inherited from StepCommand
#apps_path, #args, #beta_path, #enable_debugging_path, #hive_cmd, #hive_path, #pig_cmd, #pig_path, #script_runner_path, #step_action, #step_name
Attributes inherited from Command
#arg, #commands, #description, #logger, #name
Instance Method Summary collapse
Methods inherited from HiveCommand
Methods inherited from StepCommand
#default_enable_debugging_path, #default_hive_cmd, #default_hive_path, #default_pig_cmd, #default_pig_path, #default_resize_jobflow_cmd, #default_script_runner_path, #ensure_install_cmd, #extra_args, #initialize, #script_args, #validate
Methods inherited from Command
#enact, #get_field, #has_value, #have, #initialize, #option, #require, #require_single_jobflow, #resolve, #validate
Constructor Details
This class inherits a constructor from Commands::StepCommand
Instance Method Details
#reorder_steps(jobflow, sc) ⇒ Object
432 433 434 |
# File 'lib/commands.rb', line 432 def reorder_steps(jobflow, sc) return ensure_install_cmd(jobflow, sc, HiveInteractiveCommand) end |
#steps ⇒ Object
419 420 421 422 423 424 425 426 427 428 429 430 |
# File 'lib/commands.rb', line 419 def steps step = { "Name" => get_field(:step_name, "Install Hive Site Configuration"), "ActionOnFailure" => get_field(:step_action, "CANCEL_AND_WAIT"), "HadoopJarStep" => { "Jar" => get_field(:script_runner_path), "Args" => get_field(:hive_cmd) + [ "--install-hive-site", "--hive-site=#{@arg}" ] + extra_args + get_version_args(true) } } return [ step ] end |