Sha256: 6546400e86345e10c0ca840ac516dd2c9679591cff36d537165be72ea832a132
Contents?: true
Size: 693 Bytes
Versions: 7
Compression:
Stored size: 693 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'ostruct' require "rubygems" require "mandy" HadoopConfiguration.check_home_and_version exec('mandy-mv -h') unless ARGV.size >= 2 options = OpenStruct.new OptionParser.new do |opts| opts.banner = "USAGE: mandy-mv source destination [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! source = ARGV[0] destination = ARGV[1] config = options.config || 'cluster.xml' `$HADOOP_HOME/bin/hadoop fs -conf #{config} -mv #{source} #{destination}` exit($?.exitstatus)
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
mandy-0.5.28 | bin/mandy-mv |
mandy-0.5.27 | bin/mandy-mv |
mandy-0.5.26 | bin/mandy-mv |
mandy-0.5.25 | bin/mandy-mv |
mandy-0.5.24 | bin/mandy-mv |
mandy-0.5.23 | bin/mandy-mv |
mandy-0.5.22 | bin/mandy-mv |