Open amoskong opened 4 years ago
$ git grep openjdk-
dist/debian/control.mustache:Depends: openjdk-8-jre-headless | openjdk-8-jre | oracle-java8-set-default | adoptopenjdk-8-hotspot-jre | openjdk-11-jre-headless | openjdk-11-jre | oracle-java11-set-default, python (>= 2.7), python-yaml, procps
dist/redhat/scylla-tools.spec.mustache:Requires: java-1.8.0-openjdk-headless python2
install-dependencies.sh: apt -y install openjdk-8-jdk-headless ant ant-optional python
install-dependencies.sh: yum install -y ant java-1.8.0-openjdk-devel python ant-junit fakeroot
We can fix the problem by adjusting the depends order.
But we need to consider our AIM before make a decision:
/CC @penberg @tzach @slivne
Hi @tzach ,
The dependency change was introduced from 4.1 by https://github.com/scylladb/scylla-tools-java/commit/6d76e51472ae3350cbe9b9adc2134eec616d9318
I think we need to mention the effect (existing openjdk-11 will be switched to openjdk-8 in scylla installation) in release Note. Or consider to fix it if you think it's a serious problem and users can't accept this.
Best will be to find a solution, even if we need 4.1.1 for it, or else all of Ubuntu users (~50%) will fail to upgrade. If docs updated is needed, we should update both release notes and upgrade guide, as many read one (most do not read either)
I don;t understand whats the issue and if its a regression compared to Scylla 4.0
Scylla 4.0 forced installation of Java8,
Scylla 4.1 still forces installation of Java8 although we tried to fix that - we haven't, its ugly I agree - but does it regress compared to Scylla 4.0 ?
Scylla runs on dedicated machines.
@slivne there is a change from 4.0 (see above)
We need to validate:
AFAIU, this is not the case. If you suggest to update the docs, we need a "patch" for both install and upgrade.
We didn't change anything in the procedure of installing /upgrading the cluster. We still install openjdk-8 for ububntu18 & 16.
The artifacts tests are passing and also upgrades.
This is our install procedure:
export DEBIAN_FRONTEND=noninteractive
apt-get install software-properties-common -y
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 6B2BFD3660EF3F5B
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 17723034C56D4B19
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 5e08fbd8b5d6ec9c
add-apt-repository -y ppa:scylladb/ppa
apt-get update
apt-get install -y openjdk-8-jre-headless
update-java-alternatives --jre-headless -s java-1.8.0-openjdk-amd64
The documented procedure is slightly different (one key, no ppa). I do not think it should effect https://www.scylladb.com/download/?platform=ubuntu-18.04&version=scylla-4.1
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5e08fbd8b5d6ec9c
sudo curl -o /etc/apt/sources.list.d/scylla.list -L http://repositories.scylladb.com/scylla/repo/6f5f052a-53c9-4bbd-9572-4996aa359869/ubuntu/scylladb-4.1-bionic.list
sudo apt-get update
sudo apt-get install scylla
sudo apt-get update
sudo apt-get install -y openjdk-8-jre-headless
sudo update-java-alternatives --jre-headless -s java-1.8.0-openjdk-amd64
For Ubuntu 16 docs are:
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 5e08fbd8b5d6ec9c
sudo curl -o /etc/apt/sources.list.d/scylla.list -L http://repositories.scylladb.com/scylla/repo/6f5f052a-53c9-4bbd-9572-4996aa359869/ubuntu/scylladb-4.1-xenial.list
sudo apt-get update
sudo apt-get install scylla
For Debian 9
sudo apt-get install apt-transport-https wget gnupg2 dirmngr
sudo apt-key adv --fetch-keys https://download.opensuse.org/repositories/home:/scylladb:/scylla-3rdparty-stretch/Debian_9.0/Release.key
sudo apt-get update
sudo wget -O /etc/apt/sources.list.d/scylla.list http://repositories.scylladb.com/scylla/repo/6f5f052a-53c9-4bbd-9572-4996aa359869/debian/scylladb-4.1-stretch.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 17723034C56D4B19
sudo apt-get update
sudo apt-get install scylla
For Debian 10
sudo apt-get install apt-transport-https wget gnupg2 dirmngr
sudo apt-key adv --fetch-keys https://download.opensuse.org/repositories/home:/scylladb:/scylla-3rdparty-stretch/Debian_9.0/Release.key
sudo apt-get update
sudo wget -O /etc/apt/sources.list.d/scylla.list http://repositories.scylladb.com/scylla/repo/6f5f052a-53c9-4bbd-9572-4996aa359869/deb/debian/scylla-4.1-buster.list
sudo apt-get update
sudo apt-get install scylla
Note the mistake in the second line. i need to fix it
I don;t understand whats the issue and if its a regression compared to Scylla 4.0
Scylla 4.0 forced installation of Java8,
Scylla 4.1 still forces installation of Java8 although we tried to fix that - we haven't, its ugly I agree - but does it regress compared to Scylla 4.0 ?
It's not a regression. We only support Java8 for Scylla 4.0, but we start to support Java11 from Scylla 4.1
Scylla runs on dedicated machines.
Description
install default openjdk on Ubuntu 18.04
Problem:
openjdk-11 had been supported, but the scylla installation will force to switch to openjdk-8.