Sha256: dbfbd5996c3d21a6d0a60cc60a4d38ef8b605119b37d3ce7bc92456063df096e

Contents?: true

Size: 557 Bytes

Versions: 40

Compression:

Stored size: 557 Bytes

Contents

#!/usr/bin/env ruby
require 'optparse'
require 'ostruct'

exec('mandy-rm -h') unless ARGV.size >= 1


options = OpenStruct.new

OptionParser.new do |opts|
  opts.banner = "USAGE: mandy-rm file_or_folder_on_hdfs [options]"

  opts.on("-c", "--conf HADOOP_CONF", "Use this cluster xml config file.") do |config|
    options.config = config
  end
  
  opts.on_tail("-h", "--help", "Show this message") do
    puts opts
    exit
  end
end.parse!

file = ARGV[0]
config = options.config || 'cluster.xml'

`$HADOOP_HOME/bin/hadoop fs -conf #{config} -rmr #{file}`

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
mandy-0.5.9 bin/mandy-rm
mandy-0.5.8 bin/mandy-rm
mandy-0.5.7 bin/mandy-rm
mandy-0.5.6 bin/mandy-rm
mandy-0.5.5 bin/mandy-rm
mandy-0.5.3 bin/mandy-rm
mandy-0.5.2 bin/mandy-rm
mandy-0.5.1 bin/mandy-rm
mandy-0.5 bin/mandy-rm
mandy-0.4.996 bin/mandy-rm
mandy-0.4.995 bin/mandy-rm
mandy-0.4.994 bin/mandy-rm
mandy-0.4.993 bin/mandy-rm
mandy-0.4.992 bin/mandy-rm
mandy-0.4.991 bin/mandy-rm
mandy-0.4.99 bin/mandy-rm
mandy-0.4.98 bin/mandy-rm
mandy-0.4.97 bin/mandy-rm
mandy-0.4.96 bin/mandy-rm
mandy-0.4.95 bin/mandy-rm