Skip to content

SPARK-1022 [BUILD] Depend on Zookeeper from Kafka tests #1804

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
wants to merge 1 commit into from

Conversation

srowen
Copy link
Member

@srowen srowen commented Aug 6, 2014

Per discussion at #1751 I suggest that the more correct thing to do is to depend on Zookeeper from Kafka tests. The first commit does this.

The second commit reflects the explicit dependency on ZK in core, in order to make zookeeper.version do something. Another reasonable change would be to simply remove zookeeper.version to reflect that otherwise it does nothing.

@srowen
Copy link
Member Author

srowen commented Aug 6, 2014

Jenkins, test this please.

@SparkQA
Copy link

SparkQA commented Aug 6, 2014

QA tests have started for PR 1804. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18018/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 6, 2014

QA results for PR 1804:
- This patch FAILED unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18018/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 6, 2014

QA tests have started for PR 1804. This patch merges cleanly.
View progress: https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18019/consoleFull

@SparkQA
Copy link

SparkQA commented Aug 6, 2014

QA results for PR 1804:
- This patch PASSES unit tests.
- This patch merges cleanly
- This patch adds no public classes

For more information see test ouptut:
https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/18019/consoleFull

@tdas
Copy link
Contributor

tdas commented Aug 6, 2014

Continuing the discussion in #1751, an alternative solution is to apply this explicit zookeeper dependency on only the spark-stremaing-kafka module (since immediately explicitly needs it) as opposed to the spark-core module (which may make it more convenient to control zookeeper version across all vendors builds).

@srowen
Copy link
Member Author

srowen commented Aug 8, 2014

@tdas also 'porting' my comment -- the problem is that right now, without the dependency declared in core, there is no way to control which version of ZK goes into Spark core. You get what Curator happens to depend on. Core already depends on ZK indirectly.

However, I see no reason that Spark cares about ZK per se. Vendors can control the ZK versions downstream if it maters. So it's probably less confusing to just remove zookeeper.version too. Right now it's overridden in the MapR profile, as if it does something, when it doesn't.

The explicit dependency in Kafka tests can directly specify a version of, say, 3.4.5 for its own purpose. That fully contains the ZK dependency issue and seems entirely correct to me. Updated PR coming...

…se ZK directly. Don't depend on ZK explicitly from core and remove unused zookeeper.version
@SparkQA
Copy link

SparkQA commented Aug 21, 2014

QA tests have started for PR 1804 at commit eb92ed8.

  • This patch merges cleanly.

@SparkQA
Copy link

SparkQA commented Aug 21, 2014

QA tests have finished for PR 1804 at commit eb92ed8.

  • This patch fails unit tests.
  • This patch merges cleanly.
  • This patch adds the following public classes (experimental):
    • In multiclass classification, all$2^`
    • public final class JavaDecisionTree

@srowen
Copy link
Member Author

srowen commented Aug 21, 2014

Bah, I give up on this. Not clear whether the test failure is a false positive. At this point, the point of the patch is really just "zookeeper.properties is not used, but the build acts like it thinks it is used", and that's minor. Somebody zap that someday...

@srowen srowen closed this Aug 21, 2014
@srowen srowen deleted the SPARK-1022 branch August 21, 2014 16:27
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