Sha256: 54f829cf8d756848fbd5daa5a7aa048049ff582122a398efd3ee5c72cbb33a12
Contents?: true
Size: 622 Bytes
Versions: 15
Compression:
Stored size: 622 Bytes
Contents
#!/usr/bin/env ruby require 'optparse' require 'ostruct' require "rubygems" require "mandy" HadoopConfiguration.check_home_and_version exec('mandy-kill -h') unless ARGV.size >= 1 options = OpenStruct.new OptionParser.new do |opts| opts.banner = "USAGE: mandy-kill job [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! job = ARGV[0] config = options.config || 'cluster.xml' `$HADOOP_HOME/bin/hadoop job -conf #{config} -kill #{job}`
Version data entries
15 entries across 15 versions & 1 rubygems