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

Version Path
trafficbroker-mandy-0.1.5 bin/mandy-put
trafficbroker-mandy-0.1.6 bin/mandy-put
trafficbroker-mandy-0.1.7 bin/mandy-put
trafficbroker-mandy-0.1.8 bin/mandy-put
trafficbroker-mandy-0.1.9 bin/mandy-put
trafficbroker-mandy-0.2.2 bin/mandy-put
trafficbroker-mandy-0.2.3 bin/mandy-put
trafficbroker-mandy-0.2.4.2 bin/mandy-put
trafficbroker-mandy-0.2.4.3 bin/mandy-put
trafficbroker-mandy-0.2.4.4 bin/mandy-put
trafficbroker-mandy-0.2.4.5 bin/mandy-put
trafficbroker-mandy-0.2.4.6 bin/mandy-put
trafficbroker-mandy-0.2.4 bin/mandy-put
trafficbroker-mandy-0.2 bin/mandy-put