From bb4ce68d9f8ae8be9576944d3120dc15bbb0de91 Mon Sep 17 00:00:00 2001 From: wecharyu Date: Thu, 18 Jan 2024 14:22:08 +0000 Subject: [PATCH] Downgrade jdk8 to 1.8.0_262-b19 to avoid timestamp issue in HIVE-28014 (#16) Close kgyrtkirk/hive-dev-box#16 --- tools/install_java_zulu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/install_java_zulu b/tools/install_java_zulu index b3c65e4..8ef0498 100755 --- a/tools/install_java_zulu +++ b/tools/install_java_zulu @@ -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