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