mobilize-hive 1.378 → 1.379

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.
@@ -211,7 +211,7 @@ module Mobilize
211
211
  schema_hash
212
212
  end
213
213
 
214
- def Hive.hql_to_table(cluster, db, table, part_array, source_hql, user_name, stage_path, drop=false, schema_hash=nil, run_params=nil,compress=true)
214
+ def Hive.hql_to_table(cluster, db, table, part_array, source_hql, user_name, stage_path, drop=false, schema_hash=nil, run_params=nil,compress=false)
215
215
  job_name = stage_path.sub("Runner_","")
216
216
  table_path = [db,table].join(".")
217
217
  table_stats = Hive.table_stats(cluster, db, table, user_name)
@@ -443,7 +443,7 @@ module Mobilize
443
443
  end
444
444
  #drop target before create/insert?
445
445
  drop = params['drop']
446
- compress = params.has_key?('compress') ? params['compress'] : true
446
+ compress = params['compress']
447
447
 
448
448
  #determine source
449
449
  source_tsv,source_hql = [nil]*2
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Hive
3
- VERSION = "1.378"
3
+ VERSION = "1.379"
4
4
  end
5
5
  end
@@ -17,5 +17,5 @@ Gem::Specification.new do |gem|
17
17
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
19
  gem.require_paths = ["lib"]
20
- gem.add_runtime_dependency "mobilize-hdfs","1.378"
20
+ gem.add_runtime_dependency "mobilize-hdfs","1.379"
21
21
  end
@@ -13,7 +13,7 @@
13
13
  active: true
14
14
  trigger: after hive1
15
15
  status: ""
16
- stage1: hive.write save_logs:true, retries:3, source:"hdfs://user/mobilize/test/hdfs1.out", target:"mobilize.hive2", drop:true
16
+ stage1: hive.write save_logs:true, retries:3, source:"hdfs://user/mobilize/test/hdfs1.out", target:"mobilize.hive2", drop:true, compress:true
17
17
  stage2: hive.run save_logs:true, retries:3, hql:"select * from mobilize.hive2;"
18
18
  stage3: gsheet.write source:"stage2", target:"hive2.out"
19
19
  - name: hive3
@@ -22,7 +22,7 @@
22
22
  status: ""
23
23
  stage1: hive.run save_logs:true, retries:3, hql:"select '@date' as `date`,product,category,value from mobilize.hive1;", params:{'date':'2013-01-01'}
24
24
  stage2: hive.write save_logs:true, retries:3, source:"stage1",target:"mobilize/hive3", partitions:"date/product", drop:true
25
- stage3: hive.write save_logs:true, retries:3, hql:"select * from mobilize.hive3;",target:"mobilize/hive3", partitions:"date/product", drop:false
25
+ stage3: hive.write save_logs:true, retries:3, hql:"select * from mobilize.hive3;",target:"mobilize/hive3", partitions:"date/product", drop:false, compress:true
26
26
  stage4: gsheet.write source:"hive://mobilize/hive3", target:"hive3.out"
27
27
  - name: hive4
28
28
  active: true
@@ -37,7 +37,7 @@
37
37
  trigger: after hive4
38
38
  status: ""
39
39
  stage1: hive.write save_logs:true, retries:3, source:"hive5.in", target:"mobilize/hive5_in", drop:true
40
- stage2: hive.write save_logs:true, retries:3, hql:"select act_date,product,category,value from mobilize.hive5_in where act_date='@date'", target:"mobilize/hive5", partitions:"act_date", params:{'date':'2013-01-01'}, drop:true, compress:false
41
- stage3: hive.write save_logs:true, retries:3, hql:"select act_date,product,category,value from mobilize.hive5_in where act_date='@date'", target:"mobilize/hive5", partitions:"act_date", params:{'date':'2013-01-02'}
40
+ stage2: hive.write save_logs:true, retries:3, hql:"select act_date,product,category,value from mobilize.hive5_in where act_date='@date'", target:"mobilize/hive5", partitions:"act_date", params:{'date':'2013-01-01'}, drop:true
41
+ stage3: hive.write save_logs:true, retries:3, hql:"select act_date,product,category,value from mobilize.hive5_in where act_date='@date'", target:"mobilize/hive5", partitions:"act_date", params:{'date':'2013-01-02'}, compress:true
42
42
  stage4: hive.run save_logs:true, retries:3, hql:"select act_date,product,category,value from mobilize.hive5;"
43
43
  stage5: gsheet.write source:stage4, target:"hive5.out"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-hive
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.378'
4
+ version: '1.379'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-09-12 00:00:00.000000000 Z
13
+ date: 2013-09-23 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: mobilize-hdfs
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: '1.378'
22
+ version: '1.379'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - '='
29
29
  - !ruby/object:Gem::Version
30
- version: '1.378'
30
+ version: '1.379'
31
31
  description: Adds hive read, write, and run support to mobilize-hdfs
32
32
  email:
33
33
  - cpaesleme@dena.com