bricolage 5.24.2 → 5.24.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bricolage/job.rb +1 -0
  3. data/lib/bricolage/version.rb +1 -1
  4. data/libexec/mys3dump.jar +0 -0
  5. data/test/home/config/development/database.yml +123 -89
  6. data/test/home/config/development/password.yml +3 -6
  7. data/test/home/config/development/variable.yml +20 -6
  8. data/test/home/subsys/20170214_1225_0_strload.data.json.gz +0 -0
  9. data/test/home/subsys/streaming_load.ct +4 -0
  10. data/test/home/subsys/streaming_load.job +21 -0
  11. data/test/home/subsys/streaming_load_wk.ct +4 -0
  12. metadata +6 -78
  13. data/test/home/Gemfile.lock +0 -41
  14. data/test/home/config/bricolage.yml +0 -1
  15. data/test/home/config/streamingload.yml +0 -8
  16. data/test/home/log/20170117/subsys::job1/20170117_202014082/subsys-job1.log +0 -3
  17. data/test/home/log/20170117/subsys::job1/20170117_202334852/subsys-job1.log +0 -3
  18. data/test/home/log/20170117/subsys::job1/20170117_202405056/subsys-job1.log +0 -3
  19. data/test/home/log/20170117/subsys::migrate/20170117_202548409/subsys-migrate.log +0 -80
  20. data/test/home/log/20170117/subsys::migrate/20170117_202636115/subsys-migrate.log +0 -79
  21. data/test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job1.log +0 -3
  22. data/test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job2.log +0 -3
  23. data/test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job3.log +0 -3
  24. data/test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job4.log +0 -3
  25. data/test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job1.log +0 -3
  26. data/test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job2.log +0 -3
  27. data/test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job3.log +0 -3
  28. data/test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job4.log +0 -3
  29. data/test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job1.log +0 -3
  30. data/test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job2.log +0 -3
  31. data/test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job3.log +0 -3
  32. data/test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job4.log +0 -3
  33. data/test/home/log/20170629/subsys::job1/20170629_155543985/subsys-job1.log +0 -3
  34. data/test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job1.log +0 -3
  35. data/test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job2.log +0 -3
  36. data/test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job3.log +0 -3
  37. data/test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job4.log +0 -3
  38. data/test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job1.log +0 -3
  39. data/test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job2.log +0 -3
  40. data/test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job3.log +0 -3
  41. data/test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job4.log +0 -3
  42. data/test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job1.log +0 -3
  43. data/test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job2.log +0 -3
  44. data/test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job3.log +0 -3
  45. data/test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job4.log +0 -3
  46. data/test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job1.log +0 -3
  47. data/test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job2.log +0 -3
  48. data/test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job3.log +0 -3
  49. data/test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job4.log +0 -3
  50. data/test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job1.log +0 -3
  51. data/test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job2.log +0 -3
  52. data/test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job3.log +0 -3
  53. data/test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job4.log +0 -3
  54. data/test/home/log/20170630/subsys::net1/20170630_153437221/subsys-job1.log +0 -3
  55. data/test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job1.log +0 -3
  56. data/test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job2.log +0 -3
  57. data/test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job3.log +0 -3
  58. data/test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job4.log +0 -3
  59. data/test/home/log/20170704/subsys::insert/20170704_164335210/subsys-insert.log +0 -14
  60. data/test/home/log/20170704/subsys::insert/20170704_164344251/subsys-insert.log +0 -14
  61. data/test/home/log/20170704/subsys::insert/20170704_164723299/subsys-insert.log +0 -14
  62. data/test/home/log/20170704/subsys::insert.sql/20170704_164143661/subsys-insert.sql.log +0 -14
  63. data/test/home/log/20170704/subsys::insert.sql.job/20170704_163033119/subsys-insert.log +0 -14
  64. data/test/home/log/20170704/subsys::insert.sql.job/20170704_172410576/subsys-insert.log +0 -14
  65. data/test/home/log/20170704/subsys::insert.sql.job/20170704_173130175/subsys-insert.log +0 -14
  66. data/test/home/log/20170704/subsys::insert.sql.job/20170704_173201376/subsys-insert.log +0 -14
  67. data/test/home/log/20170704/subsys::net1/20170704_162457694/subsys-job1.log +0 -3
  68. data/test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job1.log +0 -3
  69. data/test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job2.log +0 -3
  70. data/test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job3.log +0 -3
  71. data/test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job4.log +0 -3
  72. data/test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job1.log +0 -3
  73. data/test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job2.log +0 -3
  74. data/test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job3.log +0 -3
  75. data/test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job4.log +0 -3
  76. data/test/home/log/20170707/subsys::insert/20170707_020050817/subsys-insert.log +0 -51
  77. data/test/home/log/20170707/subsys::insert/20170707_020050817/subsys-insert.log.status +0 -1
  78. data/test/home/log/20170707/subsys::job1/20170707_020542902/subsys-job1.log +0 -3
  79. data/test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job1.log +0 -3
  80. data/test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job2.log +0 -3
  81. data/test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job3.log +0 -3
  82. data/test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job4.log +0 -3
  83. data/test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job1.log +0 -3
  84. data/test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job2.log +0 -3
  85. data/test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job3.log +0 -3
  86. data/test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job4.log +0 -3
  87. data/test/home/revert.sh +0 -7
  88. data/test/home/s +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 593e33c7e02661fc8769f5d1f5118415ea59b52b
