Skip to content

Commit

Permalink
Fix Cassandra repo URLs and update to Cassandra 4.1.x. (#1410)
Browse files Browse the repository at this point in the history
  • Loading branch information
igorpeshansky committed Sep 11, 2023
1 parent 159d8ef commit 0646e24
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
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 $!

0 comments on commit 0646e24

Please sign in to comment.