bin/mandy-hadoop in trafficbroker-mandy-0.1.3 vs bin/mandy-hadoop in trafficbroker-mandy-0.1.5
- old
+ new
@@ -2,9 +2,14 @@
def absolute_path(path)
path =~ /^\// ? path : File.join(Dir.pwd, path)
end
+if ARGV.size==0
+ puts "USAGE: mandy-hadoop my_script.rb input_file_or_folder_on_hdfs output_folder_on_hdfs cluster-config.xml"
+ exit
+end
+
file = ARGV[0]
filename = File.basename(file)
input = ARGV[1]
output_folder = ARGV[2]
config = ARGV[3]
\ No newline at end of file