4
- data.tar.gz: e0f9c04913dccb58723308841150e4a2a129462b
3
+ metadata.gz: d7ca2ab62113b959d79f3102daa165cd7e843253
4
+ data.tar.gz: 9bac20ab47ac97242583a9075b5799a63ef07f52
5
5
  SHA512:
6
- metadata.gz: 54b569b9721ad2a8e7340cc7570a739aaba51f31e24d8440bcfa295d50734cc8fb33050451d2433df58828bfd9344bae85507e96c21475854d60bf79eafa68ca
7
- data.tar.gz: 1137ac538ab8e5bf9b2736100441946dd872154b8c3246236abd70e08d7192e7295c907823cf80f5d673abd1c1d13a4076db4965554e5c6c7a8a16f52ff5d1a0
6
+ metadata.gz: 4250720a52ba659add07a834c4a91f5d4d87165cf51bb4caeff78a93902173c2b2c55e244d42ad5f5fadeb90404743fbc63bd9b969f30241aa45ee19e8547fc7
7
+ data.tar.gz: 6b52d33d3dd7f0484248f6dbf3b0edc20f8509c81c63efcfae600eabe85b5efc95d29d7f97c57d5d2d0814d6b7f5a65bdb6d61d0d9fe161a0c20ab5e3cadda7c
data/lib/bricolage/job.rb CHANGED
@@ -4,6 +4,7 @@ require 'bricolage/jobresult'
4
4
  require 'bricolage/parameters'
5
5
  require 'bricolage/variables'
6
6
  require 'bricolage/configloader'
7
+ require 'bricolage/loglocator'
7
8
  require 'bricolage/exception'
8
9
  require 'fileutils'
9
10
 
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.24.2'
3
+ VERSION = '5.24.3'
4
4
  end
data/libexec/mys3dump.jar CHANGED
Binary file
@@ -1,113 +1,147 @@
1
- sql: &redshift_parameters
1
+ #
2
+ # Shared
3
+ #
4
+
5
+ redshift_base: &redshift_base
2
6
  type: psql
3
- host: <%= ENV['RSHOST'] || 'dwh.ckpd.co' %>
4
- port: <%= ENV['RSPORT'] || 5439 %>
7
+ host: <%= ENV['RSPROXYHOST'] ? 'localhost' : (ENV['RSHOST'] || 'cookpad-dwh-401.cbzwjkf60uat.ap-northeast-1.redshift.amazonaws.com') %>
8
+ port: <%= ENV['RSPROXYPORT'] || ENV['RSPORT'] || 5439 %>
5
9
  database: production
6
- username: <%= ENV['RSUSER'] || 'tabemirudev' %>
10
+ username: <%= ENV['RSUSER'] || 'dwhdev' %>
7
11
  pgpass: <%= user_home_relative_path '.pgpass' %>
