-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-19968][SS] Use a cached instance of KafkaProducer instead of creating one every batch.
#17308
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
Closed
Closed
[SPARK-19968][SS] Use a cached instance of KafkaProducer instead of creating one every batch.
#17308
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8224596
[SPARK-19968][SS] Use a cached instance of KafkaProducer instead of c…
ScrapCodes e07e77e
Self review and code style improvements.
ScrapCodes d6e4088
[SPARK-20737] Mechanism for cleanup hooks, for structured-streaming s…
ScrapCodes 3ec9981
Synchronized access to local hash map.
ScrapCodes c614bc0
Style feedback
ScrapCodes e5cd1e6
Implementation using guava cache.
ScrapCodes ef2d6cd
Added shutdown hook as stop at driver is not very reliable.
ScrapCodes d2b3ecd
Corrected some style issues.
ScrapCodes 15dfc80
removed a stray change.
ScrapCodes 039d063
Code review, feedback.
ScrapCodes 1c9f892
Using spark conf instead of System.getProperties.
ScrapCodes 588fa03
Michael's feedback!
ScrapCodes a10276a
Using Loading cache, and few style related fixes.
ScrapCodes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't we need to get this from
SparkEnvby the way? I don't know if the properties get populated properly.Also, adding
minutesto the conf makes it kinda long right? I think we can also replaceguavawithproducer.I think it may also be better to use this so that we get rid of
minutesand users can actually provide arbitrary durations (hours if they want). I think that's what we generally use fordurationtype confs.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, you are right !