Update docs
@mhadam đang làm issue này rồi.
Từ ngày 17/7/2018.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Currently using v0.5.2
I have a playbook with 2 steps.
I can see the unloads finish on redshift, however the last step never executes and I get a timeout error on the first step. This just recently started happening and there is nothing running on the cluster that would cause it to block. If I run a 2nd or 3rd time it works just fine.
- Is there a more verbose output?
- What can I do differently?
I've even split up the queries into multiple steps and still no go.
Thanks
danny
error
‘/opt/sql-runner/queries/redshift/playbooks/web-incremental.yml.tpl’ -> ‘/opt/sql-runner/queries/redshift/playbooks/web-incremental.yml’
Using /opt/sql-runner/queries/redshift/playbooks/web-incremental.yml @ 2017-07-07-04-02
‘/opt/sql-runner/queries/redshift/playbooks/bi-kafka-incremental.yml.tpl’ -> ‘/opt/sql-runner/queries/redshift/playbooks/bi-kafka-incremental.yml’
Using /opt/sql-runner/queries/redshift/playbooks/bi-kafka-incremental.yml @ 2017-07-07-04-02
2017/07/07 04:02:19 EXECUTING unload-kafka-to-s3 (in step unload-kafka-to-s3 @ dwh): /opt/sql-runner/queries/redshift/sql/bi-kafka/incremental/unload-kafka-to-s3.sql
2017/07/07 06:02:47 FAILURE: unload-kafka-to-s3 (step unload-kafka-to-s3 @ target dwh), ERROR: read tcp 172.35.5.39:50733->:5439: read: connection reset by peer
2017/07/07 06:02:47
TARGET INITIALIZATION FAILURES:
QUERY FAILURES:
* Query unload-kafka-to-s3 /opt/sql-runner/queries/redshift/sql/bi-kafka/incremental/unload-kafka-to-s3.sql (in step unload-kafka-to-s3 @ target dwh), ERROR:
- read tcp 172.35.5.39:50733->22.11.33.98:5439: read: connection reset by peer
playbook
targets:
- :name: __BI_DB_NAME__
:type: redshift
:host: __BI_DB_HOST__
:database: __BI_DB_NAME__
:port: __BI_DB_PORT__
:username: __BI_DB_USERNAME__
:password: __BI_DB_PASSWORD__
:steps:
- :name: unload-kafka-to-s3
:queries:
- :name: unload-kafka-to-s3
:file: sql/bi-kafka/incremental/unload-kafka-to-s3.sql
:template: true
- :name: ad-bi-time-track
:queries:
- :name: ad-bi-time-track
:file: sql/bi-kafka/recalculate/add-last-kafkalisting-to-timetrack.sql
first step
UNLOAD ('
with last_time as (SELECT MAX(last_processed) as last_time from snowplow_runner.time_track)
SELECT listing_id, listing_key, event_type, event_unixtimestamp,
event_date, event_datetime, listing_unixtimestamp,
listing_date, listing_datetime, country, state, city,
neighbourhood, category_l1, category_l2, category_l3,
category_l4, language, user_id, user_name, geo_country,
email, phone_number, live, seller_type, condition_id,
price_type_id, price, currency_code, location_zip, ip,
channel, images, title, featured_listing, first_ad, event_uuid,
source, full_neighbourhood, listing_platform
FROM kafka.listings, last_time
WHERE event_datetime > last_time
AND event_type = \'approved\'
ORDER BY event_datetime
')
to 's3://{{systemEnv "S3_BI_KAKFA_BUCKET"}}/run_time={{systemEnv "RUN_TIMESTAMP"}}_{{systemEnv "RUN_TYPE"}}/listings_'
{{awsEnvCredentials}}
ESCAPE;
UNLOAD ('
with last_time as (SELECT MAX(last_processed) as last_time from snowplow_runner.time_track)
SELECT listing_id, event_unixtimestamp, event_uuid, partial, data_bag
FROM kafka.listings_databag, last_time
WHERE (TIMESTAMP \'epoch\' + event_unixtimestamp * INTERVAL \'1 Second \') > last_time
AND (event_uuid, listing_id) in (SELECT DISTINCT event_uuid, listing_id from kafka.listings where event_type = \'uae_listing_approved\')
ORDER BY event_unixtimestamp
')
to 's3://{{systemEnv "S3_BI_KAKFA_BUCKET"}}/run_time={{systemEnv "RUN_TIMESTAMP"}}_{{systemEnv "RUN_TYPE"}}/data_bag_'
{{awsEnvCredentials}}
ESCAPE;
Second step
INSERT INTO snowplow_runner.time_track (
SELECT MAX(event_datetime) as last_time from kafka.listings
);
- Ngôn ngữ chính
- Go
- Star
- 81
- Fork
- 15
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của snowplow/sql-runner
-
Update to aws-sdk-go-v2Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
snowplow/sql-runner#218 · 1 bình luận ·
-
Implement a loggerĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
snowplow/sql-runner#194 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
snowplow/sql-runner#193 · 1 bình luận ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
snowplow/sql-runner#186 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
snowplow/sql-runner#185 ·
Tất cả issue của snowplow/sql-runner
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
FiloSottile/age#758 ·
-
nginx configĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
Maintainer thường phản hồi trong vòng 1 ngày