Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BEAM-7029] Add KafkaIO.Write as an external transform #8322

Merged
merged 1 commit into from
Apr 26, 2019

Conversation

mxm
Copy link
Contributor

@mxm mxm commented Apr 16, 2019

This adds KafkaIO.Write as an external transform and includes a Python
wrapper (WriteToKafka) for convenience.

CC @chamikaramj @ihji @robertwb @tweise

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- --- --- --- ---
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Python Build Status
Build Status
--- Build Status
Build Status
Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

@mxm
Copy link
Contributor Author

mxm commented Apr 16, 2019

Run Python PreCommit

sdks/java/harness/build.gradle Outdated Show resolved Hide resolved
@mxm
Copy link
Contributor Author

mxm commented Apr 25, 2019

Planning to merge this later today if there are no further comments.

@tweise
Copy link
Contributor

tweise commented Apr 25, 2019

We should allow the user to specify the environment for the external transform. Would like to be able to use EMBEDDED when using the Flink runner.

@mxm
Copy link
Contributor Author

mxm commented Apr 25, 2019

I already discovered this before opening this PR and created https://jira.apache.org/jira/browse/BEAM-7084. I think this can be solved independently of this PR.

Copy link
Contributor

@aromanenko-dev aromanenko-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a couple of minor notes.

Copy link
Contributor

@chamikaramj chamikaramj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Max. LGTM other than few minor comments.

sdks/java/container/Dockerfile Show resolved Hide resolved
sdks/java/container/Dockerfile-java11 Show resolved Hide resolved
sdks/python/apache_beam/io/external/kafka.py Outdated Show resolved Hide resolved
self.assertTrue('No resolvable bootstrap urls given in bootstrap.servers'
in str(ctx.exception),
'Expected to fail due to invalid bootstrap.servers, but '
'failed due to:\n%s' % str(ctx.exception))

# We just test the expansion but do not execute.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI: @ihji is looking into adding a validates runner test suite for cross-language transforms that includes Kafka.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I saw the PR (#8397). That will be great to extend our test coverage here.

This adds KafkaIO.Write as an external transform and includes a Python
wrapper (WriteToKafka) for convenience.
@mxm
Copy link
Contributor Author

mxm commented Apr 26, 2019

Thanks for all the comments!

@mxm mxm merged commit 077223e into apache:master Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants