Skip to content
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

[SPARK-42463][YARN][TESTS] Clean up the third-party Java files copy introduced by SPARK-27180 #40052

Closed
wants to merge 1 commit into from

Conversation

LuciferYang
Copy link
Contributor

@LuciferYang LuciferYang commented Feb 16, 2023

What changes were proposed in this pull request?

SPARK-27180 introduced some third-party Java source code to solve Yarn module test failure, but maven and sbt can also test pass without them, so this pr remove these files.

Why are the changes needed?

Clean up the third-party Java source code copy in Spark.

Does this PR introduce any user-facing change?

No

How was this patch tested?

  • Pass GitHub Actions
  • manual check:

Maven

build/mvn clean
build/mvn clean install -DskipTestes -pl resource-managers/yarn -am -Pyarn
build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.deploy.yarn.YarnClusterSuite -pl resource-managers/yarn test -Pyarn
build/mvn test -pl resource-managers/yarn -Pyarn -Dtest.exclude.tags=org.apache.spark.tags.ExtendedLevelDBTest 

Both YarnClusterSuite and full module test passed.

SBT

build/sbt clean yarn/test -Pyarn -Dtest.exclude.tags=org.apache.spark.tags.ExtendedLevelDBTest 

All tests passed.

@LuciferYang LuciferYang marked this pull request as draft February 16, 2023 06:56
@github-actions github-actions bot added the YARN label Feb 16, 2023
@LuciferYang LuciferYang changed the title [SPARK-42463][YARN][TESTS] Clean up the third-party Java source code copy introduced by SPARK-27180 [SPARK-42463][YARN][TESTS] Clean up the third-party Java file copy introduced by SPARK-27180 Feb 16, 2023
@LuciferYang LuciferYang changed the title [SPARK-42463][YARN][TESTS] Clean up the third-party Java file copy introduced by SPARK-27180 [SPARK-42463][YARN][TESTS] Clean up the third-party Java files copy introduced by SPARK-27180 Feb 16, 2023
@LuciferYang
Copy link
Contributor Author

LuciferYang commented Feb 16, 2023

cc @wangyum @srowen FYI

@wangyum
Copy link
Member

wangyum commented Feb 16, 2023

Could you test against hadoop-2?

@LuciferYang
Copy link
Contributor Author

LuciferYang commented Feb 16, 2023

Could you test against hadoop-2?

Do same check with -Phadoop-2

Maven

build/mvn clean
build/mvn clean install -DskipTestes -pl resource-managers/yarn -am -Pyarn -Phadoop-2
build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.deploy.yarn.YarnClusterSuite -pl resource-managers/yarn test -Pyarn -Phadoop-2
build/mvn test -pl resource-managers/yarn -Pyarn -Dtest.exclude.tags=org.apache.spark.tags.ExtendedLevelDBTest  -Phadoop-2

SBT

build/sbt clean yarn/test -Pyarn -Dtest.exclude.tags=org.apache.spark.tags.ExtendedLevelDBTest -Phadoop-2

All tests passed.

@LuciferYang LuciferYang marked this pull request as ready for review February 16, 2023 10:33
@srowen srowen closed this in 64e5928 Feb 16, 2023
@srowen
Copy link
Member

srowen commented Feb 16, 2023

Merged to master

@LuciferYang LuciferYang deleted the SPARK-42463 branch June 9, 2023 07:03
prabhjyotsingh pushed a commit to acceldata-io/spark that referenced this pull request Apr 1, 2024
… files copy introduced by

SPARK-27180 introduced some third-party Java source code  to solve Yarn module test failure,  but maven and sbt can also test pass without them, so this pr remove these files.

Clean up the third-party Java source code copy in Spark.

No

- Pass GitHub Actions
- manual check:

**Maven**

