You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "mridulm (via GitHub)" <gi...@apache.org> on 2023/09/23 19:35:08 UTC
[GitHub] [incubator-celeborn] mridulm opened a new pull request, #1936: CELEBORN-1006: Add support for Apache Hadoop 2.x in Celeborn build
mridulm opened a new pull request, #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936
<!--
Thanks for sending a pull request! Here are some tips for you:
- Make sure the PR title start w/ a JIRA ticket, e.g. '[CELEBORN-XXXX] Your PR title ...'.
- Be sure to keep the PR description updated to reflect all changes.
- Please write your PR title to summarize what this PR proposes.
- If possible, provide a concise example to reproduce the issue for a faster review.
-->
### What changes were proposed in this pull request?
Add support for Apache Hadoop 2.x in Celeborn build
### Why are the changes needed?
[hadoop-client-api](https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client-api) and [hadoop-client-runtime](https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client-runtime) were introduced in hadoop 3.x, while hadoop 2.x had [hadoop-client](https://mvnrepository.com/artifact/org.apache.hadoop/hadoop-client)
Celeborn depends on the former, and so requires hadoop 3.x to build.
Apache Spark dropped support for Hadoop 2.x only in the recent v3.5 ([SPARK-42452](https://issues.apache.org/jira/browse/SPARK-42452)). Given this, we have case where deployments on supported platforms like Spark 3.4 and older running on 2.x hadoop, will need to pull in hadoop 3.x just for Celeborn.
This PR uses `hadoop-client` when `hadoop.version` is specified as 2.x - and preserves existing behavior when `hadoop.version` is 3.x
Note - while using `hadoop-client` in 3.x is an option, hadoop community recommendation is to rely on `hadoop-client-api`/`hadoop-client-runtime`, hence making an effort to leverage that as much as possible.
### Does this PR introduce _any_ user-facing change?
Adds support for using 2.x for hadoop.version
### How was this patch tested?
Three combinations were tested:
* Default, without overriding hadoop.version
Dependencies:
```
$ build/mvn dependency:list 2>&1 | grep hadoop | sort | uniq
[INFO] org.apache.hadoop:hadoop-client-api:jar:3.2.4:compile
[INFO] org.apache.hadoop:hadoop-client-runtime:jar:3.2.4:compile
```
* Setting hadoop.version to newer 3.3.0 explicitly
Dependencies:
```
$ ARGS="-Pspark-3.1 -Dhadoop.version=3.3.0" ; build/mvn dependency:list $ARGS 2>&1 | grep hadoop | sort | uniq
[INFO] org.apache.hadoop:hadoop-client-api:jar:3.3.0:compile
[INFO] org.apache.hadoop:hadoop-client-runtime:jar:3.3.0:compile
```
* Setting hadoop.version to older 2.10.0
Dependencies:
```
$ ARGS="-Pspark-3.1 -Dhadoop.version=2.10.0" ; build/mvn dependency:list $ARGS 2>&1 | grep hadoop | sort | uniq
[INFO] org.apache.hadoop:hadoop-annotations:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-auth:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-client:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-common:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-hdfs-client:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-mapreduce-client-app:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-mapreduce-client-common:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-mapreduce-client-core:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-mapreduce-client-jobclient:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-mapreduce-client-shuffle:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-yarn-api:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-yarn-client:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-yarn-common:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-yarn-registry:jar:2.10.0:compile
[INFO] org.apache.hadoop:hadoop-yarn-server-common:jar:2.10.0:compile
```
Will update this section again based on test suite results (which are ongoing)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] waitinfuture closed pull request #1936: [CELEBORN-1006] Add support for Apache Hadoop 2.x in Celeborn build
Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture closed pull request #1936: [CELEBORN-1006] Add support for Apache Hadoop 2.x in Celeborn build
URL: https://github.com/apache/incubator-celeborn/pull/1936
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] waitinfuture commented on a diff in pull request #1936: CELEBORN-1006: Add support for Apache Hadoop 2.x in Celeborn build
Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on code in PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#discussion_r1335177241
##########
client-mr/mr/pom.xml:
##########
@@ -39,20 +39,48 @@
<artifactId>celeborn-client_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-api</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-runtime</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-app</artifactId>
<version>${hadoop.version}</version>
</dependency>
</dependencies>
+
+ <profiles>
+ <profile>
+ <id>hadoop-3</id>
+ <activation>
+ <property>
+ <name>hadoop-3-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-api</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-runtime</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>hadoop-2</id>
+ <activation>
+ <property>
+ <name>hadoop-2-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client</artifactId>
Review Comment:
Seem we need to put this in LICENSE and LICENSE-binary, cc @pan3793 @FMX
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] mridulm commented on a diff in pull request #1936: [CELEBORN-1006] Add support for Apache Hadoop 2.x in Celeborn build
Posted by "mridulm (via GitHub)" <gi...@apache.org>.
mridulm commented on code in PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#discussion_r1335425688
##########
client-mr/mr/pom.xml:
##########
@@ -39,20 +39,48 @@
<artifactId>celeborn-client_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-api</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-runtime</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-app</artifactId>
<version>${hadoop.version}</version>
</dependency>
</dependencies>
+
+ <profiles>
+ <profile>
+ <id>hadoop-3</id>
+ <activation>
+ <property>
+ <name>hadoop-3-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-api</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-runtime</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>hadoop-2</id>
+ <activation>
+ <property>
+ <name>hadoop-2-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client</artifactId>
Review Comment:
You are right, I had looked at it in a cursory manner and had assumed all were relevant - but the actual subset required are:
```
hadoop-common
hadoop-hdfs-client
hadoop-mapreduce-client-app
hadoop-mapreduce-client-common
hadoop-mapreduce-client-core
hadoop-mapreduce-client-jobclient
hadoop-mapreduce-client-shuffle
hadoop-yarn-api
hadoop-yarn-common
```
Will exclude the rest.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] waitinfuture commented on a diff in pull request #1936: CELEBORN-1006: Add support for Apache Hadoop 2.x in Celeborn build
Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on code in PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#discussion_r1335177241
##########
client-mr/mr/pom.xml:
##########
@@ -39,20 +39,48 @@
<artifactId>celeborn-client_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-api</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-runtime</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-app</artifactId>
<version>${hadoop.version}</version>
</dependency>
</dependencies>
+
+ <profiles>
+ <profile>
+ <id>hadoop-3</id>
+ <activation>
+ <property>
+ <name>hadoop-3-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-api</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-runtime</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>hadoop-2</id>
+ <activation>
+ <property>
+ <name>hadoop-2-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client</artifactId>
Review Comment:
Seem we need to put the dependencies of hadoop 2.x in LICENSE and LICENSE-binary, cc @pan3793 @FMX
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] mridulm commented on pull request #1936: [CELEBORN-1006] Add support for Apache Hadoop 2.x in Celeborn build
Posted by "mridulm (via GitHub)" <gi...@apache.org>.
mridulm commented on PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#issuecomment-1733862492
Thanks for the reviews @waitinfuture, @cfmcgrady and @FMX !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] mridulm commented on pull request #1936: CELEBORN-1006: Add support for Apache Hadoop 2.x in Celeborn build
Posted by "mridulm (via GitHub)" <gi...@apache.org>.
mridulm commented on PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#issuecomment-1732394981
+CC @otterc
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] cfmcgrady commented on a diff in pull request #1936: [CELEBORN-1006] Add support for Apache Hadoop 2.x in Celeborn build
Posted by "cfmcgrady (via GitHub)" <gi...@apache.org>.
cfmcgrady commented on code in PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#discussion_r1335306529
##########
.mvn/extensions.xml:
##########
@@ -0,0 +1,8 @@
+<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Review Comment:
license header?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] mridulm commented on a diff in pull request #1936: [CELEBORN-1006] Add support for Apache Hadoop 2.x in Celeborn build
Posted by "mridulm (via GitHub)" <gi...@apache.org>.
mridulm commented on code in PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#discussion_r1335508377
##########
client-mr/mr/pom.xml:
##########
@@ -39,20 +39,48 @@
<artifactId>celeborn-client_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-api</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-runtime</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-app</artifactId>
<version>${hadoop.version}</version>
</dependency>
</dependencies>
+
+ <profiles>
+ <profile>
+ <id>hadoop-3</id>
+ <activation>
+ <property>
+ <name>hadoop-3-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-api</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-runtime</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>hadoop-2</id>
+ <activation>
+ <property>
+ <name>hadoop-2-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client</artifactId>
Review Comment:
Updated `pom.xml` to exclude transitive deps which are not required, and updated LICENSE-binary.
Had to add `hadoop-auth` as well - which was getting used from `UserGroupInformation` (for `PlatformName`).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] mridulm commented on a diff in pull request #1936: [CELEBORN-1006] Add support for Apache Hadoop 2.x in Celeborn build
Posted by "mridulm (via GitHub)" <gi...@apache.org>.
mridulm commented on code in PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#discussion_r1335506906
##########
.mvn/extensions.xml:
##########
@@ -0,0 +1,8 @@
+<extensions xmlns="http://maven.apache.org/EXTENSIONS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
Review Comment:
Added, thanks for catching this !
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] codecov[bot] commented on pull request #1936: CELEBORN-1006: Add support for Apache Hadoop 2.x in Celeborn build
Posted by "codecov[bot] (via GitHub)" <gi...@apache.org>.
codecov[bot] commented on PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#issuecomment-1732396255
## [Codecov](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1936?src=pr&el=h1&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) Report
> Merging [#1936](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1936?src=pr&el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (4c6703b) into [main](https://app.codecov.io/gh/apache/incubator-celeborn/commit/55e85055b80111b6f3662474c8fd500bf6589f2a?el=desc&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache) (55e8505) will **increase** coverage by `0.01%`.
> The diff coverage is `n/a`.
```diff
@@ Coverage Diff @@
## main #1936 +/- ##
==========================================
+ Coverage 46.66% 46.67% +0.01%
==========================================
Files 164 164
Lines 10283 10283
Branches 938 938
==========================================
+ Hits 4798 4799 +1
Misses 5171 5171
+ Partials 314 313 -1
```
[see 1 file with indirect coverage changes](https://app.codecov.io/gh/apache/incubator-celeborn/pull/1936/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
:mega: We’re building smart automated test selection to slash your CI/CD build times. [Learn more](https://about.codecov.io/iterative-testing/?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=apache)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] waitinfuture commented on a diff in pull request #1936: CELEBORN-1006: Add support for Apache Hadoop 2.x in Celeborn build
Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on code in PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#discussion_r1335177879
##########
client-mr/mr/pom.xml:
##########
@@ -39,20 +39,48 @@
<artifactId>celeborn-client_${scala.binary.version}</artifactId>
<version>${project.version}</version>
</dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-api</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
- <dependency>
- <groupId>org.apache.hadoop</groupId>
- <artifactId>hadoop-client-runtime</artifactId>
- <version>${hadoop.version}</version>
- </dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapreduce-client-app</artifactId>
<version>${hadoop.version}</version>
</dependency>
</dependencies>
+
+ <profiles>
+ <profile>
+ <id>hadoop-3</id>
+ <activation>
+ <property>
+ <name>hadoop-3-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-api</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client-runtime</artifactId>
+ <version>${hadoop.version}</version>
+ </dependency>
+ </dependencies>
+ </profile>
+ <profile>
+ <id>hadoop-2</id>
+ <activation>
+ <property>
+ <name>hadoop-2-deps</name>
+ </property>
+ </activation>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.hadoop</groupId>
+ <artifactId>hadoop-client</artifactId>
Review Comment:
Seems hadoop-client will introduce several dependencies that are not needed, for example `hadoop-yarn*, hadoop-mapreduce*`, maybe we should exclude those.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-celeborn] waitinfuture commented on pull request #1936: [CELEBORN-1006] Add support for Apache Hadoop 2.x in Celeborn build
Posted by "waitinfuture (via GitHub)" <gi...@apache.org>.
waitinfuture commented on PR #1936:
URL: https://github.com/apache/incubator-celeborn/pull/1936#issuecomment-1733538391
Thanks! Merged to main.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@celeborn.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org