Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
theodolite
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Sören Henning
theodolite
Commits
b874591c
Commit
b874591c
authored
3 years ago
by
Sören Henning
Browse files
Options
Downloads
Patches
Plain Diff
Minor code cleanup
parent
98f8e1c8
No related branches found
No related tags found
1 merge request
!245
Firestore sink for UC1 Beam
Pipeline
#6642
passed
3 years ago
Stage: build
Stage: test
Stage: check
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theodolite-benchmarks/uc1-beam/src/main/java/application/Uc1BeamPipeline.java
+7
-16
7 additions, 16 deletions
...s/uc1-beam/src/main/java/application/Uc1BeamPipeline.java
with
7 additions
and
16 deletions
theodolite-benchmarks/uc1-beam/src/main/java/application/Uc1BeamPipeline.java
+
7
−
16
View file @
b874591c
...
...
@@ -9,14 +9,8 @@ import theodolite.commons.beam.AbstractPipeline;
import
theodolite.commons.beam.kafka.KafkaActivePowerTimestampReader
;
import
titan.ccp.model.records.ActivePowerRecord
;
/**
* Implementation of the use case Database Storage using Apache Beam with the Flink Runner. To
* execute locally in standalone start Kafka, Zookeeper, the schema-registry and the workload
* generator using the delayed_startup.sh script. Start a Flink cluster and pass its REST adress
* using--flinkMaster as run parameter. To persist logs add
* ${workspace_loc:/uc1-application-samza/eclipseConsoleLogs.log} as Output File under Standard
* Input Output in Common in the Run Configuration Start via Eclipse Run.
* Implementation of benchmark UC1: Database Storage with Apache Beam.
*/
public
final
class
Uc1BeamPipeline
extends
AbstractPipeline
{
...
...
@@ -27,19 +21,16 @@ public final class Uc1BeamPipeline extends AbstractPipeline {
final
SinkType
sinkType
=
SinkType
.
from
(
config
.
getString
(
SINK_TYPE_KEY
));
// Set Coders for
C
lasses that will be distributed
final
CoderRegistry
cr
=
this
.
getCoderRegistry
();
// Set Coders for
c
lasses that will be distributed
final
CoderRegistry
cr
=
super
.
getCoderRegistry
();
cr
.
registerCoderForClass
(
ActivePowerRecord
.
class
,
AvroCoder
.
of
(
ActivePowerRecord
.
SCHEMA
$
));
// Create Pipeline transformations
final
KafkaActivePowerTimestampReader
kafka
=
new
KafkaActivePowerTimestampReader
(
this
.
bootstrapServer
,
this
.
inputTopic
,
this
.
buildConsumerConfig
());
super
.
bootstrapServer
,
super
.
inputTopic
,
super
.
buildConsumerConfig
());
// Apply pipeline transformations
// Read from Kafka
this
.
apply
(
kafka
)
super
.
apply
(
kafka
)
.
apply
(
Values
.
create
())
.
apply
(
sinkType
.
create
(
config
));
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment