Skip to content

[BEAM-111] Move WritableCoder to hadoop-common#2118

Closed
iemejia wants to merge 1 commit into
apache:masterfrom
iemejia:BEAM-111-move-writablecoder
Closed

[BEAM-111] Move WritableCoder to hadoop-common#2118
iemejia wants to merge 1 commit into
apache:masterfrom
iemejia:BEAM-111-move-writablecoder

Conversation

@iemejia
Copy link
Copy Markdown
Member

@iemejia iemejia commented Feb 27, 2017

Be sure to do all of the following to help us incorporate your contribution
quickly and easily:

  • Make sure the PR title is formatted like:
    [BEAM-<Jira issue #>] Description of pull request
  • Make sure tests pass via mvn clean verify. (Even better, enable
    Travis-CI on your fork and ensure the whole test matrix passes).
  • Replace <Jira issue #> in the title with the actual Jira issue
    number, if there is one.
  • If this contribution is large, please file an Apache
    Individual Contributor License Agreement.

@iemejia
Copy link
Copy Markdown
Member Author

iemejia commented Feb 27, 2017

R: @amitsela
This is an oldie, but now with the module for hadoop-common we can move this one there.
Please check the jackson dependency, I am not sure if I should make it transitive as I do.
Thanks.

@coveralls
Copy link
Copy Markdown

Coverage Status

Changes Unknown when pulling 14dfc21 on iemejia:BEAM-111-move-writablecoder into ** on apache:master**.

@asfbot
Copy link
Copy Markdown

asfbot commented Feb 27, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/7914/
--none--

Copy link
Copy Markdown
Member

@amitsela amitsela left a comment

Choose a reason for hiding this comment

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

Added some comments, but mostly good.

Comment thread runners/spark/pom.xml Outdated
</exclusion>
</exclusions>
</dependency>
<dependency>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Scope test ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok

<description>Library to add shared Hadoop classes among Beam IOs.</description>

<dependencies>
<dependency>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this being introduced for the first time because of WritableCoder moving into hadoop-common ? I guess because of Coder, right ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, that's the reason, do you think this is ok (considering that the other libraries depending on this one probably will have the same dependency) ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It shouldn't matter since they all bring the same dependency, and I believe that WritableCoder should be in hadoop-common and not hdfs-io,

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok

<artifactId>beam-sdks-java-core</artifactId>
</dependency>

<dependency>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure why this is provided, how is this different from the one you removed from io/hdfs ?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It was not provided, but I am afraid of the version of this leaking into the users of the common library. What do you think should I let it like it was (without the provided) ?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It was like that in hdfs-io, and if users need to use a different jackson version they should do so explicitly - the Spark runner does that.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ok

@iemejia iemejia force-pushed the BEAM-111-move-writablecoder branch from 14dfc21 to 799cc6f Compare February 28, 2017 14:26
@iemejia
Copy link
Copy Markdown
Member Author

iemejia commented Feb 28, 2017

Ok fixed after comments and rebased.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.003%) to 69.187% when pulling 799cc6f on iemejia:BEAM-111-move-writablecoder into 2a23374 on apache:master.

@asfbot
Copy link
Copy Markdown

asfbot commented Feb 28, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/7958/
--none--

@iemejia iemejia force-pushed the BEAM-111-move-writablecoder branch from 799cc6f to da8b0ad Compare March 1, 2017 10:05
@iemejia
Copy link
Copy Markdown
Member Author

iemejia commented Mar 1, 2017

Rebased because there was a merge issue after changes in master.

@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.007%) to 69.196% when pulling da8b0ad on iemejia:BEAM-111-move-writablecoder into d66029c on apache:master.

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 1, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8009/
--none--

@iemejia iemejia force-pushed the BEAM-111-move-writablecoder branch from da8b0ad to 5eb2422 Compare March 1, 2017 13:05
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) to 69.203% when pulling 5eb2422 on iemejia:BEAM-111-move-writablecoder into d66029c on apache:master.

@asfbot
Copy link
Copy Markdown

asfbot commented Mar 1, 2017

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/beam_PreCommit_Java_MavenInstall/8011/
--none--

@amitsela
Copy link
Copy Markdown
Member

amitsela commented Mar 1, 2017

@iemejia before I merge this, are you and @diptikul synchronized about #1994 ?
It looks as if Coders are moved around there as well.
CC: @dhalperi @ssisk @jbonofre

@iemejia
Copy link
Copy Markdown
Member Author

iemejia commented Mar 1, 2017

We are not synchronized because these are different subjects, and this PR is not a blocker for that PR, what I am doing for the moment is just looking for Hadoop classes that are needed in more than one project and moving those to hadoop-common.
What I saw in the review is that the reviewers proposed to do this changes (use or enhance hadoop-common) afterwards, to add less noise to the current InputFormat PR.

@amitsela
Copy link
Copy Markdown
Member

amitsela commented Mar 1, 2017

Ok, I guess it'll get merged into #1994 eventually. Thanks @iemejia

Merging.

@asfgit asfgit closed this in a81c457 Mar 1, 2017
@iemejia iemejia deleted the BEAM-111-move-writablecoder branch March 1, 2017 21:06
@iemejia
Copy link
Copy Markdown
Member Author

iemejia commented Mar 1, 2017

Thanks.

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.

4 participants