Skip to content
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

Fix Cassandra repo URLs and update to Cassandra 4.1.x. #1410

Merged
merged 3 commits into from
Sep 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ esac
sudo cat <<EOF > cassandra.repo
[cassandra]
name=Apache Cassandra
baseurl=https://www.apache.org/dist/cassandra/redhat/40x/
baseurl=https://redhat.cassandra.apache.org/41x/
gpgcheck=1
repo_gpgcheck=1
gpgkey=https://www.apache.org/dist/cassandra/KEYS
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ if [[ "${VERSION_ID}" == 23* || "$(uname -m)" == aarch64 ]]; then
sudo apt update
sudo apt install -y openjdk-11-jre cassandra
else
echo "deb https://www.apache.org/dist/cassandra/debian 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
echo "deb https://debian.cassandra.apache.org 22x main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
# Required to install java8 (JVM properties of cassandra 2.2 are incompatible with >9)
echo "deb https://archive.debian.org/debian-security stretch/updates main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ sudo zypper -n install java-1_8_0-openjdk java-1_8_0-openjdk-devel

# There is no official or even semi-official zypper package for cassandra
# https://github.com/GoogleCloudPlatform/ops-agent/blob/master/integration_test/README.md#vendored-dependencies
curl -OL https://storage.googleapis.com/ops-agents-public-buckets-vendored-deps/mirrored-content/archive.apache.org/dist/cassandra/4.0.1/apache-cassandra-4.0.1-bin.tar.gz
curl -OL https://storage.googleapis.com/ops-agents-public-buckets-vendored-deps/mirrored-content/archive.apache.org/dist/cassandra/4.1.3/apache-cassandra-4.1.3-bin.tar.gz

tar xzvf apache-cassandra-4.0.1-bin.tar.gz
mv apache-cassandra-4.0.1 apache-cassandra
tar xzvf apache-cassandra-4.1.3-bin.tar.gz
mv apache-cassandra-4.1.3 apache-cassandra

apache-cassandra/bin/cassandra -f &
ps -f -p $!
Loading