Sha256: 7aa1b44195b343e6d439789b80d578fd79d99cedf38c3ff6040c31003aa184fe
Contents?: true
Size: 1.56 KB
Versions: 7
Compression:
Stored size: 1.56 KB
Contents
#!/usr/bin/env ruby require "rubygems" require "mandy" hadoop_home = HadoopConfiguration.check_home hadoop_version = HadoopConfiguration.check_version # Status & Help Message puts "\nYou are running Mandy!" puts "========================" puts puts "Using #{hadoop_version.split("\n").first} located at #{`echo $HADOOP_HOME`}" puts puts "Available Mandy Commands" puts '------------------------' { 'mandy-cat' => 'Concatenate and print files from HDFS', 'mandy-cp' => 'Copy file from HDFS', 'mandy-exists' => 'Check to see if a file exists in HDFS', 'mandy-get' => 'Copy and merge files to the local file system. The allowed formats are zip and TextRecordInputStream, use --raw for others', 'mandy-hadoop' => 'Run a Map/Reduce task on hadoop using the provided cluster config', 'mandy-hdfs' => 'Execute generic Hadoop FS command on HDFS', 'mandy-install' => 'Installs the Mandy Rubygem on several hosts via ssh.', 'mandy-kill' => 'Kill a specific Hadoop job', 'mandy-local' => 'Run a Map/Reduce task locally without requiring hadoop', 'mandy-lsr' => 'Recursively list files or directorys on HDFS', 'mandy-map' => 'Run a map task reading on STDIN and writing to STDOUT', 'mandy-mkdir' => 'Takes path uri\'s as argument and creates directories', 'mandy-mv' => 'Moves files from source to destination in HDFS', 'mandy-put' => 'Upload a file into HDFS', 'mandy-reduce' => 'Run a reduce task reading on STDIN and writing to STDOUT', 'mandy-rm' => 'Remove a file or directory from HDFS' }.each do |command, description| puts "#{command.ljust(15)} #{description}" end
Version data entries
7 entries across 7 versions & 1 rubygems
Version | Path |
---|---|
mandy-0.5.28 | bin/mandy |
mandy-0.5.27 | bin/mandy |
mandy-0.5.26 | bin/mandy |
mandy-0.5.25 | bin/mandy |
mandy-0.5.24 | bin/mandy |
mandy-0.5.23 | bin/mandy |
mandy-0.5.22 | bin/mandy |