Sha256: 4abe61cde238b7427cc0a87191b5cf59e30df2972b441f12efbcacdb10461cf6

Contents?: true

Size: 513 Bytes

Versions: 24

Compression:

Stored size: 513 Bytes

Contents

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

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

24 entries across 24 versions & 2 rubygems

Version Path
trafficbroker-mandy-0.2.10 bin/mandy-rm
trafficbroker-mandy-0.2.11 bin/mandy-rm
trafficbroker-mandy-0.2.12 bin/mandy-rm
trafficbroker-mandy-0.2.13 bin/mandy-rm
trafficbroker-mandy-0.2.5.1 bin/mandy-rm
trafficbroker-mandy-0.2.5 bin/mandy-rm
trafficbroker-mandy-0.2.6 bin/mandy-rm
trafficbroker-mandy-0.2.7 bin/mandy-rm
trafficbroker-mandy-0.2.8 bin/mandy-rm
mandy-0.4 bin/mandy-rm
mandy-0.3.13 bin/mandy-rm
mandy-0.3.12 bin/mandy-rm
mandy-0.3.11 bin/mandy-rm
mandy-0.3.10 bin/mandy-rm
mandy-0.3.9 bin/mandy-rm
mandy-0.3.7 bin/mandy-rm
mandy-0.3.6 bin/mandy-rm
mandy-0.3.5 bin/mandy-rm
mandy-0.3.4 bin/mandy-rm
mandy-0.3.3 bin/mandy-rm