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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d786008fdca4ca60547f212aeaf6e04437cac1b
4
- data.tar.gz: 73bcfcd4eb6576994f53ab8a91e46cd21471b8c2
3
+ metadata.gz: a728ff9978514fe5f0fcf230117bb601938eaba9
4
+ data.tar.gz: 556d3e8c3e22de09e5f251cadf693d1bfd2122b0
5
5
  SHA512:
6
- metadata.gz: 625000c6c06bc77953d661855a4f3201528c4c0e23aea102b32d07bda5c08bd2d0c6e3eeafd0f3e71522232e8c314e38fad02544cf0b6a679e1224556427c1da
7
- data.tar.gz: f8d26f08e1c1309c5cd253e1674b16da3f35f5641a1a741e2a47a3b4b553249825d02da4bc16eae8cc663a4507df19485cdc98153c910c497289571e9e3e15c4
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)
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Hive
3
- VERSION = "1.24"
3
+ VERSION = "1.25"
4
4
  end
5
5
  end
@@ -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.24"
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.24'
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-22 00:00:00.000000000 Z
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.24'
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.24'
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