Skip to content

Kafka Source - #24

Merged
marmbrus merged 15 commits into
marmbrus:streaming-dffrom
tdas:streaming-df-kafka
Jan 12, 2016
Merged

marmbrus merged 15 commits into
marmbrus:streaming-dffrom
tdas:streaming-df-kafka

Conversation

@tdas

@tdas tdas commented Jan 7, 2016

Copy link
Copy Markdown
Collaborator

No description provided.

@tdas tdas changed the title Kafka Source [WIP] Kafka Source Jan 7, 2016
@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/17/
Test FAILed.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

maybe try this test case:

  (1 to 50).foreach  { i =>
    test(s"basic receiving #$i") {
      val topic = s"topic$i"
      testUtils.createTopic(topic)

      val kafkaSource = KafkaSource(Set(topic), kafkaParams)
      val mapped =
        kafkaSource
          .toDS()
          .map(kv => new String(kv._2).toInt + 1)

      testStream(mapped)(
        AddKafkaData(kafkaSource, topic, 1, 2, 3),
        CheckAnswer(2, 3, 4),
        StopStream,
        DropBatches(1),
        StartStream,
        CheckAnswer(2, 3, 4),
        StopStream,
        AddKafkaData(kafkaSource, topic, 4, 5, 6),
        StartStream,
        CheckAnswer(2, 3, 4, 5, 6, 7),
        AddKafkaData(kafkaSource, topic, 7),
        CheckAnswer(2, 3, 4, 5, 6, 7, 8))
    }
  }

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Oh yeah, I am going to add more tests! That's why WIP. Going to add multi-topic tests, etc.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Of course, I just tried that specific test and it uncovered several concurrency issues.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/27/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/28/
Test PASSed.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@marmbrus This is a bug here. Basically, [0, 0] < [0, 1] is correct, but the earlier code would give exception as signs = [0, -1]

@tdas

tdas commented Jan 9, 2016

Copy link
Copy Markdown
Collaborator Author

I want to add the randomized testing as well, but I dont want this to get blocked by that. Please start reviewing this.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/33/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/34/
Test FAILed.

@tdas

tdas commented Jan 11, 2016

Copy link
Copy Markdown
Collaborator Author

@marmbrus Ping for review.

Also Jenkins does not seem to be testing this. What do I do to force it?

@tdas

tdas commented Jan 11, 2016

Copy link
Copy Markdown
Collaborator Author

Jenkins, test this please.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/38/
Test PASSed.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Spark/Kafka ordering are inconsistent with the file above.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

wrap the trailing */

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/40/
Test PASSed.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I think this should be equals as well. Note that means we need to override hashcode too.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/41/
Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/42/
Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/43/
Test PASSed.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

I'm not sure that its valid to override equals without also overriding hashCode

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/44/
Test PASSed.

@tdas tdas changed the title [WIP] Kafka Source Kafka Source Jan 12, 2016
@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test PASSed.

@AmplabJenkins

Copy link
Copy Markdown

Test PASSed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/spark-streaming-df-test/45/
Test PASSed.

marmbrus added a commit that referenced this pull request Jan 12, 2016
@marmbrus
marmbrus merged commit d0807b1 into marmbrus:streaming-df Jan 12, 2016
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.

3 participants