Module: Wukong::Hadoop::Overwritables

Included in:
HadoopRunner
Defined in:
lib/wukong-hadoop/runner/overwritables.rb

Overview

A separate module to allow easy overriding from other plugins.

Instance Method Summary collapse

Instance Method Details

#input_pathsString

The input paths to read from.

Returns:

  • (String)


10
11
12
# File 'lib/wukong-hadoop/runner/overwritables.rb', line 10

def input_paths
  (settings[:input] || [])
end

#output_pathString

The output path to write to.

Returns:

  • (String)


17
18
19
# File 'lib/wukong-hadoop/runner/overwritables.rb', line 17

def output_path
  settings[:output]
end

#params_to_passConfigliere::Param

Returns the parameters to pass to invocations of wu-local.

This is separated out as a separate method so that it can easily be overriden by other plugins.

Returns:

  • (Configliere::Param)


27
28
29
# File 'lib/wukong-hadoop/runner/overwritables.rb', line 27

def params_to_pass
  settings
end