12
+
13
+ s3_base: &s3_base
14
+ type: s3
15
+ endpoint: s3-ap-northeast-1.amazonaws.com
16
+ bucket: redshift-copy-buffer
17
+ prefix: development/tmp
18
+ s3cfg: <%= user_home_relative_path '.s3cfg' %>
19
+ #access_key_id: <%%= password 's3_access_key_id' %>
20
+ #secret_access_key: <%%= password 's3_secret_access_key' %>
21
+
22
+ mysql_base: &mysql_base
23
+ type: mysql
24
+ username: work_readonly
25
+ password: <%= password 'mysql_shared_work_readonly' %>
8
26
  encoding: utf8
9
27
 
10
- #sql_dev:
11
- # <<: *redshift_parameters
12
28
  #
13
- #sql_prod:
14
- # <<: *redshift_parameters
15
- # username: tabemiru_batch
16
-
17
- #sql_app:
18
- # type: psql
19
- # host: localhost #cookpad-dwh-401.cbzwjkf60uat.ap-northeast-1.redshift.amazonaws.com
20
- # port: 5445
21
- # database: production
22
- # username: tabemiru_batch
23
- # pgpass: <%= user_home_relative_path '.pgpass' %>
24
- # encoding: utf8
25
-
26
- sql_app2:
27
- type: psql
29
+ # Redis
30
+ #
31
+ redis:
32
+ type: redis
28
33
  host: localhost
29
- port: 5446
30
- database: production
31
- username: tabemiru_batch
32
- pgpass: <%= user_home_relative_path '.pgpass' %>
33
- encoding: utf8
34
+ port: 6379
35
+ db: 0
34
36
 
35
- postgres:
36
- type: psql
37
- host: localhost
38
- port: 5432
39
- database: bricolage
40
- username: bricolage
41
- password: bricolage
42
- encoding: utf8
43
- sql_log_level: DEBUG
37
+ #
38
+ # Redshift
39
+ #
40
+
41
+ dwh_db: &dwh_db
42
+ <<: *redshift_base
43
+
44
+ sql:
45
+ <<: *dwh_db
46
+
47
+ figlog_db:
48
+ <<: *redshift_base
49
+
50
+ #
51
+ # S3
52
+ #
44
53
 
45
54
  s3:
46
- type: s3
47
- endpoint: "s3-ap-northeast-1.amazonaws.com"
48
- region: "ap-northeast-1"
49
- bucket: tabemiru-data.ap-northeast-1
50
- prefix: "dev"
51
- #s3cfg: <%= user_home_relative_path '.s3cfg' %>
52
- #access_key_id: "<%= password 'aws_access_key_id' %>"
53
- #secret_access_key: "<%= password 'aws_secret_access_key' %>"
54
- #master_symmetric_key: "12345678901234567890123456789012"
55
- iam_role: "arn:aws:iam::789035092620:role/RedshiftDWHTeamS3Access"
56
-
57
- s3_log:
58
- type: s3
59
- endpoint: "s3-ap-northeast-1.amazonaws.com"
60
- region: "ap-northeast-1"
61
- bucket: "redshift-copy-buffer"
62
- prefix: "development/bricolage/log"
55
+ <<: *s3_base
56
+ bucket: redshift-copy-buffer
63
57
 
64
- mysql:
65
- type: mysql
66
- host: 127.0.0.1
67
- port: 9011
58
+ figlog_s3:
59
+ <<: *s3_base
60
+ bucket: redshift-copy-buffer
61
+ prefix: development/figlog
62
+
63
+ # Read only
64
+ pv_log_s3:
65
+ <<: *s3_base
66
+ bucket: pv-log.ap-northeast-1
67
+ prefix: ""
68
+
69
+ search_log_s3:
70
+ <<: *s3_base
71
+ bucket: redshift-copy-buffer
72
+ prefix: production/search_log
73
+
74
+ dmp_s3:
75
+ <<: *s3_base
76
+ bucket: redshift-copy-buffer
77
+ prefix: production/dmp
78
+
79
+ intage_s3:
80
+ <<: *s3_base
81
+ bucket: cookpad-intage
82
+ prefix: ""
83
+
84
+ td_s3:
85
+ <<: *s3_base
86
+ bucket: redshift-copy-buffer
87
+ prefix: td
88
+
89
+ #
90
+ # MySQL
91
+ #
92
+
93
+ % is_local = (`uname -s`.strip == 'Darwin')
94
+
95
+ cookpad_main_db: &cookpad_main_db
96
+ <<: *mysql_base
97
+ host: <%= is_local ? '127.0.0.1' : 'db-main-slave-free-001.vpc.ap-northeast-1.compute.internal' %>
98
+ port: <%= is_local ? 9011 : 3306 %>
99
+ database: main
100
+
101
+ cookpad_bargain_db:
102
+ <<: *mysql_base
103
+ host: <%= is_local ? '127.0.0.1' : 'db-bargain-kuroko-101.vpc.ap-northeast-1.compute.internal' %>
104
+ port: <%= is_local ? 9131 : 3306 %>
68
105
  database: main
