
- Execute test groups in serial to make sure no more than 2 database instance are created at the same time. - Remove some unneccesary tests - Remove unneeded datastore, e.g. 'Test_Datastore_1' - Remove unsupported trovestack subcommands - Move unsupported DIB elements to the 'deprecated-elements' folder - Decrease default value of 'agent_call_high_timeout' to 5min - Add initial_deplay for pooling task - Use socket file to connect with database instead of using localhost IP Change-Id: Ie5030a671fbeb453eafa6cbe04e08da7b52e33c9
38 lines
1.4 KiB
Bash
Executable File
38 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
set -o xtrace
|
|
|
|
# Set CASSANDRA_JAVA to override which release of Java to use, defaults to 8
|
|
if [ -z "$CASSANDRA_JAVA" ]; then CASSANDRA_JAVA=8; fi
|
|
|
|
# Set CASSANDRA_RELEASE to override which casandra release to use, defaults to 311x
|
|
# For current releases supported, see http://cassandra.apache.org/download/ or
|
|
# http://dl.bintray.com/apache/cassandra/dists/
|
|
if [ -z "$CASSANDRA_RELEASE" ]; then CASSANDRA_RELEASE=21x; fi
|
|
|
|
export DEBIAN_FRONTEND=noninteractive
|
|
apt-get --allow-unauthenticated install -qy curl
|
|
echo "deb http://www.apache.org/dist/cassandra/debian ${CASSANDRA_RELEASE} main" >> /etc/apt/sources.list.d/cassandra.sources.list
|
|
curl https://www.apache.org/dist/cassandra/KEYS | sudo apt-key add -
|
|
apt-get -y update
|
|
apt-get --allow-unauthenticated install -qy openjdk-${CASSANDRA_JAVA}-jdk expect python-dev
|
|
apt-get --allow-unauthenticated install -qy libxml2-dev ntp mc libev4 libev-dev
|
|
apt-get --allow-unauthenticated install -qy libxslt1-dev python-pexpect
|
|
apt-get --allow-unauthenticated install -qy python-migrate build-essential
|
|
apt-get --allow-unauthenticated install -qy python-setuptools python-pip python-snappy
|
|
|
|
apt-get --allow-unauthenticated install -qy cassandra cassandra-tools
|
|
|
|
pip2 install Cython
|
|
|
|
# The Python Driver 2.0 for Apache Cassandra.
|
|
pip2 install cassandra-driver
|
|
|
|
# Sorted sets support for the Python driver.
|
|
pip2 install blist
|
|
|
|
service cassandra stop
|
|
rm -rf /var/lib/cassandra/data/system/*
|
|
service cassandra start
|