mandy 0.5.14 → 0.5.17
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/VERSION +1 -1
- data/bin/mandy-hdfs +32 -0
- metadata +4 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.17
|
data/bin/mandy-hdfs
ADDED
@@ -0,0 +1,32 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
require 'optparse'
|
3
|
+
require 'ostruct'
|
4
|
+
|
5
|
+
require "rubygems"
|
6
|
+
require "mandy"
|
7
|
+
|
8
|
+
HadoopConfiguration.check_home_and_version
|
9
|
+
|
10
|
+
exec('mandy-hdfs -h') if ARGV.size == 0
|
11
|
+
|
12
|
+
options = OpenStruct.new
|
13
|
+
|
14
|
+
OptionParser.new do |opts|
|
15
|
+
opts.banner = "USAGE: mandy-hdfs <command> [args]"
|
16
|
+
|
17
|
+
opts.on("-c", "--conf HADOOP_CONF", "Use this cluster xml config file.") do |config|
|
18
|
+
options.config = config
|
19
|
+
end
|
20
|
+
|
21
|
+
opts.on_tail("-h", "--help", "Show this message") do
|
22
|
+
puts opts
|
23
|
+
exit
|
24
|
+
end
|
25
|
+
end.parse!
|
26
|
+
|
27
|
+
command = ARGV.shift
|
28
|
+
args = ARGV.join(' ')
|
29
|
+
config = options.config || 'cluster.xml'
|
30
|
+
|
31
|
+
result = system("$HADOOP_HOME/bin/hadoop fs -conf #{config} -#{command} #{args}")
|
32
|
+
puts result
|
metadata
CHANGED
@@ -1,13 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mandy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: 23
|
5
4
|
prerelease: false
|
6
5
|
segments:
|
7
6
|
- 0
|
8
7
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
8
|
+
- 17
|
9
|
+
version: 0.5.17
|
11
10
|
platform: ruby
|
12
11
|
authors:
|
13
12
|
- Andy Kent
|
@@ -27,7 +26,6 @@ dependencies:
|
|
27
26
|
requirements:
|
28
27
|
- - ">="
|
29
28
|
- !ruby/object:Gem::Version
|
30
|
-
hash: 3
|
31
29
|
segments:
|
32
30
|
- 0
|
33
31
|
version: "0"
|
@@ -39,6 +37,7 @@ executables:
|
|
39
37
|
- mandy
|
40
38
|
- mandy-kill
|
41
39
|
- mandy-hadoop
|
40
|
+
- mandy-hdfs
|
42
41
|
- mandy-local
|
43
42
|
- mandy-map
|
44
43
|
- mandy-put
|
@@ -107,6 +106,7 @@ files:
|
|
107
106
|
- lib/mandy/ruby-hbase/version.rb
|
108
107
|
- lib/mandy/ruby-hbase/xml_decoder.rb
|
109
108
|
- lib/mandy/test_runner.rb
|
109
|
+
- bin/mandy-hdfs
|
110
110
|
has_rdoc: true
|
111
111
|
homepage: http://github.com/trafficbroker/mandy
|
112
112
|
licenses: []
|
@@ -121,7 +121,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
hash: 3
|
125
124
|
segments:
|
126
125
|
- 0
|
127
126
|
version: "0"
|
@@ -130,7 +129,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
129
|
requirements:
|
131
130
|
- - ">="
|
132
131
|
- !ruby/object:Gem::Version
|
133
|
-
hash: 3
|
134
132
|
segments:
|
135
133
|
- 0
|
136
134
|
version: "0"
|