106
+
107
+ cookpad_device_guest_db:
108
+ <<: *mysql_base
109
+ host: <%= is_local ? '127.0.0.1' : 'db-device-guest-102.vpc.ap-northeast-1.compute.internal' %>
110
+ port: <%= is_local ? 9142 : 3306 %>
111
+ database: device_guest
112
+
113
+ cookpad_ad_db:
114
+ <<: *mysql_base
115
+ host: <%= is_local ? '127.0.0.1' : 'db-ad-slave-staging-001.vpc.ap-northeast-1.compute.internal' %>
116
+ port: <%= is_local ? 9153 : 3306 %>
117
+ database: ad
118
+ username: ckpd_readonly
119
+ password: <%= password 'mysql_shared_ckpd_readonly' %>
120
+
121
+ cookpad_ad4_db:
122
+ <<: *mysql_base
123
+ host: <%= is_local ? '127.0.0.1' : 'db-ad4-master-001.vpc.ap-northeast-1.compute.internal' %>
124
+ port: <%= is_local ? 40205 : 3306 %>
125
+ database: ad4
69
126
  username: work_readonly
70
127
  password: <%= password 'mysql_shared_work_readonly' %>
71
- encoding: utf8
72
128
 
73
- mysql_summary:
74
- type: mysql
75
- host: 127.0.0.1
76
- port: 40201
129
+ cookpad_summary_db:
130
+ <<: *mysql_base
131
+ host: <%= is_local ? '127.0.0.1' : 'db-summary-slave-mysql56-free-001.vpc.ap-northeast-1.compute.internal' %>
132
+ port: <%= is_local ? 40201 : 3306 %>
77
133
  database: summarized_data
78
134
  username: work_readonly
79
135
  password: <%= password 'mysql_shared_work_readonly' %>
80
- encoding: utf8
81
136
 
82
- sqs_preproc:
83
- type: sqs
84
- url: "https://sqs.ap-northeast-1.amazonaws.com/789035092620/bricolage-preproc-dev"
85
- max_number_of_messages: 10
86
- visibility_timeout: 60
87
-
88
- sqs_dispatch:
89
- type: sqs
90
- url: "https://sqs.ap-northeast-1.amazonaws.com/789035092620/log-stream-dev"
91
- max_number_of_messages: 10
92
- visibility_timeout: 60
93
-
94
- sqs_task:
95
- type: sqs
96
- url: "https://sqs.ap-northeast-1.amazonaws.com/789035092620/bricolage-load-tasks-dev"
97
- max_number_of_messages: 1
98
- visibility_timeout: 180
99
-
100
- sns:
101
- type: sns
102
- region: "ap-northeast-1"
103
- topic_arn: "arn:aws:sns:ap-northeast-1:789035092620:dwh-service-notification"
137
+ mysql:
138
+ <<: *cookpad_main_db
139
+
140
+ #
141
+ # TD
142
+ #
104
143
 
105
144
  td:
106
145
  type: td
107
146
  database: logs
108
147
  apikey: <%= password 'td_tabemiru' %>
109
-
110
- td_search_log:
111
- type: td
112
- database: search_log
113
- apikey: <%= password 'td_tabemiru' %>
@@ -1,6 +1,3 @@
1
- td_tabemiru: "121/c1376bb5e3972fc4a4efc942c1df100f7bc156e0"
2
- mysql_shared_work_readonly: "s0uL/M@9r1"
3
- mysql_shared_ckpd_readonly: "no3lnar;"
4
- mysql_local_work_readonly: "ckpdtest"
5
- aws_access_key_id: "AKIAI5R5BL2W73PR3FXQ"
6
- aws_secret_access_key: "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"
1
+ mysql_shared_work_readonly: s0uL/M@9r1
2
+ mysql_shared_ckpd_readonly: hoge
3
+ td_tabemiru: 121/e9d758221f5ad5e2747337d1d79f974389e6cc0a
@@ -1,7 +1,21 @@
1
- data_dir: /tmp/bricolagedev
2
- test_schema: aamine
3
- test_group: aamine
4
- activity_schema: aamine
1
+ % data_date = Date.today - 1
2
+ data_date: <%= data_date.strftime("%Y-%m-%d") %>
3
+ data_date_ymd: <%= data_date.strftime("%Y%m%d") %>
4
+ data_date_endx: <%= Date.today.strftime("%Y-%m-%d") %>
5
5
 
