Skip to content

Conversation

@smengcl
Copy link
Contributor

@smengcl smengcl commented Apr 22, 2021

@smengcl smengcl self-assigned this Apr 22, 2021
@smengcl smengcl requested a review from sunilgovind April 22, 2021 05:10
@aajisaka
Copy link
Member

I think hadoop.protobuf.version in hadoop-project/pom.xml can be used instead of defining the version in hadoop-yarn-csi module.

@hadoop-yetus

This comment has been minimized.

@smengcl
Copy link
Contributor Author

smengcl commented Apr 22, 2021

I think hadoop.protobuf.version in hadoop-project/pom.xml can be used instead of defining the version in hadoop-yarn-csi module.

Good point! Done.

@hadoop-yetus

This comment has been minimized.

@smengcl
Copy link
Contributor Author

smengcl commented Apr 22, 2021

This is weird. The second commit essentially translate into the same thing as the first one, but now it gets mvninstall -1 for Dependency convergence error:

[WARNING] 
Dependency convergence error for com.google.protobuf:protobuf-java:3.7.1 paths to dependency are:
+-org.apache.hadoop:hadoop-yarn-csi:3.4.0-SNAPSHOT
  +-com.google.protobuf:protobuf-java:3.7.1
and
+-org.apache.hadoop:hadoop-yarn-csi:3.4.0-SNAPSHOT
  +-io.grpc:grpc-protobuf:1.26.0
    +-com.google.protobuf:protobuf-java:2.5.0
and
+-org.apache.hadoop:hadoop-yarn-csi:3.4.0-SNAPSHOT
  +-org.apache.hadoop:hadoop-common:3.4.0-SNAPSHOT
    +-com.google.protobuf:protobuf-java:2.5.0
and
+-org.apache.hadoop:hadoop-yarn-csi:3.4.0-SNAPSHOT
  +-org.apache.hadoop:hadoop-common:3.4.0-SNAPSHOT
    +-com.google.protobuf:protobuf-java:2.5.0
and
+-org.apache.hadoop:hadoop-yarn-csi:3.4.0-SNAPSHOT
  +-org.apache.hadoop:hadoop-yarn-common:3.4.0-SNAPSHOT
    +-com.google.protobuf:protobuf-java:2.5.0
and
+-org.apache.hadoop:hadoop-yarn-csi:3.4.0-SNAPSHOT
  +-org.apache.hadoop:hadoop-yarn-api:3.4.0-SNAPSHOT
    +-com.google.protobuf:protobuf-java:2.5.0

[WARNING] Rule 0: org.apache.maven.plugins.enforcer.DependencyConvergence failed with message:
Failed while enforcing releasability. See above detailed error message.

@aajisaka
Copy link
Member

Thanks @smengcl for the update.

Before: While checking the dependency, hadoop.version overrides the protobuf-java versions in hadoop-common and other modules. Therefore the dependency convergence error is missed.

After: The dependency check is run as expected, and it fails.

Reading the discussion in YARN-9057, YARN CSI does not contain third-party dependencies including protocol buffer 2.x jars. Therefore we can exclude the protocol buffer 2.x dependency from hadoop-common and other modules to fix the error.

Change-Id: Ib2a4bf775a5804641a91c6f9a486772c9d87c17e
@smengcl
Copy link
Contributor Author

smengcl commented Apr 26, 2021

Thanks @aajisaka . I have excluded protobuf-java 2.5.0 from yarn-csi dependencies that introduced it.

@hadoop-yetus

This comment has been minimized.

@aajisaka aajisaka merged commit 5b09ba7 into apache:trunk Apr 28, 2021
@aajisaka
Copy link
Member

Merged. Thank you @smengcl

@smengcl
Copy link
Contributor Author

smengcl commented Apr 28, 2021

@aajisaka Thanks for reviewing and merging this.

kiran-maturi pushed a commit to kiran-maturi/hadoop that referenced this pull request Nov 24, 2021
Signed-off-by: Akira Ajisaka <[email protected]>

Change-Id: Ib2a4bf775a5804641a91c6f9a486772c9d87c17e
aajisaka pushed a commit that referenced this pull request Mar 22, 2022
Signed-off-by: Akira Ajisaka <[email protected]>

Change-Id: Ib2a4bf775a5804641a91c6f9a486772c9d87c17e
(cherry picked from commit 5b09ba7)
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