Update docs
@mhadam ci sta già lavorando.
Dal 17/7/2018.
Valutazione
Questa issue non è ancora stata valutata.
Descrizione
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
);
- Lingua principale
- Go
- Stelle
- 81
- Fork
- 15
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di snowplow/sql-runner
-
Update to aws-sdk-go-v2Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
snowplow/sql-runner#218 · 1 commento ·
-
Implement a loggerAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
snowplow/sql-runner#194 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
snowplow/sql-runner#193 · 1 commento ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
snowplow/sql-runner#186 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
snowplow/sql-runner#185 ·
Tutte le issue di snowplow/sql-runner
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
JakeChampion/lang#13132 ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] deploy.restart_policy without condition drops the restart policyForse già presa @akshat-lakhera l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
docker/compose#14383 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
Azure/azure-storage-fuse#2429 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
AvengeMedia/dank-greeter#39 · 1 commento ·
-
bug: dataplane client ignores SERVER_BASEPATH, so create/delete topic miss the subpathForse già presa @bhataprameya l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
redpanda-data/console#2693 ·
I maintainer di solito rispondono entro 2 giorni