-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-2808][Streaming][Kafka] update kafka to 0.8.2 #4537
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
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
e768164
#2808 update kafka to version 0.8.2
d9dc2bc
Merge remote-tracking branch 'upstream/master' into wip-2808-kafka-0.…
2e67c66
#SPARK-2808 Update to Kafka 0.8.2.0 GA from beta.
6953429
[SPARK-2808][Streaming][Kafka] update kafka to 0.8.2
koeninger 77de6c2
Merge branch 'master' into wip-2808-kafka-0.8.2-upgrade
koeninger 407382e
[SPARK-2808][Streaming][Kafka] update kafka to 0.8.2.1
koeninger ed02d2c
[SPARK-2808][Streaming][Kafka] move default argument for api version …
koeninger 1d10751
Merge branch 'master' into wip-2808-kafka-0.8.2-upgrade
koeninger c70ee43
[SPARK-2808][Streaming][Kafka] add more asserts to test, try to figur…
koeninger 9edab4c
[SPARK-2808][Streaming][Kafka] more shots in the dark on jenkins fail…
koeninger af6f3ec
[SPARK-2808][Streaming][Kafka] delay test until latest leader offset …
koeninger 61b3464
[SPARK-2808][Streaming][Kafka] delay for second send in boundary cond…
koeninger 3824ce3
[SPARK-2808][Streaming][Kafka] naming / comments per tdas
koeninger 2b92d3f
[SPARK-2808][Streaming][Kafka] wait for leader offsets in the java te…
koeninger 2712649
[SPARK-2808][Streaming][Kafka] add more logging to python test, see w…
koeninger 115aeee
Merge branch 'master' into wip-2808-kafka-0.8.2-upgrade
koeninger 4c4557f
[SPARK-2808][Streaming][Kafka] add even more logging to python test
koeninger 1d896e2
[SPARK-2808][Streaming][Kafka] add even even more logging to python test
koeninger 30d991d
[SPARK-2808][Streaming][Kafka] remove stderr prints since it breaks p…
koeninger d4267e9
[SPARK-2808][Streaming][Kafka] fix stderr redirect in python test script
koeninger 1770abc
[SPARK-2808][Streaming][Kafka] make waitUntilLeaderOffset easier to c…
koeninger e6dfaf6
[SPARK-2808][Streaming][Kafka] pointless whitespace change to trigger…
koeninger 803aa2c
[SPARK-2808][Streaming][Kafka] code cleanup per TD
koeninger 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
[SPARK-2808][Streaming][Kafka] make waitUntilLeaderOffset easier to c…
…all, call it from python tests as well
- Loading branch information
commit 1770abc64eaa8123301345f68e66aa2647bf2033
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -615,7 +615,7 @@ def test_kafka_stream(self): | |
|
|
||
| self._kafkaTestUtils.createTopic(topic) | ||
| self._kafkaTestUtils.sendMessages(topic, sendData) | ||
| time.sleep(5) | ||
| self._kafkaTestUtils.waitUntilLeaderOffset(topic, 0, sum(sendData.values())) | ||
|
|
||
| stream = KafkaUtils.createStream(self.ssc, self._kafkaTestUtils.zkAddress(), | ||
| "test-streaming-consumer", {topic: 1}, | ||
|
|
@@ -659,7 +659,7 @@ def test_kafka_rdd(self): | |
|
|
||
| self._kafkaTestUtils.createTopic(topic) | ||
| self._kafkaTestUtils.sendMessages(topic, sendData) | ||
| time.sleep(5) | ||
| self._kafkaTestUtils.waitUntilLeaderOffset(topic, 0, sum(sendData.values())) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should be added for the all the kafka unit tests, whereever there is a sendMessage. Its missing in |
||
| rdd = KafkaUtils.createRDD(self.sc, kafkaParams, offsetRanges) | ||
| self._validateRddResult(sendData, rdd) | ||
|
|
||
|
|
@@ -675,7 +675,7 @@ def test_kafka_rdd_with_leaders(self): | |
|
|
||
| self._kafkaTestUtils.createTopic(topic) | ||
| self._kafkaTestUtils.sendMessages(topic, sendData) | ||
| time.sleep(5) | ||
| self._kafkaTestUtils.waitUntilLeaderOffset(topic, 0, sum(sendData.values())) | ||
| rdd = KafkaUtils.createRDD(self.sc, kafkaParams, offsetRanges, leaders) | ||
| self._validateRddResult(sendData, rdd) | ||
|
|
||
|
|
||
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.
What does this function do? Either make the name more meaningful (like
waitUntilMetadataIsPropagated) or add scala docs.