[ 
https://issues.apache.org/jira/browse/BEAM-6207?focusedWorklogId=191090&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-191090
 ]

ASF GitHub Bot logged work on BEAM-6207:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 28/Jan/19 15:59
            Start Date: 28/Jan/19 15:59
    Worklog Time Spent: 10m 
      Work Description: lgajowy commented on pull request #7612: [BEAM-6207] 
Added option to publish synthetic data to Kafka topic.
URL: https://github.com/apache/beam/pull/7612#discussion_r251477916
 
 

 ##########
 File path: 
sdks/java/testing/load-tests/src/main/java/org/apache/beam/sdk/loadtests/SyntheticDataPubSubPublisher.java
 ##########
 @@ -83,14 +95,41 @@ public static void main(String[] args) throws IOException {
 
     Pipeline pipeline = Pipeline.create(options);
 
-    pipeline
-        .apply("Read synthetic data", Read.from(new 
SyntheticBoundedSource(sourceOptions)))
-        .apply("Map to PubSub messages", MapElements.via(new 
MapBytesToPubSubMessage()))
-        .apply("Write to PubSub", 
PubsubIO.writeMessages().to(options.getInsertionPipelineTopic()));
-
+    if (options.getKafkaBootstrapServerAddress() != null) {
 
 Review comment:
   IMO it can stay as one file. After all, we can have multiple sinks in one 
pipeline and even publish to both at the same time if we want to (no idea that 
this is ever going to be a case, though...  :) ) . I'd split it like I 
suggested in the review comments below. 
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 191090)
    Time Spent: 1.5h  (was: 1h 20m)

> extend "Data insertion Pipeline" with Kafka IO
> ----------------------------------------------
>
>                 Key: BEAM-6207
>                 URL: https://issues.apache.org/jira/browse/BEAM-6207
>             Project: Beam
>          Issue Type: Sub-task
>          Components: io-java-kafka, testing
>            Reporter: Lukasz Gajowy
>            Assignee: Michal Walenia
>            Priority: Trivial
>          Time Spent: 1.5h
>  Remaining Estimate: 0h
>
> Since now we have the Data insertion pipeline based on PubSubIO, it can be 
> easily extended with KafkaIO if needed. Same data then could be published to 
> any of the sinks leaving out the choice and enabling the data insertion 
> pipeline for Flink.
>  



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to