mandy 0.5.26 → 0.5.27

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.26
1
+ 0.5.27
data/bin/mandy-hadoop CHANGED
@@ -90,7 +90,7 @@ outputformat = !options.output_format.nil? ? options.output_format : "org.apache
90
90
 
91
91
  at_exit do
92
92
  puts
93
- puts "Cleaning up... #{payload}"
93
+ puts "Cleaning up..."
94
94
  Mandy::Packer.cleanup!(payload)
95
95
  puts errors ? "Completed with errors!" : "Completed Successfully!"
96
96
  end
data/bin/mandy-ls ADDED
@@ -0,0 +1,33 @@
1
+ #!/usr/bin/env ruby
2
+ require 'optparse'
3
+ require 'ostruct'
4
+
5
+ require "rubygems"
6
+ require "mandy"
7
+
8
+
9
+ HadoopConfiguration.check_home_and_version
10
+
11
+ exec('mandy-ls -h') if ARGV.size == 0
12
+
13
+ options = OpenStruct.new
14
+
15
+ OptionParser.new do |opts|
16
+ opts.banner = "USAGE: mandy-ls file_or_directory"
17
+
18
+ opts.on("-c", "--conf HADOOP_CONF", "Use this cluster xml config file.") do |config|
19
+ options.config = config
20
+ end
21
+
22
+ opts.on_tail("-h", "--help", "Show this message") do
23
+ puts opts
24
+ exit
25
+ end
26
+ end.parse!
27
+
28
+ file = ARGV[0]
29
+ config = options.config || 'cluster.xml'
30
+
31
+
32
+ list = system("$HADOOP_HOME/bin/hadoop fs -conf #{config} -ls #{file}")
33
+ puts list
data/lib/mandy/packer.rb CHANGED
@@ -23,10 +23,7 @@ module Mandy
23
23
 
24
24
  def self.cleanup!(file)
25
25
  return false unless File.extname(file) == '.tar'
26
- puts "Trying to delete: #{file}"
27
- puts "#{File.dirname(file)}"
28
26
  FileUtils.rm_r(File.dirname(file))
29
- puts "#{file} deleted"
30
27
  end
31
28
  end
32
29
  end
metadata CHANGED
@@ -1,41 +1,43 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: mandy
3
- version: !ruby/object:Gem::Version
4
- hash: 63
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 5
9
- - 26
10
- version: 0.5.26
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.5.27
5
+ prerelease:
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Andy Kent
14
9
  - Paul Ingles
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-07-13 00:00:00 +01:00
20
- default_executable:
21
- dependencies:
22
- - !ruby/object:Gem::Dependency
13
+ date: 2012-01-20 00:00:00.000000000Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
23
16
  name: json
17
+ requirement: &2157698180 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: '0'
23
+ type: :runtime
24
24
  prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
25
+ version_requirements: *2157698180
26
+ - !ruby/object:Gem::Dependency
27
+ name: libxml-ruby
28
+ requirement: &2157697380 !ruby/object:Gem::Requirement
26
29
  none: false
27
- requirements:
28
- - - ">="
29
- - !ruby/object:Gem::Version
30
- hash: 3
31
- segments:
32
- - 0
33
- version: "0"
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
34
  type: :runtime
35
- version_requirements: *id001
36
- description: Mandy is Ruby Map/Reduce Framework built onto of the Hadoop Distributed computing platform.
35
+ prerelease: false
36
+ version_requirements: *2157697380
37
+ description: Mandy is Ruby Map/Reduce Framework built onto of the Hadoop Distributed
38
+ computing platform.
37
39
  email: andy.kent@me.com
38
- executables:
40
+ executables:
39
41
  - mandy
40
42
  - mandy-kill
41
43
  - mandy-hadoop
@@ -53,11 +55,10 @@ executables:
53
55
  - mandy-exists
54
56
  - mandy-install
55
57
  - mandy-lsr
58
+ - mandy-ls
56
59
  extensions: []
57
-
58
60
  extra_rdoc_files: []
59
-
60
- files:
61
+ files:
61
62
  - bin/mandy
62
63
  - bin/mandy-hadoop
63
64
  - bin/mandy-local
@@ -74,6 +75,7 @@ files:
74
75
  - bin/mandy-exists
75
76
  - bin/mandy-install
76
77
  - bin/mandy-lsr
78
+ - bin/mandy-ls
77
79
  - VERSION
78
80
  - readme.md
79
81
  - Rakefile
@@ -109,39 +111,28 @@ files:
109
111
  - lib/mandy/ruby-hbase/xml_decoder.rb
110
112
  - lib/mandy/test_runner.rb
111
113
  - bin/mandy-hdfs
112
- has_rdoc: true
113
114
  homepage: http://github.com/forward/mandy
114
115
  licenses: []
115
-
116
116
  post_install_message:
117
117
  rdoc_options: []
118
-
119
- require_paths:
118
+ require_paths:
120
119
  - lib
121
- required_ruby_version: !ruby/object:Gem::Requirement
120
+ required_ruby_version: !ruby/object:Gem::Requirement
122
121
  none: false
123
- requirements:
124
- - - ">="
125
- - !ruby/object:Gem::Version
126
- hash: 3
127
- segments:
128
- - 0
129
- version: "0"
130
- required_rubygems_version: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ required_rubygems_version: !ruby/object:Gem::Requirement
131
127
  none: false
132
- requirements:
133
- - - ">="
134
- - !ruby/object:Gem::Version
135
- hash: 3
136
- segments:
137
- - 0
138
- version: "0"
128
+ requirements:
129
+ - - ! '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
139
132
  requirements: []
140
-
141
133
  rubyforge_project:
142
- rubygems_version: 1.3.7
134
+ rubygems_version: 1.8.12
143
135
  signing_key:
144
136
  specification_version: 2
145
137
  summary: Map/Reduce Framework
146
138
  test_files: []
147
-