mediative / amadou Goto Github PK
View Code? Open in Web Editor NEWIgnite your Spark ETL jobs
Home Page: https://mediative.github.io/amadou/api/#com.mediative.amadou.package
License: Apache License 2.0
Ignite your Spark ETL jobs
Home Page: https://mediative.github.io/amadou/api/#com.mediative.amadou.package
License: Apache License 2.0
One context to rule them all.
amadou/core/src/main/scala/com.mediative.amadou/SparkRunner.scala
Lines 101 to 133 in 1b1eca3
The naming convention from Apache Beam is very good and amadou should use it. This would also allow to make certain parts easier to test by removing use of hard coded processing date (e.g. Day.today
).
date
renamed to eventDate
and a new processingDate
member.Each stage automatically emits the recordsProcessed
metric which may lead to zero values for stages that do not do any Spark reads. Avoid the zero values to not skew the dashboard which does a mean
on the values returned for a given day.
The sparkRecordsRead
counter.
No recordsProcessed
custom metric is emitted for stages that does no reads.
Motivation: make <job>/run
exit back to sbt immediately.
Failure to resolve a Kafka broker will crash a job
Caused by: org.apache.kafka.common.config.ConfigException: DNS resolution failed for url in bootstrap.servers: broker-1.kafka.mesos:6000
at org.apache.kafka.common.utils.ClientUtils.parseAndValidateAddresses(ClientUtils.java:38)
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:189)
at org.apache.kafka.clients.producer.KafkaProducer.<init>(KafkaProducer.java:129)
at com.mediative.amadou.monitoring.KafkaMessagingSystem.<init>(KafkaMessagingSystem.scala:26)
at com.mediative.amadou.monitoring.MessagingSystem$.create(MessagingSystem.scala:33)
at com.mediative.amadou.SparkRunner.<init>(SparkRunner.scala:140)
at com.mediative.mpn.brain.dataflow.jobs.national.National$.<init>(National.scala:14)
at com.mediative.mpn.brain.dataflow.jobs.national.National$.<clinit>(National.scala)
... 1 more
Ensure that all data in a dataset is written to BQ.
job.getStatistics.getLoad.getOutputRows
From emitted log:
17/04/26 14:15:55 ERROR AAA$: [ProcessContext(aaa,2017-04-26,98fc8de3-259c-4c3c-865c-8e9dc1003372,1493215211215)] Will retry stage com.mediative.amadou.Stage$$anon$3@2cfbeac4 in 20 minutes
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.