Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Updated Cassandra to 1.0.6 #4

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions recipes/cassandra-ec2.properties
Expand Up @@ -38,5 +38,5 @@ whirr.credential=${env:AWS_SECRET_ACCESS_KEY}
# whirr.public-key-file=${whirr.private-key-file}.pub # whirr.public-key-file=${whirr.private-key-file}.pub


# Expert: specify the version of Cassandra to install. # Expert: specify the version of Cassandra to install.
#whirr.cassandra.version.major=0.7 #whirr.cassandra.version.major=1.0.6
#whirr.cassandra.tarball.url=http://www.apache.org/dist/cassandra/0.7.0/apache-cassandra-0.7.0-bin.tar.gz #whirr.cassandra.tarball.url=http://www.apache.org/dist/cassandra/1.0.6/apache-cassandra-1.0.6-bin.tar.gz
2 changes: 1 addition & 1 deletion services/cassandra/pom.xml
Expand Up @@ -65,7 +65,7 @@
<dependency> <dependency>
<groupId>org.apache.cassandra</groupId> <groupId>org.apache.cassandra</groupId>
<artifactId>cassandra-all</artifactId> <artifactId>cassandra-all</artifactId>
<version>0.7.0</version> <version>1.0.6</version>
</dependency> </dependency>
<dependency> <dependency>
<groupId>org.apache.cassandra.deps</groupId> <groupId>org.apache.cassandra.deps</groupId>
Expand Down
Expand Up @@ -40,7 +40,7 @@ public class CassandraClusterActionHandler extends ClusterActionHandlerSupport {


public static final String CASSANDRA_ROLE = "cassandra"; public static final String CASSANDRA_ROLE = "cassandra";
public static final int CLIENT_PORT = 9160; public static final int CLIENT_PORT = 9160;
public static final int JMX_PORT = 8080; public static final int JMX_PORT = 7199;


public static final String BIN_TARBALL = "whirr.cassandra.tarball.url"; public static final String BIN_TARBALL = "whirr.cassandra.tarball.url";
public static final String MAJOR_VERSION = "whirr.cassandra.version.major"; public static final String MAJOR_VERSION = "whirr.cassandra.version.major";
Expand Down
Expand Up @@ -52,6 +52,7 @@ function configure_cassandra() {


sed -i -e "s|listen_address: localhost|listen_address: $PRIVATE_IP|" $config_file sed -i -e "s|listen_address: localhost|listen_address: $PRIVATE_IP|" $config_file
sed -i -e "s|rpc_address: localhost|rpc_address: 0.0.0.0|" $config_file sed -i -e "s|rpc_address: localhost|rpc_address: 0.0.0.0|" $config_file
sed -i -e "s|cluster_name: 'Test Cluster'|cluster_name: 'Whirr'|" $config_file
fi fi
} }


Expand Up @@ -16,9 +16,9 @@
# #
function install_cassandra() { function install_cassandra() {


C_MAJOR_VERSION=${1:-0.7} C_MAJOR_VERSION=${1:-1.0}
C_TAR_URL=${2:-http://archive.apache.org/dist/cassandra/0.7.5/apache-cassandra-0.7.5-bin.tar.gz} C_TAR_URL=${2:-http://archive.apache.org/dist/cassandra/1.0.6/apache-cassandra-1.0.6-bin.tar.gz}

c_tar_file=`basename $C_TAR_URL` c_tar_file=`basename $C_TAR_URL`
c_tar_dir=`echo $c_tar_file | awk -F '-bin' '{print $1}'` c_tar_dir=`echo $c_tar_file | awk -F '-bin' '{print $1}'`


Expand Down