6
- defaults:
7
- analyze: true
6
+ data_dir: <%= ENV['TMPDIR'] || '/tmp' %>
7
+ shared_data_dir: "/tmp"
8
+ trigger_dir: "$shared_data_dir/bricolage.trigger"
9
+
10
+ % dwh_dev_schema = ENV['RSUSER'] || 'dwh_dev'
11
+ test_schema: <%= dwh_dev_schema %>
12
+
13
+ secure_activity_schema: <%= dwh_dev_schema %>
14
+ secure_cookpad_schema: <%= dwh_dev_schema %>
15
+ secure_dwh_schema: <%= dwh_dev_schema %>
16
+
17
+ tabemiru_schema: tabemiru
18
+
19
+ test_group: "tabemirudev"
20
+
21
+ ad_mirror_db: dwh_dev
@@ -0,0 +1,4 @@
1
+ create table streaming_load (
2
+ col1 int
3
+ , col2 varchar(32)
4
+ )
@@ -0,0 +1,21 @@
1
+ class: streaming_load
2
+
3
+ s3-ds: s3
4
+ keep-ctl: true
5
+ ctl-prefix: /strload/ctl/
6
+ queue-path: /strload/queue/
7
+ persistent-path: /strload/year=%Y/month=%m/day=%d/
8
+ file-name: "%Y%m%d_%H%M_%Q_%*.gz"
9
+
10
+ redshift-ds: dwh_db
11
+ dest-table: $test_schema.streaming_load
12
+ work-table: $test_schema.streaming_load_wk
13
+ log-table: $test_schema.streaming_load_l
14
+ load-options:
15
+ json: "auto"
16
+ gzip: true
17
+ maxerror: 0
18
+ timeformat: "auto"
19
+ truncatecolumns: true
20
+ acceptinvchars: " "
21
+ skip-work: true
@@ -0,0 +1,4 @@
1
+ create table streaming_load_wk (
2
+ col1 int
3
+ , col2 varchar(32)
4
+ )
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bricolage
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.24.2
4
+ version: 5.24.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Minero Aoki
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-12 00:00:00.000000000 Z
11
+ date: 2017-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -200,90 +200,15 @@ files:
200
200
  - libexec/sqldump.Linux
201
201
  - test/all.rb
202
202
  - test/home/Gemfile
203
- - test/home/Gemfile.lock
204
- - test/home/config/bricolage.yml
205
203
  - test/home/config/development/database.yml
206
204
  - test/home/config/development/password.yml
207
205
  - test/home/config/development/variable.yml
208
- - test/home/config/streamingload.yml
209
206
  - test/home/data/20141002-1355_00.txt
210
207
  - test/home/data/20141002-1355_01.txt
211
208
  - test/home/data/20141002-1355_02.txt
212
209
  - test/home/data/test.txt
213
210
  - test/home/jobnet-test.rb
