2 # The contents of this file are subject to the Common Public Attribution
3 # License Version 1.0. (the "License"); you may not use this file except in
4 # compliance with the License. You may obtain a copy of the License at
5 # http://code.reddit.com/LICENSE. The License is based on the Mozilla Public
6 # License Version 1.1, but Sections 14 and 15 have been added to cover use of
7 # software over a computer network and provide for limited attribution for the
8 # Original Developer. In addition, Exhibit A has been modified to be consistent
11 # Software distributed under the License is distributed on an "AS IS" basis,
12 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
13 # the specific language governing rights and limitations under the License.
15 # The Original Code is reddit.
17 # The Original Developer is the Initial Developer. The Initial Developer of
18 # the Original Code is reddit Inc.
20 # All portions of the code written by reddit are Copyright (c) 2006-2015 reddit
21 # Inc. All Rights Reserved.
22 ###############################################################################
26 source $RUNDIR/install.cfg
28 if [ ! -e $CASSANDRA_SOURCES_LIST ]; then
29 echo "Cassandra repo not added. Running `install_apt.sh`"
30 $RUNDIR/install_apt.sh
34 sudo apt-get
install $APTITUDE_OPTIONS cassandra
=1.2.19
36 # we don't want to upgrade to C* 2.0 yet, so we'll put it on hold
37 apt-mark hold cassandra || true
39 # cassandra doesn't auto-start after install
40 sudo service cassandra start
42 # check each port for connectivity
43 echo "Waiting for cassandra to be available..."
44 while ! nc
-vz localhost
9160; do