Skip to content

Commit

Permalink
Downgrade jdk8 to 1.8.0_262-b19 to avoid timestamp issue in HIVE-28014 (
Browse files Browse the repository at this point in the history
#16)

Close #16
  • Loading branch information
wecharyu authored and zabetak committed Jan 22, 2024
1 parent c67d8af commit bb4ce68
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/install_java_zulu
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

0 comments on commit bb4ce68

Please sign in to comment.