Class: Hadupils::Commands::Hive

Inherits:
SimpleCommand show all
Includes:
HadoopExt, HiveExt, UserConf
Defined in:
lib/hadupils/commands.rb

Instance Attribute Summary

Attributes inherited from SimpleCommand

#params

Instance Method Summary collapse

Methods included from UserConf

#user_config

Methods included from HiveExt

#hive_ext

Methods included from HadoopExt

#hadoop_ext

Methods inherited from SimpleCommand

#initialize, run, #successful?

Constructor Details

This class inherits a constructor from Hadupils::Commands::SimpleCommand

Instance Method Details

#assemble_parameters(parameters) ⇒ Object



85
86
87
# File 'lib/hadupils/commands.rb', line 85

def assemble_parameters(parameters)
  user_config.hivercs + hadoop_ext.hivercs + hive_ext.hivercs + parameters
end

#runObject



89
90
91
# File 'lib/hadupils/commands.rb', line 89

def run
  Hadupils::Runners::Hive.run assemble_parameters(params), hive_ext.hive_aux_jars_path
end