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

HADOOP-17880. Build Hadoop on Centos 7 #3535

Merged

Conversation

ZhendongBai
Copy link

@ZhendongBai ZhendongBai commented Oct 8, 2021

Description of PR

Getting Hadoop to build on Centos 7 will greatly benefit the community. Here, we aim to provide a Dockerfile that builds out the image with all the dependencies needed to build Hadoop on Centos 7.

How was this patch tested?

Tested on mac x86_64, CI runs.

For code changes:

  • Does the title or this PR starts with the corresponding JIRA issue id?
  • Object storage: have the integration tests been executed and the endpoint declared according to the connector-specific documentation?
  • If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under ASF 2.0?
  • If applicable, have you updated the LICENSE, LICENSE-binary, NOTICE-binary files?

@hadoop-yetus
Copy link

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/1/console in case of problems.

@ZhendongBai
Copy link
Author

ZhendongBai commented Oct 8, 2021

@GauthamBanasandra @iwasakims I move patches from pr #3349 here, and close #3349, and do the following:

  1. remove boost library from Dockerfile_centos_7 and remove pkg-resolver/install-boost.sh file.
  2. use docker build -t hadoop-build -f dev-support/docker/Dockerfile_centos_7 dev-support/docker to replace docker build -t hadoop-build dev-support/docker(in the file named start-build-env.sh) to build 2.10.x with Docker only. log here:docker-build.log
  3. execute nohup mvn clean package -Dhttps.protocols=TLSv1.2 -DskipTests -Pnative,dist -Drequire.fuse -Drequire.openssl -Drequire.snappy -Drequire.valgrind -Drequire.zstd -Drequire.test.libhadoop -Pyarn-ui -Dtar -Dmaven.javadoc.skip=true > build.log 2>&1 & and build succeeded and the log here: build.log

please review again, thanks.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 0m 44s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.10 Compile Tests _
+0 🆗 mvndep 2m 37s Maven dependency ordering for branch
+1 💚 mvninstall 15m 13s branch-2.10 passed
+1 💚 mvnsite 0m 0s branch-2.10 passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 26s Maven dependency ordering for patch
+1 💚 mvninstall 0m 0s the patch passed
+1 💚 hadolint 0m 1s There were no new hadolint issues.
+1 💚 mvnsite 0m 0s the patch passed
-1 ❌ pylint 0m 1s The patch generated 2 new + 0 unchanged - 0 fixed = 2 total (was 0)
+1 💚 shellcheck 0m 1s There were no new shellcheck issues.
+1 💚 shelldocs 0m 15s There were no new shelldocs issues.
+1 💚 whitespace 0m 1s The patch has no whitespace issues.
_ Other Tests _
-1 ❌ asflicense 0m 27s The patch generated 3 ASF License warnings.
22m 14s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/1/artifact/out/Dockerfile
GITHUB PR #3535
Optional Tests dupname asflicense hadolint shellcheck shelldocs pylint mvnsite unit
uname Linux 3e57e0764a4e 4.15.0-112-generic #113-Ubuntu SMP Thu Jul 9 23:41:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-2.10 / dc03afc
pylint https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/1/artifact/out/diff-patch-pylint.txt
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/1/testReport/
asflicense https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/1/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 93 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/1/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 hadolint=1.11.1-0-g0e692dd pylint=1.9.2
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@GauthamBanasandra
Copy link
Member

Thanks for PR @ZhendongBai. Could you please take a look at the pylint warnings?

@hadoop-yetus
Copy link

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/2/console in case of problems.

@ZhendongBai
Copy link
Author

ZhendongBai commented Oct 9, 2021

Thanks for PR @ZhendongBai. Could you please take a look at the pylint warnings?

