trafficbroker-mandy 0.1.8 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/mandy-get +16 -0
- metadata +5 -2
data/bin/mandy-get
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
if ARGV.size==0
|
4
|
+
puts "USAGE: mandy-get hdfs_file_location local_file_destination cluster-config.xml"
|
5
|
+
exit
|
6
|
+
end
|
7
|
+
|
8
|
+
def absolute_path(path)
|
9
|
+
path =~ /^\// ? path : File.join(Dir.pwd, path)
|
10
|
+
end
|
11
|
+
|
12
|
+
remote_file = ARGV[0]
|
13
|
+
local_file = ARGV[1]
|
14
|
+
config = absolute_path(ARGV[2])
|
15
|
+
|
16
|
+
`$HADOOP_HOME/bin/hadoop fs -conf #{config} -getmerge #{remote_file} #{local_file}`
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trafficbroker-mandy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andy Kent
|
@@ -21,6 +21,7 @@ executables:
|
|
21
21
|
- mandy-local
|
22
22
|
- mandy-map
|
23
23
|
- mandy-put
|
24
|
+
- mandy-get
|
24
25
|
- mandy-reduce
|
25
26
|
- mandy-rm
|
26
27
|
- mandy-install
|
@@ -32,6 +33,7 @@ files:
|
|
32
33
|
- bin/mandy-hadoop
|
33
34
|
- bin/mandy-local
|
34
35
|
- bin/mandy-map
|
36
|
+
- bin/mandy-get
|
35
37
|
- bin/mandy-put
|
36
38
|
- bin/mandy-reduce
|
37
39
|
- readme.md
|
@@ -59,6 +61,7 @@ files:
|
|
59
61
|
- lib/test_runner.rb
|
60
62
|
has_rdoc: false
|
61
63
|
homepage:
|
64
|
+
licenses:
|
62
65
|
post_install_message:
|
63
66
|
rdoc_options: []
|
64
67
|
|
@@ -79,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
79
82
|
requirements: []
|
80
83
|
|
81
84
|
rubyforge_project:
|
82
|
-
rubygems_version: 1.
|
85
|
+
rubygems_version: 1.3.5
|
83
86
|
signing_key:
|
84
87
|
specification_version: 2
|
85
88
|
summary: Map/Reduce
|