Sha256: c311adac900ef4506838e18272a805a0dd896a3d5736925a314138c1dbd6b5ea
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'ostruct' require "rubygems" require "mandy" HadoopConfiguration.check_home_and_version exec('mandy-lsr -h') unless ARGV.size == 1 options = OpenStruct.new OptionParser.new do |opts| opts.banner = "USAGE: mandy-lsr file_or_directory" 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' list = system("$HADOOP_HOME/bin/hadoop fs -conf #{config} -lsr #{file}") puts list
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mandy-0.5.13 | bin/mandy-lsr |
mandy-0.5.11 | bin/mandy-lsr |