Module: Cawcaw::Command::Hadoop

Defined in:
lib/cawcaw/command/hadoop.rb

Defined Under Namespace

Modules: Dfs

Class Method Summary collapse

Class Method Details

.run(argv, input_stream = $stdin, output_stream = $stdout) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'lib/cawcaw/command/hadoop.rb', line 4

def self.run(argv, input_stream=$stdin, output_stream=$stdout)
  command = argv.shift
  case command
  when "dfs"
    return Cawcaw::Command::Hadoop::Dfs.run(argv, input_stream, output_stream)
  else
    STDERR.puts "invalid hadoop command: '#{command}'"
  end
end