-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Downgrade jdk8 to 1.8.0_262-b19 to avoid timestamp issue in HIVE-28014 (
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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 |
---|---|---|
@@ -1,12 +1,17 @@ | ||
#!/bin/bash -e | ||
|
||
apt-get install gnupg ca-certificates curl | ||
apt-get install gnupg ca-certificates curl wget | ||
curl -s https://repos.azul.com/azul-repo.key | sudo gpg --dearmor -o /usr/share/keyrings/azul.gpg | ||
echo "deb [signed-by=/usr/share/keyrings/azul.gpg] https://repos.azul.com/zulu/deb stable main" | sudo tee /etc/apt/sources.list.d/zulu.list | ||
|
||
apt-get update | ||
apt-get install -y zulu8-jdk zulu11-jdk zulu17-jdk | ||
|
||
# downgrade jdk8 to 1.8.0_262-b19 to avoid timestamp issue | ||
wget -nv https://cdn.azul.com/zulu/bin/zulu8.48.0.51-ca-fx-jdk8.0.262-linux_x64.tar.gz | ||
tar zxf zulu8.48.0.51-ca-fx-jdk8.0.262-linux_x64.tar.gz && rm zulu8.48.0.51-ca-fx-jdk8.0.262-linux_x64.tar.gz | ||
rm -rf /usr/lib/jvm/zulu8-ca-amd64 && mv zulu8.48.0.51-ca-fx-jdk8.0.262-linux_x64 /usr/lib/jvm/zulu8-ca-amd64 | ||
|
||
update-java-alternatives --set zulu8-ca-amd64 | ||
|
||
/tools/build_cleanup |