@GauthamBanasandra Ok, and for more compatibility, use sys.stderr.write instead of print function. Please review again.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 14m 34s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.10 Compile Tests _
+0 🆗 mvndep 2m 26s Maven dependency ordering for branch
+1 💚 mvninstall 13m 3s branch-2.10 passed
+1 💚 mvnsite 0m 0s branch-2.10 passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 0m 0s the patch passed
+1 💚 hadolint 0m 2s There were no new hadolint issues.
+1 💚 mvnsite 0m 0s the patch passed
-1 ❌ pylint 0m 2s The patch generated 6 new + 0 unchanged - 0 fixed = 6 total (was 0)
+1 💚 shellcheck 0m 0s There were no new shellcheck issues.
+1 💚 shelldocs 0m 15s There were no new shelldocs issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
_ Other Tests _
-1 ❌ asflicense 0m 26s The patch generated 3 ASF License warnings.
33m 26s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/2/artifact/out/Dockerfile
GITHUB PR #3535
Optional Tests dupname asflicense hadolint shellcheck shelldocs pylint mvnsite unit
uname Linux 6ec0036da41f 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-2.10 / bdd396b
pylint https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/2/artifact/out/diff-patch-pylint.txt
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/2/testReport/
asflicense https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/2/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 83 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/2/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 hadolint=1.11.1-0-g0e692dd pylint=1.9.2
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/3/console in case of problems.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 31s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.10 Compile Tests _
+0 🆗 mvndep 2m 21s Maven dependency ordering for branch
+1 💚 mvninstall 13m 4s branch-2.10 passed
+1 💚 mvnsite 0m 0s branch-2.10 passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 0m 0s the patch passed
+1 💚 hadolint 0m 2s There were no new hadolint issues.
+1 💚 mvnsite 0m 0s the patch passed
+1 💚 pylint 0m 2s There were no new pylint issues.
+1 💚 shellcheck 0m 0s There were no new shellcheck issues.
+1 💚 shelldocs 0m 15s There were no new shelldocs issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
_ Other Tests _
-1 ❌ asflicense 0m 24s The patch generated 3 ASF License warnings.
20m 20s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/3/artifact/out/Dockerfile
GITHUB PR #3535
Optional Tests dupname asflicense hadolint shellcheck shelldocs pylint mvnsite unit
uname Linux 4dcff4944f0e 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-2.10 / bdd396b
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/3/testReport/
asflicense https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/3/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 83 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/3/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 hadolint=1.11.1-0-g0e692dd pylint=1.9.2
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@hadoop-yetus
Copy link

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/4/console in case of problems.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 26s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.10 Compile Tests _
+0 🆗 mvndep 2m 20s Maven dependency ordering for branch
+1 💚 mvninstall 13m 1s branch-2.10 passed
+1 💚 mvnsite 0m 0s branch-2.10 passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 0m 0s the patch passed
+1 💚 hadolint 0m 2s There were no new hadolint issues.
+1 💚 mvnsite 0m 0s the patch passed
+1 💚 pylint 0m 2s There were no new pylint issues.
+1 💚 shellcheck 0m 1s There were no new shellcheck issues.
+1 💚 shelldocs 0m 13s There were no new shelldocs issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
_ Other Tests _
-1 ❌ asflicense 0m 26s The patch generated 2 ASF License warnings.
20m 9s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/4/artifact/out/Dockerfile
GITHUB PR #3535
Optional Tests dupname asflicense hadolint shellcheck shelldocs pylint mvnsite unit
uname Linux d9d9ab09d0d9 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-2.10 / bdd396b
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/4/testReport/
asflicense https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/4/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 83 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/4/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 hadolint=1.11.1-0-g0e692dd pylint=1.9.2
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

