Skip to content

Instantly share code, notes, and snippets.

@alkavan
Last active March 28, 2019 01:32
Show Gist options
  • Save alkavan/6c3dfd51353f88bc831c23248b844681 to your computer and use it in GitHub Desktop.
Save alkavan/6c3dfd51353f88bc831c23248b844681 to your computer and use it in GitHub Desktop.
ScyllaDB on CentOS 7.x (install instructions)

Stage 1 - System update and common setup procedure

Update system

# yum update

Set system time to UTC timezone

# timedatectl set-timezone UTC

Stage 2 - Install ScyllaDB from YUM repository and packages, and enable system service

Add repository to system

yum install -y epel-release wget

Add YUM repository

wget -O /etc/yum.repos.d/scylla.repo http://repositories.scylladb.com/scylla/repo/034e7e01c68d4fe4400d48ae53744a7d/centos/scylladb-2.0.repo

Install packages

yum install -y scylla scylla-server

Stage 3 - Configure and run setup

Run setup programs

scylla_setup

Answer 'YES' for 'Do you want to setup IO configuration?' or run scylla_io_setup

If you need more configurations

vim /etc/scylla/scylla.yaml
systemctl start scylla-server

Stage 4 - Tests

Check node status

nodetool status

Connect to node

cqlsh

Stage 5 - Scylla/Cassandra Driver

yum groupinstall -y "Development Tools"
yum install -y cmake
yum install -y libuv libuv-devel
yum install -y openssl openssl-devel
git clone https://github.com/datastax/cpp-driver.git
cd cpp-driver
git tag --list
git checkout 2.7.1
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr ..
make
make install

Then to install the php driver:

yum install -y gmp gmp-devel php-devel
pecl install cassandra
Copy link

ghost commented Mar 9, 2019

Thank you so much. This was really helpful.

@asliwinski
Copy link

You may want to update it with the latest version:
sudo curl -o /etc/yum.repos.d/scylla.repo -L http://repositories.scylladb.com/scylla/repo/fa13500b-1166-4888-9f40-0a7d0e822d70/centos/scylladb-3.0.repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment