-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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-380] Remove Spark runner dependency on beam-examlpes-java #539
Conversation
Following @peihe's comment in #516 this PR removes the dependency of the Spark runner on beam-examples-java. |
@@ -21,10 +21,10 @@ | |||
import static org.junit.Assert.assertEquals; | |||
import static org.junit.Assert.assertTrue; | |||
|
|||
import org.apache.beam.examples.WordCount; |
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.
It tests TextIO numShards.
Does it have to use WordCount?
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.
No it doesn't, it's just been like that... Not a good answer 😄 but I'm definitely prioritising.
FYI This will avoid duplicating codes. |
First of all, I'm sorry if I "jumped in", I was looking for an open JIRA because I knew you had this in mind, but when I couldn't find one I opened it and submitted this PR against it. |
My fault. I should open a JIRA issue before I start on this. I thought it is a quick change. |
About the ClassNotFoundException, it's probably because the Spark runner has a |
I honestly closed this by accident.. Though I'd be happy to have Jenkins try again since it failed on JavaDoc issues that, while might be valid, are unrelated to this PR. |
Anyone got an idea why Jenkins suddenly fails on JavaDoc issues in classes that aren't related to this PR ? |
I was just browsing the output and didn't even see what the error was. FWIW the travis errors are different but also seem unrelated. I've seen the Travis issue before but have forgotten what it was about. |
Hi Amit, The logs are unfortunately a bit misleading, but there is one Javadoc error:
The link is not resolved because you removed the dependency on the examples module. All the other Javadoc stuff is warnings and don't cause breaks. |
Okay, I did a little more digging and here's my summary:
A rebase should fix the latter. |
Duplicate WordCount into spark examlpes package. Duplicate parts of TfIdf from beam examlpes. Better reuse of WordCount and its parts. Remove dependency on beam-examples-java
Hello, is there any blocking reason why this has not been merged ? |
LGTM |
Be sure to do all of the following to help us incorporate your contribution
quickly and easily:
[BEAM-<Jira issue #>] Description of pull request
mvn clean verify
. (Even better, enableTravis-CI on your fork and ensure the whole test matrix passes).
<Jira issue #>
in the title with the actual Jira issuenumber, if there is one.
Individual Contributor License Agreement.
Duplicate WordCount into spark examlpes package.
Duplicate parts of TfIdf from beam examlpes.
Better reuse of WordCount and its parts.
Remove dependency on beam-examples-java