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 |
---|---|
mandy-0.3.2 | bin/mandy-rm |
mandy-0.3.1 | bin/mandy-rm |
mandy-0.2.15 | bin/mandy-rm |
mandy-0.2.14 | bin/mandy-rm |