214
- - test/home/log/20170117/subsys::job1/20170117_202014082/subsys-job1.log
215
- - test/home/log/20170117/subsys::job1/20170117_202334852/subsys-job1.log
216
- - test/home/log/20170117/subsys::job1/20170117_202405056/subsys-job1.log
217
- - test/home/log/20170117/subsys::migrate/20170117_202548409/subsys-migrate.log
218
- - test/home/log/20170117/subsys::migrate/20170117_202636115/subsys-migrate.log
219
- - test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job1.log
220
- - test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job2.log
221
- - test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job3.log
222
- - test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job4.log
223
- - test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job1.log
224
- - test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job2.log
225
- - test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job3.log
226
- - test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job4.log
227
- - test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job1.log
228
- - test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job2.log
229
- - test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job3.log
230
- - test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job4.log
231
- - test/home/log/20170629/subsys::job1/20170629_155543985/subsys-job1.log
232
- - test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job1.log
233
- - test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job2.log
234
- - test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job3.log
235
- - test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job4.log
236
- - test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job1.log
237
- - test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job2.log
238
- - test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job3.log
239
- - test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job4.log
240
- - test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job1.log
241
- - test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job2.log
242
- - test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job3.log
243
- - test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job4.log
244
- - test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job1.log
245
- - test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job2.log
246
- - test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job3.log
247
- - test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job4.log
248
- - test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job1.log
249
- - test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job2.log
250
- - test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job3.log
251
- - test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job4.log
252
- - test/home/log/20170630/subsys::net1/20170630_153437221/subsys-job1.log
253
- - test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job1.log
254
- - test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job2.log
255
- - test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job3.log
256
- - test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job4.log
257
- - test/home/log/20170704/subsys::insert.sql.job/20170704_163033119/subsys-insert.log
258
- - test/home/log/20170704/subsys::insert.sql.job/20170704_172410576/subsys-insert.log
259
- - test/home/log/20170704/subsys::insert.sql.job/20170704_173130175/subsys-insert.log
260
- - test/home/log/20170704/subsys::insert.sql.job/20170704_173201376/subsys-insert.log
261
- - test/home/log/20170704/subsys::insert.sql/20170704_164143661/subsys-insert.sql.log
262
- - test/home/log/20170704/subsys::insert/20170704_164335210/subsys-insert.log
263
- - test/home/log/20170704/subsys::insert/20170704_164344251/subsys-insert.log
264
- - test/home/log/20170704/subsys::insert/20170704_164723299/subsys-insert.log
265
- - test/home/log/20170704/subsys::net1/20170704_162457694/subsys-job1.log
266
- - test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job1.log
267
- - test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job2.log
268
- - test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job3.log
269
- - test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job4.log
270
- - test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job1.log
271
- - test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job2.log
272
- - test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job3.log
273
- - test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job4.log
274
- - test/home/log/20170707/subsys::insert/20170707_020050817/subsys-insert.log
275
- - test/home/log/20170707/subsys::insert/20170707_020050817/subsys-insert.log.status
276
- - test/home/log/20170707/subsys::job1/20170707_020542902/subsys-job1.log
277
- - test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job1.log
278
- - test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job2.log
279
- - test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job3.log
280
- - test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job4.log
281
- - test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job1.log
282
- - test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job2.log
283
- - test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job3.log
284
- - test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job4.log
285
- - test/home/revert.sh
286
- - test/home/s
211
+ - test/home/subsys/20170214_1225_0_strload.data.json.gz
287
212
  - test/home/subsys/d.ct
288
213
  - test/home/subsys/insert.sql.job
289
214
  - test/home/subsys/item_pv_acc.ct
@@ -312,6 +237,9 @@ files:
312
237
  - test/home/subsys/separated.job
313
238
  - test/home/subsys/separated.sql
314
239
  - test/home/subsys/some_view-cv.sql.job
240
+ - test/home/subsys/streaming_load.ct
241
+ - test/home/subsys/streaming_load.job
242
+ - test/home/subsys/streaming_load_wk.ct
315
243
  - test/home/subsys/unified.jobnet
316
244
  - test/home/subsys/unified.sql.job
317
245
  - test/home/subsys/users.ct
@@ -1,41 +0,0 @@
1
- PATH
2
- remote: ../..
3
- specs:
4
- bricolage (5.24.2)
5
- aws-sdk (~> 2)
6
- mysql2
7
- pg (~> 0.18.0)
8
- redis (>= 3.0.0)
9
-
10
- GEM
11
- remote: https://rubygems.org/
12
- specs:
13
- aws-sdk (2.10.9)
14
- aws-sdk-resources (= 2.10.9)
15
- aws-sdk-core (2.10.9)
16
- aws-sigv4 (~> 1.0)
17
- jmespath (~> 1.0)
18
- aws-sdk-resources (2.10.9)
19
- aws-sdk-core (= 2.10.9)
20
- aws-sigv4 (1.0.0)
21
- coderay (1.1.1)
22
- jmespath (1.3.1)
23
- method_source (0.8.2)
24
- mysql2 (0.4.8)
25
- pg (0.18.4)
26
- pry (0.10.4)
27
- coderay (~> 1.1.0)
28
- method_source (~> 0.8.1)
29
- slop (~> 3.4)
30
- redis (3.3.3)
31
- slop (3.6.0)
32
-
33
- PLATFORMS
34
- ruby
35
-
36
- DEPENDENCIES
37
- bricolage!
38
- pry
39
-
40
- BUNDLED WITH
41
- 1.14.3
@@ -1 +0,0 @@
1
- enable-queue: true
@@ -1,8 +0,0 @@
1
- redshift-ds: sql
2
- event-queue-ds: sqs_strload_event
3
- task-queue-ds: sqs_strload_task
4
- url_patterns:
5
- -
6
- url: "s3://redshift-copy-buffer/development/log_stream/\\d{8}_\\d{4}_\\d+.*\\.gz"
7
- schema: "aamine"
8
- table: "pv_log"
@@ -1,3 +0,0 @@
1
- 2017-01-17 20:20:14 +0900: INFO: development environment
2
- 2017-01-17 20:20:14 +0900: INFO: 0.00 secs
3
- 2017-01-17 20:20:14 +0900: INFO: SUCCESS
@@ -1,3 +0,0 @@
1
- 2017-01-17 20:23:34 +0900: INFO: development environment
2
- 2017-01-17 20:23:34 +0900: INFO: 0.00 secs
3
- 2017-01-17 20:23:34 +0900: INFO: SUCCESS
@@ -1,3 +0,0 @@
1
- 2017-01-17 20:24:05 +0900: INFO: development environment
2
- 2017-01-17 20:24:05 +0900: INFO: 0.00 secs
3
- 2017-01-17 20:24:05 +0900: INFO: SUCCESS
@@ -1,80 +0,0 @@
1
- 2017-01-17 20:25:48 +0900: INFO: development environment
2
- 2017-01-17 20:25:48 +0900: INFO: [CMD] "/Users/minero-aoki/c/bricolage/libexec/sqldump" "--json" "127.0.0.1" "9011" "work_readonly" "main" "select * from main.search_backends;" | "gzip" "{:out=>"/tmp/bricolagedev/search_backends.json.gz"}"
3
- 2017-01-17 20:25:48.540819891 +0900 JST: [SQL] select * from main.search_backends;
4
- 2017-01-17 20:25:48.597928759 +0900 JST: query returned
5
- 2017-01-17 20:25:48.598038993 +0900 JST: Total 11 records
6
- 2017-01-17 20:25:48 +0900: INFO: aws s3 cp /tmp/bricolagedev/search_backends.json.gz s3://tabemiru-data.ap-northeast-1/dev/search_backends/search_backends.json.gz
7
- 2017-01-17 20:25:51 +0900: INFO: 3.28 secs
8
- 2017-01-17 20:25:51 +0900: ERROR: Aws::Errors::MissingCredentialsError: unable to sign request without credentials set
9
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/request_signer.rb:104:in `require_credentials'
10
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_request_signer.rb:14:in `call'
11
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/xml/error_handler.rb:8:in `call'
12
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/helpful_socket_errors.rb:10:in `call'
13
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_request_signer.rb:65:in `call'
14
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_redirects.rb:15:in `call'
15
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/retry_errors.rb:87:in `call'
16
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_dualstack.rb:32:in `call'
17
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_accelerate.rb:49:in `call'
18
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_md5s.rb:31:in `call'
19
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_expect_100_continue.rb:21:in `call'
20
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_bucket_name_restrictions.rb:12:in `call'
21
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_bucket_dns.rb:31:in `call'
22
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/rest/handler.rb:7:in `call'
23
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/user_agent.rb:12:in `call'
24
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/seahorse/client/plugins/endpoint.rb:41:in `call'
25
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/param_validator.rb:21:in `call'
26
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/seahorse/client/plugins/raise_response_errors.rb:14:in `call'
27
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_sse_cpk.rb:19:in `call'
28
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_dualstack.rb:24:in `call'
29
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/s3_accelerate.rb:34:in `call'
30
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/idempotency_token.rb:18:in `call'
31
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/aws-sdk-core/plugins/param_converter.rb:20:in `call'
32
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/seahorse/client/plugins/response_target.rb:21:in `call'
33
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/seahorse/client/request.rb:70:in `send_request'
34
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-core-2.6.36/lib/seahorse/client/base.rb:207:in `block (2 levels) in define_operation_methods'
35
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-resources-2.6.36/lib/aws-sdk-resources/services/s3/file_uploader.rb:42:in `block in put_object'
36
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-resources-2.6.36/lib/aws-sdk-resources/services/s3/file_uploader.rb:49:in `open_file'
37
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-resources-2.6.36/lib/aws-sdk-resources/services/s3/file_uploader.rb:41:in `put_object'
38
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-resources-2.6.36/lib/aws-sdk-resources/services/s3/file_uploader.rb:34:in `upload'
39
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/aws-sdk-resources-2.6.36/lib/aws-sdk-resources/services/s3/object.rb:251:in `upload_file'
40
- /Users/minero-aoki/c/bricolage/lib/bricolage/s3datasource.rb:188:in `block in run'
41
- /Users/minero-aoki/c/bricolage/lib/bricolage/s3datasource.rb:165:in `block in each_src_dest'
42
- /Users/minero-aoki/c/bricolage/lib/bricolage/s3datasource.rb:163:in `each'
43
- /Users/minero-aoki/c/bricolage/lib/bricolage/s3datasource.rb:163:in `each_src_dest'
44
- /Users/minero-aoki/c/bricolage/lib/bricolage/s3datasource.rb:186:in `run'
45
- /Users/minero-aoki/c/bricolage/lib/bricolage/script.rb:82:in `block (2 levels) in run'
46
- /Users/minero-aoki/c/bricolage/lib/bricolage/script.rb:81:in `each'
47
- /Users/minero-aoki/c/bricolage/lib/bricolage/script.rb:81:in `block in run'
48
- /Users/minero-aoki/c/bricolage/lib/bricolage/datasource.rb:136:in `open'
49
- /Users/minero-aoki/c/bricolage/lib/bricolage/datasource.rb:140:in `open_for_batch'
50
- /Users/minero-aoki/c/bricolage/lib/bricolage/script.rb:80:in `run'
51
- /Users/minero-aoki/c/bricolage/lib/bricolage/script.rb:47:in `block in run'
52
- /Users/minero-aoki/c/bricolage/lib/bricolage/script.rb:46:in `each'
53
- /Users/minero-aoki/c/bricolage/lib/bricolage/script.rb:46:in `run'
54
- /Users/minero-aoki/c/bricolage/lib/bricolage/job.rb:143:in `block in execute'
55
- /Users/minero-aoki/c/bricolage/lib/bricolage/logger.rb:44:in `with_elapsed_time'
56
- /Users/minero-aoki/c/bricolage/lib/bricolage/job.rb:142:in `execute'
57
- /Users/minero-aoki/c/bricolage/lib/bricolage/application.rb:68:in `block in main'
58
- /Users/minero-aoki/c/bricolage/lib/bricolage/application.rb:97:in `redirect_log_to_file'
59
- /Users/minero-aoki/c/bricolage/lib/bricolage/application.rb:67:in `main'
60
- /Users/minero-aoki/c/bricolage/lib/bricolage/application.rb:28:in `main'
61
- /Users/minero-aoki/c/bricolage/bin/bricolage:6:in `<top (required)>'
62
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bin/bricolage:23:in `load'
63
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/bin/bricolage:23:in `<top (required)>'
64
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `load'
65
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:74:in `kernel_load'
66
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli/exec.rb:27:in `run'
67
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:332:in `exec'
68
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
69
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'
70
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'
71
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:20:in `dispatch'
72
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'
73
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/cli.rb:11:in `start'
74
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/exe/bundle:34:in `block in <top (required)>'
75
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'
76
- /Users/minero-aoki/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.13.6/exe/bundle:26:in `<top (required)>'
77
- /Users/minero-aoki/.rbenv/versions/2.3/bin/bundle:23:in `load'
78
- /Users/minero-aoki/.rbenv/versions/2.3/bin/bundle:23:in `<main>'
79
-
80
- 2017-01-17 20:25:51 +0900: ERROR: error: Aws::Errors::MissingCredentialsError: unable to sign request without credentials set