```
build/mvn clean
build/mvn clean install -DskipTestes -pl resource-managers/yarn -am -Pyarn
build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.deploy.yarn.YarnClusterSuite -pl resource-managers/yarn test -Pyarn
build/mvn test -pl resource-managers/yarn -Pyarn -Dtest.exclude.tags=org.apache.spark.tags.ExtendedLevelDBTest
```
Both `YarnClusterSuite` and full module test passed.

**SBT**

```
build/sbt clean yarn/test -Pyarn -Dtest.exclude.tags=org.apache.spark.tags.ExtendedLevelDBTest
```
All tests passed.

Closes apache#40052 from LuciferYang/SPARK-42463.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Sean Owen <srowen@gmail.com>
(cherry picked from commit 64e5928)
shubhluck added a commit to acceldata-io/spark that referenced this pull request May 2, 2024
* SNAPSHOT to 3.2.2.0-1095

* [SPARK-27180][BUILD][YARN] Fix testing issues with yarn module in Hadoop-3

Fix testing issues with `yarn` module in Hadoop-3:

1. Upgrade jersey-1 to `1.19` to fix ```Cause: java.lang.NoClassDefFoundError: com/sun/jersey/spi/container/servlet/ServletContainer```.
2. Copy `ServerSocketUtil` from hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/net/ServerSocketUtil.java to fix ```java.lang.NoClassDefFoundError: org/apache/hadoop/net/ServerSocketUtil```.
3. Adapte `SessionHandler` from jetty-9.3.25.v20180904/jetty-server/src/main/java/org/eclipse/jetty/server/session/SessionHandler.java  to fix ```java.lang.NoSuchMethodError: org.eclipse.jetty.server.session.SessionHandler.getSessionManager()Lorg/eclipse/jetty/server/SessionManager```.

manual tests:
```shell
build/sbt yarn/test -Pyarn
build/sbt yarn/test -Phadoop-3.2 -Pyarn

build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.deploy.yarn.YarnClusterSuite -pl resource-managers/yarn test -Pyarn
build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.deploy.yarn.YarnClusterSuite -pl resource-managers/yarn test -Pyarn -Phadoop-3.2
```

Closes apache#24115 from wangyum/hadoop3-yarn.

Authored-by: Yuming Wang <yumwang@ebay.com>
Signed-off-by: Sean Owen <sean.owen@databricks.com>
(cherry picked from commit 13c5c1f)

* [SPARK-42463][SPARK-27180][YARN][TESTS] Clean up the third-party Java files copy introduced by

SPARK-27180 introduced some third-party Java source code  to solve Yarn module test failure,  but maven and sbt can also test pass without them, so this pr remove these files.

Clean up the third-party Java source code copy in Spark.

No

- Pass GitHub Actions
- manual check:

**Maven**

```
build/mvn clean
build/mvn clean install -DskipTestes -pl resource-managers/yarn -am -Pyarn
build/mvn -Dtest=none -DwildcardSuites=org.apache.spark.deploy.yarn.YarnClusterSuite -pl resource-managers/yarn test -Pyarn
build/mvn test -pl resource-managers/yarn -Pyarn -Dtest.exclude.tags=org.apache.spark.tags.ExtendedLevelDBTest
```
Both `YarnClusterSuite` and full module test passed.

**SBT**

```
build/sbt clean yarn/test -Pyarn -Dtest.exclude.tags=org.apache.spark.tags.ExtendedLevelDBTest
```
All tests passed.

Closes apache#40052 from LuciferYang/SPARK-42463.

Authored-by: yangjie01 <yangjie01@baidu.com>
Signed-off-by: Sean Owen <srowen@gmail.com>
(cherry picked from commit 64e5928)

* ODP-1095: jettison 1.5.4

* Fixed version as per main across all poms

---------

Co-authored-by: kravii <ravi@acceldata.io>
Co-authored-by: Yuming Wang <yumwang@ebay.com>
Co-authored-by: yangjie01 <yangjie01@baidu.com>
Co-authored-by: Prabhjyot Singh <prabhjyot@acceldata.io>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
3 participants