Platform package dependency resolver for building Apache Hadoop.
"""

from __future__ import print_function
Copy link
Member

Choose a reason for hiding this comment

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

Where is this package getting used? I'm not able to locate it here.

Copy link
Author

@ZhendongBai ZhendongBai Oct 18, 2021

Choose a reason for hiding this comment

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

@GauthamBanasandra This line was used to suppress pylint warning - Unnecessary parens after 'print' keyword, the solution was found at https://stackoverflow.com/questions/28694380/pylint-says-unnecessary-parens-after-r-keyword.

Copy link
Member

Choose a reason for hiding this comment

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

The cause for the pylint warning was that we use Python 3 in Hadoop 3.x and we're still using Python 2 in Hadoop 2.x. Instead of importing the print_function, could you please rewrite the print statement using Python 2 syntax? I feel this is a better approach since all the Python scripts in Hadoop 2.x is written in Python 2.

Copy link
Author

Choose a reason for hiding this comment

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

@GauthamBanasandra sorry, I missed this comment.I will rewrite the print statement using Python 2 syntax.

@@ -0,0 +1,30 @@
#!/usr/bin/env bash
Copy link
Member

Choose a reason for hiding this comment

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

This file isn't being used anywhere. Please delete it.

Copy link
Author

@ZhendongBai ZhendongBai Oct 18, 2021

Choose a reason for hiding this comment

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

@GauthamBanasandra ok, I will remove this file.

@hadoop-yetus
Copy link

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/5/console in case of problems.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 14m 34s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.10 Compile Tests _
+0 🆗 mvndep 2m 27s Maven dependency ordering for branch
+1 💚 mvninstall 13m 11s branch-2.10 passed
+1 💚 mvnsite 0m 0s branch-2.10 passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 23s Maven dependency ordering for patch
+1 💚 mvninstall 0m 0s the patch passed
+1 💚 hadolint 0m 1s There were no new hadolint issues.
+1 💚 mvnsite 0m 0s the patch passed
+1 💚 pylint 0m 2s There were no new pylint issues.
+1 💚 shellcheck 0m 1s There were no new shellcheck issues.
+1 💚 shelldocs 0m 14s There were no new shelldocs issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
_ Other Tests _
-1 ❌ asflicense 0m 26s The patch generated 2 ASF License warnings.
33m 20s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/5/artifact/out/Dockerfile
GITHUB PR #3535
Optional Tests dupname asflicense hadolint shellcheck shelldocs pylint mvnsite unit
uname Linux 1031a08975b5 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-2.10 / 2565ec5
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/5/testReport/
asflicense https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/5/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 83 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/5/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 hadolint=1.11.1-0-g0e692dd pylint=1.9.2
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@ZhendongBai
Copy link
Author

@GauthamBanasandra Do you have any problems for this PR ?

@GauthamBanasandra
Copy link
Member

@GauthamBanasandra Do you have any problems for this PR ?

@ZhendongBai I'm still waiting for you to resolve this - #3535 (comment)

@hadoop-yetus
Copy link

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/6/console in case of problems.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 29s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.10 Compile Tests _
+0 🆗 mvndep 2m 24s Maven dependency ordering for branch
+1 💚 mvninstall 14m 18s branch-2.10 passed
+1 💚 mvnsite 0m 0s branch-2.10 passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 26s Maven dependency ordering for patch
+1 💚 mvninstall 0m 0s the patch passed
+1 💚 hadolint 0m 1s There were no new hadolint issues.
+1 💚 mvnsite 0m 0s the patch passed
+1 💚 pylint 0m 4s There were no new pylint issues.
+1 💚 shellcheck 0m 1s There were no new shellcheck issues.
+1 💚 shelldocs 0m 14s There were no new shelldocs issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
_ Other Tests _
-1 ❌ asflicense 0m 27s The patch generated 2 ASF License warnings.
21m 33s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/6/artifact/out/Dockerfile
GITHUB PR #3535
Optional Tests dupname asflicense hadolint shellcheck shelldocs pylint mvnsite unit
uname Linux ce55e5e1cf2a 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-2.10 / de120b1
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/6/testReport/
asflicense https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/6/artifact/out/patch-asflicense-problems.txt
Max. process+thread count 84 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/6/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 hadolint=1.11.1-0-g0e692dd pylint=1.9.2
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@GauthamBanasandra
Copy link
Member

@ZhendongBai your PR has failed for asflicense check. This was fixed in trunk. I've created a PR to backport this fix - #3583. Your PR looks good now. Once I merge my PR, please rebase yours and the asflicense failure should get resolved. We can then merge your PR.

baizhendong added 6 commits October 26, 2021 18:31
…from Dockerfile_centos_7. and we can use `docker build -t hadoop-build -f dev-support/docker/Dockerfile_centos_7 dev-support/docker` to replace `docker build -t hadoop-build dev-support/docker

`(in the file named start-build-env.sh) to build 2.10.x with Docker only.
…thon3. for more compatibility, use `sys.stderr.write()` instead of `print`
@ZhendongBai
Copy link
Author

@ZhendongBai your PR has failed for asflicense check. This was fixed in trunk. I've created a PR to backport this fix - #3583. Your PR looks good now. Once I merge my PR, please rebase yours and the asflicense failure should get resolved. We can then merge your PR.

@GauthamBanasandra thanks a lot,I will rebase on branch-2.10 and run a full docker build and maven build process, and ensure this PR is really ok after modifications by comments.

2. because python-pip not found at centos-release-scl repo, we need to install epel-release
3. downgrade python3 to python2
4. use python2 syntax instead of python3
5. use pip2 to install `configparser==4.0.2 pylint==1.9.2 isort==4.3.21 python-dateutil==2.7.3` instead of `pylint==2.6.0 python-dateutil==2.8.1` for pylint2.x is not compatible with python2.7 and so on.
@hadoop-yetus
Copy link

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/7/console in case of problems.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 15m 45s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 1s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.10 Compile Tests _
+0 🆗 mvndep 2m 23s Maven dependency ordering for branch
+1 💚 mvninstall 14m 3s branch-2.10 passed
+1 💚 mvnsite 0m 0s branch-2.10 passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 25s Maven dependency ordering for patch
+1 💚 mvninstall 0m 0s the patch passed
-1 ❌ hadolint 0m 1s The patch generated 1 new + 0 unchanged - 0 fixed = 1 total (was 0)
+1 💚 mvnsite 0m 0s the patch passed
+1 💚 pylint 0m 2s There were no new pylint issues.
+1 💚 shellcheck 0m 1s There were no new shellcheck issues.
+1 💚 shelldocs 0m 14s There were no new shelldocs issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
_ Other Tests _
+1 💚 asflicense 0m 28s The patch does not generate ASF License warnings.
35m 30s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/7/artifact/out/Dockerfile
GITHUB PR #3535
Optional Tests dupname asflicense hadolint shellcheck shelldocs pylint mvnsite unit
uname Linux 7389611e15a6 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-2.10 / 3dd8880
hadolint https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/7/artifact/out/diff-patch-hadolint.txt
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/7/testReport/
Max. process+thread count 84 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/7/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 hadolint=1.11.1-0-g0e692dd pylint=1.9.2
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

… SC2046 Quote this to prevent word splitting.`
@hadoop-yetus
Copy link

(!) A patch to the testing environment has been detected.
Re-executing against the patched versions to perform further tests.
The console is at https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/8/console in case of problems.

@hadoop-yetus
Copy link

💔 -1 overall

Vote Subsystem Runtime Comment
+0 🆗 reexec 1m 44s Docker mode activated.
_ Prechecks _
+1 💚 dupname 0m 0s No case conflicting files found.
+1 💚 @author 0m 0s The patch does not contain any @author tags.
-1 ❌ test4tests 0m 0s The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch.
_ branch-2.10 Compile Tests _
+0 🆗 mvndep 2m 23s Maven dependency ordering for branch
+1 💚 mvninstall 14m 8s branch-2.10 passed
+1 💚 mvnsite 0m 0s branch-2.10 passed
_ Patch Compile Tests _
+0 🆗 mvndep 0m 25s Maven dependency ordering for patch
+1 💚 mvninstall 0m 0s the patch passed
+1 💚 hadolint 0m 2s There were no new hadolint issues.
+1 💚 mvnsite 0m 0s the patch passed
+1 💚 pylint 0m 2s There were no new pylint issues.
+1 💚 shellcheck 0m 0s There were no new shellcheck issues.
+1 💚 shelldocs 0m 13s There were no new shelldocs issues.
+1 💚 whitespace 0m 0s The patch has no whitespace issues.
_ Other Tests _
+1 💚 asflicense 0m 27s The patch does not generate ASF License warnings.
21m 35s
Subsystem Report/Notes
Docker ClientAPI=1.41 ServerAPI=1.41 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/8/artifact/out/Dockerfile
GITHUB PR #3535
Optional Tests dupname asflicense hadolint shellcheck shelldocs pylint mvnsite unit
uname Linux 7ed499b53d23 4.15.0-143-generic #147-Ubuntu SMP Wed Apr 14 16:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
Build tool maven
Personality dev-support/bin/hadoop.sh
git revision branch-2.10 / 3dd8880
Test Results https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/8/testReport/
Max. process+thread count 84 (vs. ulimit of 5500)
modules C: U:
Console output https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-3535/8/console
versions git=2.7.4 maven=3.3.9 shellcheck=0.3.7 hadolint=1.11.1-0-g0e692dd pylint=1.9.2
Powered by Apache Yetus 0.12.0 https://yetus.apache.org

This message was automatically generated.

@ZhendongBai
Copy link
Author

@GauthamBanasandra I do following things recently as bellow:

  1. downgrade python3 to python2
  2. use docker build -t hadoop-build -f dev-support/docker/Dockerfile_centos_7 dev-support/docker to replace docker build -t hadoop-build dev-support/docker(in the file named start-build-env.sh) to build 2.10.x with Docker only. log here: docker_build_v2.log
  3. execute nohup mvn clean package -Dhttps.protocols=TLSv1.2 -DskipTests -Pnative,dist -Drequire.fuse -Drequire.openssl -Drequire.snappy -Drequire.valgrind -Drequire.zstd -Drequire.test.libhadoop -Pyarn-ui -Dtar -Dmaven.javadoc.skip=true > build.log 2>&1 & and build succeeded and the log here: build.log

please review again, thanks.

Copy link
Member

@GauthamBanasandra GauthamBanasandra left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @ZhendongBai. LGTM.

@GauthamBanasandra GauthamBanasandra added backport Backport PR; reviews may be optional depending on nature of backport build labels Nov 4, 2021
@GauthamBanasandra GauthamBanasandra changed the title HADOOP-17880. Build 2.10.x with docker HADOOP-17880. Build Hadoop on Centos 7 Nov 5, 2021
@GauthamBanasandra
Copy link
Member

LGTM. I'll merge this PR tomorrow if there are no further comments.

@GauthamBanasandra GauthamBanasandra merged commit eb6be30 into apache:branch-2.10 Nov 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Backport PR; reviews may be optional depending on nature of backport build
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants