Sha256: b1597806d2b466f7f9111ab67a7354ff1d87a1e17a2596d28baf641c5f1b2b17
Contents?: true
Size: 377 Bytes
Versions: 14
Compression:
Stored size: 377 Bytes
Contents
#!/usr/bin/env ruby if ARGV.size==0 puts "USAGE: mandy-put local_file_or_folder hdfs_destination_location cluster-config.xml" exit end def absolute_path(path) path =~ /^\// ? path : File.join(Dir.pwd, path) end source = absolute_path(ARGV[0]) dest = ARGV[1] config = absolute_path(ARGV[2]) `$HADOOP_HOME/bin/hadoop fs -conf #{config} -copyFromLocal #{source} #{dest}`
Version data entries
14 entries across 14 versions & 1 rubygems