-
Notifications
You must be signed in to change notification settings - Fork 9.2k
HADOOP-16748. Migrate to Python 3 and upgrade Yetus to 0.13.0 #1738
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
Merged
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
f793e60
HADOOP-16747. Support Python 3 in dev-support scripts.
aajisaka 08d55bf
Test YETUS-452. Remove python2; rewrite python bits for python 3
aajisaka c218615
Upgrade to Python 3 in Dockerfile
aajisaka 2210431
Revert "Test YETUS-452. Remove python2; rewrite python bits for pytho…
aajisaka 112fcf0
Use Yetus 0.13.0
aajisaka b70e9e6
Remove unsupported option
aajisaka 8485aa1
Fix hadolint error
aajisaka 64de97a
Revert indent changes in checkcompatibility.py
aajisaka 82fe22d
Reverted indent changes from determine-flaky-tests-hadoop.py
aajisaka d4a4e1b
Fix pip3 install command
aajisaka 9a9032a
Update Dockerfile_aarch64
aajisaka cc34617
Apply YETUS-1099
aajisaka 2b316f0
Disable Hadoop's bundled (Yetus 0.13.0) shelldocs
aajisaka ece917c
Revert "Apply YETUS-1099"
aajisaka 200ed58
Publish build status in the post script
aajisaka 7a6bee7
Use strong token
aajisaka 9ebb784
Remove determine-flaky-tests-hadoop.py since it is not used
aajisaka File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -76,10 +76,11 @@ RUN apt-get -q update \ | |
| openjdk-8-jdk \ | ||
| pinentry-curses \ | ||
| pkg-config \ | ||
| python \ | ||
| python2.7 \ | ||
| python-pkg-resources \ | ||
| python-setuptools \ | ||
| python3 \ | ||
| python3-pip \ | ||
| python3-pkg-resources \ | ||
| python3-setuptools \ | ||
| python3-wheel \ | ||
| rsync \ | ||
| shellcheck \ | ||
| software-properties-common \ | ||
|
|
@@ -112,18 +113,6 @@ RUN mkdir -p /opt/boost-library \ | |
| && cd /root \ | ||
| && rm -rf /opt/boost-library | ||
|
|
||
| #### | ||
| # Install pip (deprecated from Focal toolchain) | ||
| #### | ||
| # hadolint ignore=DL3003 | ||
| RUN mkdir -p /opt/pip \ | ||
| && curl -L https://bootstrap.pypa.io/2.7/get-pip.py > get-pip.py \ | ||
| && mv get-pip.py /opt/pip \ | ||
| && cd /opt/pip \ | ||
| && python2.7 get-pip.py "pip < 21.0" \ | ||
| && cd /root \ | ||
| && rm -rf /opt/pip | ||
|
|
||
| ###### | ||
| # Install Google Protobuf 3.7.1 (3.6.1 ships with Focal) | ||
| ###### | ||
|
|
@@ -143,19 +132,9 @@ ENV PROTOBUF_HOME /opt/protobuf | |
| ENV PATH "${PATH}:/opt/protobuf/bin" | ||
|
|
||
| #### | ||
| # Install pylint at fixed version (2.0.0 removed python2 support) | ||
| # https://github.com/PyCQA/pylint/issues/2294 | ||
| #### | ||
| RUN pip2 install \ | ||
| astroid==1.6.6 \ | ||
| isort==4.3.21 \ | ||
| configparser==4.0.2 \ | ||
| pylint==1.9.2 | ||
|
|
||
| #### | ||
| # Install dateutil.parser | ||
| # Install pylint and python-dateutil | ||
| #### | ||
| RUN pip2 install python-dateutil==2.7.3 | ||
| RUN pip3 install pylint==2.6.0 python-dateutil==2.8.1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this line fails to run on arm64. it require python3-dev. I'll create a PR. |
||
|
|
||
| #### | ||
| # Install bower | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.