bricolage 5.24.4 → 5.24.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bricolage/commandlineapplication.rb +2 -0
  3. data/lib/bricolage/context.rb +1 -1
  4. data/lib/bricolage/version.rb +1 -1
  5. data/test/home/Gemfile.lock +41 -0
  6. data/test/home/config/bricolage.yml +1 -0
  7. data/test/home/config/development/database.yml +89 -123
  8. data/test/home/config/development/password.yml +6 -3
  9. data/test/home/config/development/variable.yml +6 -20
  10. data/test/home/config/streamingload.yml +8 -0
  11. data/test/home/log/20170117/subsys::job1/20170117_202014082/subsys-job1.log +3 -0
  12. data/test/home/log/20170117/subsys::job1/20170117_202334852/subsys-job1.log +3 -0
  13. data/test/home/log/20170117/subsys::job1/20170117_202405056/subsys-job1.log +3 -0
  14. data/test/home/log/20170117/subsys::migrate/20170117_202548409/subsys-migrate.log +80 -0
  15. data/test/home/log/20170117/subsys::migrate/20170117_202636115/subsys-migrate.log +79 -0
  16. data/test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job1.log +3 -0
  17. data/test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job2.log +3 -0
  18. data/test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job3.log +3 -0
  19. data/test/home/log/20170117/subsys::net1/20170117_203022461/subsys-job4.log +3 -0
  20. data/test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job1.log +3 -0
  21. data/test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job2.log +3 -0
  22. data/test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job3.log +3 -0
  23. data/test/home/log/20170117/subsys::net1/20170117_203102130/subsys-job4.log +3 -0
  24. data/test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job1.log +3 -0
  25. data/test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job2.log +3 -0
  26. data/test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job3.log +3 -0
  27. data/test/home/log/20170117/subsys::net1/20170117_203232033/subsys-job4.log +3 -0
  28. data/test/home/log/20170629/subsys::job1/20170629_155543985/subsys-job1.log +3 -0
  29. data/test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job1.log +3 -0
  30. data/test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job2.log +3 -0
  31. data/test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job3.log +3 -0
  32. data/test/home/log/20170629/subsys::net1/20170629_154308811/subsys-job4.log +3 -0
  33. data/test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job1.log +3 -0
  34. data/test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job2.log +3 -0
  35. data/test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job3.log +3 -0
  36. data/test/home/log/20170629/subsys::net1/20170629_155330208/subsys-job4.log +3 -0
  37. data/test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job1.log +3 -0
  38. data/test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job2.log +3 -0
  39. data/test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job3.log +3 -0
  40. data/test/home/log/20170630/subsys::net1/20170630_145523511/subsys-job4.log +3 -0
  41. data/test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job1.log +3 -0
  42. data/test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job2.log +3 -0
  43. data/test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job3.log +3 -0
  44. data/test/home/log/20170630/subsys::net1/20170630_145545097/subsys-job4.log +3 -0
  45. data/test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job1.log +3 -0
  46. data/test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job2.log +3 -0
  47. data/test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job3.log +3 -0
  48. data/test/home/log/20170630/subsys::net1/20170630_145615702/subsys-job4.log +3 -0
  49. data/test/home/log/20170630/subsys::net1/20170630_153437221/subsys-job1.log +3 -0
  50. data/test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job1.log +3 -0
  51. data/test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job2.log +3 -0
  52. data/test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job3.log +3 -0
  53. data/test/home/log/20170630/subsys::net1/20170630_153507519/subsys-job4.log +3 -0
  54. data/test/home/log/20170704/subsys::insert/20170704_164335210/subsys-insert.log +14 -0
  55. data/test/home/log/20170704/subsys::insert/20170704_164344251/subsys-insert.log +14 -0
  56. data/test/home/log/20170704/subsys::insert/20170704_164723299/subsys-insert.log +14 -0
  57. data/test/home/log/20170704/subsys::insert.sql/20170704_164143661/subsys-insert.sql.log +14 -0
  58. data/test/home/log/20170704/subsys::insert.sql.job/20170704_163033119/subsys-insert.log +14 -0
  59. data/test/home/log/20170704/subsys::insert.sql.job/20170704_172410576/subsys-insert.log +14 -0
  60. data/test/home/log/20170704/subsys::insert.sql.job/20170704_173130175/subsys-insert.log +14 -0
  61. data/test/home/log/20170704/subsys::insert.sql.job/20170704_173201376/subsys-insert.log +14 -0
  62. data/test/home/log/20170704/subsys::net1/20170704_162457694/subsys-job1.log +3 -0
  63. data/test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job1.log +3 -0
  64. data/test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job2.log +3 -0
  65. data/test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job3.log +3 -0
  66. data/test/home/log/20170704/subsys::net1/20170704_162544282/subsys-job4.log +3 -0
  67. data/test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job1.log +3 -0
  68. data/test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job2.log +3 -0
  69. data/test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job3.log +3 -0
  70. data/test/home/log/20170706/subsys::net1/20170706_201157129/subsys-job4.log +3 -0
  71. data/test/home/log/20170707/subsys::insert/20170707_020050817/subsys-insert.log +51 -0
  72. data/test/home/log/20170707/subsys::insert/20170707_020050817/subsys-insert.log.status +1 -0
  73. data/test/home/log/20170707/subsys::job1/20170707_020542902/subsys-job1.log +3 -0
  74. data/test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job1.log +3 -0
  75. data/test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job2.log +3 -0
  76. data/test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job3.log +3 -0
  77. data/test/home/log/20170707/subsys::net1/20170707_012252058/subsys-job4.log +3 -0
  78. data/test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job1.log +3 -0
  79. data/test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job2.log +3 -0
  80. data/test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job3.log +3 -0
  81. data/test/home/log/20170707/subsys::net1/20170707_020039222/subsys-job4.log +3 -0
  82. data/test/home/revert.sh +7 -0
  83. data/test/home/s +1 -0
  84. metadata +79 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 832c3083b42f0c549ed2dbc8441716b16b093d3e
4
- data.tar.gz: 50fd92b977334362676bd587bbd02fed46327213
3
+ metadata.gz: 4b71b15a2d239fd8a8b169bea0f99c7880c2aec1
4
+ data.tar.gz: 446fbe3dda930b01c6e5345fa0183ada08fac6ed
5
5
  SHA512:
6
- metadata.gz: 1f0ed17c1a0e745cc5b54beb0bc434a5922a2f2767607002d40ba2f3599c31258b8dfb54e5b45a2cbd530cd49302d1a0b35c22d19815e77bb96946a79af7514e
7
- data.tar.gz: e3ba6c8d1020d46e96e1e110e759e4022f3d63243f9d621e88278c0067337c574dab9062df3124c667a915ce4496cb6c260d8b741b33c46e199d48c636cd33d7
6
+ metadata.gz: bc8c94df189b0576f807def6842a11f4503c0b4aefdd62516d3b9ad5d203e5f8908ffad424e1cc187fc47a6516ffbb227b784654b87060dd3c2196dc5a626359
7
+ data.tar.gz: 30361db5eda0a5d0ca7893b43463caa47f0aa0460d5dc36f65e6e7fb20d6893931f87fe5d80ca8a066ed02f461fc6450f22c44423a4837045c93a68b3db22430
@@ -24,6 +24,7 @@ module Bricolage
24
24
  end
25
25
 
26
26
  attr_reader :name
27
+ attr_reader :options
27
28
 
28
29
  def define_default_options
29
30
  @options.on_tail('-e', '--environment=ENV', "Bricolage execution environment. (default: #{Context.environment})") {|env|
@@ -41,6 +42,7 @@ module Bricolage
41
42
 
42
43
  extend Forwardable
43
44
  def_delegator '@options', :on
45
+ def_delegator '@options', :help
44
46
 
45
47
  DataSourceOpt = Struct.new(:kind, :name, :ds)
46
48
 
@@ -49,7 +49,7 @@ module Bricolage
49
49
 
50
50
  def load_configurations
51
51
  @filesystem.config_pathes('prelude.rb').each do |path|
52
- EmbeddedCodeAPI.module_eval(File.read(path)) if path.exist?
52
+ EmbeddedCodeAPI.module_eval(File.read(path), path.to_s, 1) if path.exist?
53
53
  end
54
54
  @data_sources = DataSourceFactory.load(self, @logger)
55
55
  end
@@ -1,4 +1,4 @@
1
1
  module Bricolage
2
2
  APPLICATION_NAME = 'Bricolage'
3
- VERSION = '5.24.4'
3
+ VERSION = '5.24.6'
4
4
  end
@@ -0,0 +1,41 @@
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
@@ -0,0 +1 @@
1
+ enable-queue: true
@@ -1,147 +1,113 @@
1
- #
2
- # Shared
3
- #
4
-
5
- redshift_base: &redshift_base
1
+ sql: &redshift_parameters
6
2
  type: psql
7
- host: <%= ENV['RSPROXYHOST'] ? 'localhost' : (ENV['RSHOST'] || 'cookpad-dwh-401.cbzwjkf60uat.ap-northeast-1.redshift.amazonaws.com') %>
8
- port: <%= ENV['RSPROXYPORT'] || ENV['RSPORT'] || 5439 %>
3
+ host: <%= ENV['RSHOST'] || 'dwh.ckpd.co' %>
4
+ port: <%= ENV['RSPORT'] || 5439 %>
9
5
  database: production
10
- username: <%= ENV['RSUSER'] || 'dwhdev' %>
6
+ username: <%= ENV['RSUSER'] || 'tabemirudev' %>
11
7
  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' %>
26
8
  encoding: utf8
27
9
 
10
+ #sql_dev:
11
+ # <<: *redshift_parameters
28
12
  #
29
- # Redis
30
- #
31
- redis:
32
- type: redis
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
33
28
  host: localhost
34
- port: 6379
35
- db: 0
36
-
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
29
+ port: 5446
30
+ database: production
31
+ username: tabemiru_batch
32
+ pgpass: <%= user_home_relative_path '.pgpass' %>
33
+ encoding: utf8
49
34
 
50
- #
51
- # S3
52
- #
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
53
44
 
54
45
  s3:
55
- <<: *s3_base
56
- bucket: redshift-copy-buffer
57
-
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
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"
100
63
 
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 %>
64
+ mysql:
65
+ type: mysql
66
+ host: 127.0.0.1
67
+ port: 9011
105
68
  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
126
69
  username: work_readonly
127
70
  password: <%= password 'mysql_shared_work_readonly' %>
71
+ encoding: utf8
128
72
 
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 %>
73
+ mysql_summary:
74
+ type: mysql
75
+ host: 127.0.0.1
76
+ port: 40201
133
77
  database: summarized_data
134
78
  username: work_readonly
135
79
  password: <%= password 'mysql_shared_work_readonly' %>
80
+ encoding: utf8
136
81
 
137
- mysql:
138
- <<: *cookpad_main_db
139
-
140
- #
141
- # TD
142
- #
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"
143
104
 
144
105
  td:
145
106
  type: td
146
107
  database: logs
147
108
  apikey: <%= password 'td_tabemiru' %>
109
+
110
+ td_search_log:
111
+ type: td
112
+ database: search_log
113
+ apikey: <%= password 'td_tabemiru' %>
@@ -1,3 +1,6 @@
1
- mysql_shared_work_readonly: s0uL/M@9r1
2
- mysql_shared_ckpd_readonly: hoge
3
- td_tabemiru: 121/e9d758221f5ad5e2747337d1d79f974389e6cc0a
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,21 +1,7 @@
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") %>
1
+ data_dir: /tmp/bricolagedev
2
+ test_schema: aamine
3
+ test_group: aamine
4
+ activity_schema: aamine
5
5
 
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
6
+ defaults:
7
+ analyze: true
@@ -0,0 +1,8 @@
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"
@@ -0,0 +1,3 @@
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
@@ -0,0 +1,3 @@
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
@@ -0,0 +1,3 @@
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
@@ -0,0 +1,80 @@
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
@@ -0,0 +1,79 @@
1
+ 2017-01-17 20:26:36 +0900: INFO: development environment
2
+ 2017-01-17 20:26:36 +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:26:36.214888001 +0900 JST: [SQL] select * from main.search_backends;
4
+ 2017-01-17 20:26:36.27827597 +0900 JST: query returned
5
+ 2017-01-17 20:26:36.278393544 +0900 JST: Total 11 records
6
+ 2017-01-17 20:26:36 +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
+ rm -f /tmp/bricolagedev/search_backends.json.gz
8
+ 2017-01-17 20:26:36 +0900: INFO: command: psql --no-psqlrc --host=dwh.ckpd.co --port=5439 --username=aamine production --echo-all -v ON_ERROR_STOP=true -f /var/folders/_t/f8rv7p995rq8m3j3tf45w4rm0000gp/T/1484652396_69460_3fd54d43f9d8_14594 --no-password
9
+ \timing on
10
+ Timing is on.
11
+ begin transaction;
12
+ BEGIN
13
+ Time: 8.269 ms
14
+ drop table if exists aamine.search_backends_old cascade;
15
+ psql:/var/folders/_t/f8rv7p995rq8m3j3tf45w4rm0000gp/T/1484652396_69460_3fd54d43f9d8_14594:5: INFO: Table "search_backends_old" does not exist and will be skipped
16
+ DROP TABLE
17
+ Time: 8.647 ms
18
+ drop table if exists aamine.search_backends_wk cascade;
19
+ psql:/var/folders/_t/f8rv7p995rq8m3j3tf45w4rm0000gp/T/1484652396_69460_3fd54d43f9d8_14594:7: INFO: Table "search_backends_wk" does not exist and will be skipped
20
+ DROP TABLE
21
+ Time: 8.031 ms
22
+ /* /Users/minero-aoki/c/bricolage/test/home/subsys/search_backends.ct */
23
+ create table aamine.search_backends_wk
24
+ ( id int
25
+ , role varchar(10)
26
+ , group_id smallint
27
+ , index_type varchar(32)
28
+ , config_key varchar(32)
29
+ , updated_at timestamp
30
+ )
31
+ distkey (id)
32
+ sortkey (id)
33
+ ;
34
+ CREATE TABLE
35
+ Time: 521.167 ms
36
+ copy aamine.search_backends_wk
37
+ from 's3://tabemiru-data.ap-northeast-1/dev/search_backends/search_backends.json.gz'
38
+ credentials 'aws_iam_role=arn:aws:iam::789035092620:role/RedshiftDWHTeamS3Access'
39
+ json 'auto'
40
+ statupdate false
41
+ compupdate false
42
+ emptyasnull
43
+ gzip
44
+ ;
45
+ psql:/var/folders/_t/f8rv7p995rq8m3j3tf45w4rm0000gp/T/1484652396_69460_3fd54d43f9d8_14594:30: INFO: Load into table 'search_backends_wk' completed, 11 record(s) loaded successfully.
46
+ COPY
47
+ Time: 1235.569 ms
48
+ grant select on aamine.search_backends_wk to aamine;
49
+ GRANT
50
+ Time: 8.580 ms
51
+ analyze aamine.search_backends_wk;
52
+ ANALYZE
53
+ Time: 43.441 ms
54
+ create table if not exists aamine.search_backends (x int);
55
+ psql:/var/folders/_t/f8rv7p995rq8m3j3tf45w4rm0000gp/T/1484652396_69460_3fd54d43f9d8_14594:36: INFO: Relation "search_backends" already exists and will be skipped
56
+ CREATE TABLE
57
+ Time: 7.768 ms
58
+ alter table aamine.search_backends rename to search_backends_old;
59
+ ALTER TABLE
60
+ Time: 10.037 ms
61
+ alter table aamine.search_backends_wk rename to search_backends;
62
+ ALTER TABLE
63
+ Time: 11.686 ms
64
+ commit;
65
+ COMMIT
66
+ Time: 8482.452 ms
67
+ drop table if exists aamine.search_backends_old cascade;
68
+ DROP TABLE
69
+ Time: 4801.919 ms
70
+ ;
71
+ Time: 8.088 ms
72
+ vacuum sort only aamine.search_backends;
73
+ VACUUM
74
+ Time: 36970.832 ms
75
+ ;
76
+ Time: 8.746 ms
77
+ 2017-01-17 20:27:29 +0900: INFO: status: 0 (pid 69478 exit 0)
78
+ 2017-01-17 20:27:29 +0900: INFO: 53.05 secs
79
+ 2017-01-17 20:27:29 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:30:22 +0900: INFO: development environment
2
+ 2017-01-17 20:30:22 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:30:22 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:30:22 +0900: INFO: development environment
2
+ 2017-01-17 20:30:22 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:30:22 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:30:22 +0900: INFO: development environment
2
+ 2017-01-17 20:30:22 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:30:22 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:30:22 +0900: INFO: development environment
2
+ 2017-01-17 20:30:22 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:30:22 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:31:02 +0900: INFO: development environment
2
+ 2017-01-17 20:31:02 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:31:02 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:31:02 +0900: INFO: development environment
2
+ 2017-01-17 20:31:02 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:31:02 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:31:02 +0900: INFO: development environment
2
+ 2017-01-17 20:31:02 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:31:02 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:31:02 +0900: INFO: development environment
2
+ 2017-01-17 20:31:02 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:31:02 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:32:32 +0900: INFO: development environment
2
+ 2017-01-17 20:32:32 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:32:32 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:32:32 +0900: INFO: development environment
2
+ 2017-01-17 20:32:32 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:32:32 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:32:32 +0900: INFO: development environment
2
+ 2017-01-17 20:32:32 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:32:32 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-01-17 20:32:32 +0900: INFO: development environment
2
+ 2017-01-17 20:32:32 +0900: INFO: 0.00 secs
3
+ 2017-01-17 20:32:32 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-06-29 15:55:43 +0900: INFO: development environment
2
+ 2017-06-29 15:55:43 +0900: INFO: 0.00 secs
3
+ 2017-06-29 15:55:43 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-06-29 15:43:08 +0900: INFO: development environment
2
+ 2017-06-29 15:43:08 +0900: INFO: 0.00 secs
3
+ 2017-06-29 15:43:08 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-06-29 15:43:08 +0900: INFO: development environment
2
+ 2017-06-29 15:43:08 +0900: INFO: 0.00 secs
3
+ 2017-06-29 15:43:08 +0900: INFO: SUCCESS
@@ -0,0 +1,3 @@
1
+ 2017-06-29 15:43:08 +0900: INFO: development environment
2
+ 2017-06-29 15:43:08 +0900: INFO: 0.00 secs
3
+ 2017-06-29 15:43:08 +0900: INFO: SUCCESS