mobilize-hive 1.24 → 1.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mobilize-hive/handlers/hive.rb +8 -1
- data/lib/mobilize-hive/version.rb +1 -1
- data/mobilize-hive.gemspec +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a728ff9978514fe5f0fcf230117bb601938eaba9
|
4
|
+
data.tar.gz: 556d3e8c3e22de09e5f251cadf693d1bfd2122b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18ea8474ab5376cecee6fc1fe33b688b16eb88ab5da14cd09ef52892dbb1333a6991ff2581702f681b60915943a82e8572400a2adb59b11b96a47fa6e93353b3
|
7
|
+
data.tar.gz: a0e1ecfcee8f0eb7296b71c2700d9ed2d09688d52252b306c8c03b21c82d8d3ba6b09a849c62a55e68518f29a14d9f3da9095a73db5f3a34a627894b7916f8f6
|
@@ -152,7 +152,14 @@ module Mobilize
|
|
152
152
|
#at hadoop read limit
|
153
153
|
command = "#{Hive.exec_path(cluster)} -S -f #{filename} | head -c #{Hadoop.read_limit}"
|
154
154
|
gateway_node = Hadoop.gateway_node(cluster)
|
155
|
-
Ssh.run(gateway_node,command,user_name,file_hash)
|
155
|
+
response = Ssh.run(gateway_node,command,user_name,file_hash)
|
156
|
+
#override exit code 0 when stdout is blank and
|
157
|
+
#stderror contains FAILED or KILLED
|
158
|
+
if response['stdout'].to_s.length == 0 and
|
159
|
+
response['stderr'].to_s.ie{|se| se.index("FAILED") or se.index("KILLED")}
|
160
|
+
response['exit_code'] = 500
|
161
|
+
end
|
162
|
+
return response
|
156
163
|
end
|
157
164
|
|
158
165
|
def Hive.run_by_stage_path(stage_path)
|
data/mobilize-hive.gemspec
CHANGED
@@ -16,5 +16,5 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
|
-
gem.add_runtime_dependency "mobilize-hdfs","1.
|
19
|
+
gem.add_runtime_dependency "mobilize-hdfs","1.25"
|
20
20
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mobilize-hive
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.25'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cassio Paes-Leme
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mobilize-hdfs
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.25'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.25'
|
27
27
|
description: Adds hive read, write, and run support to mobilize-hdfs
|
28
28
|
email:
|
29
29
|
- cpaesleme@dena.com
|