Permalink
Browse files

download and build 0.6.beta2

  • Loading branch information...
ryanking committed Mar 9, 2010
1 parent aa6d24d commit 9584bdfdabdaf4f892f6b2d410f4523dbdcb84b5
Showing with 333 additions and 233 deletions.
  1. +7 −4 Rakefile
  2. +7 −11 conf/cassandra.in.sh
  3. +319 −218 conf/storage-conf.xml
View
@@ -16,7 +16,7 @@ unless ENV['FROM_BIN_CASSANDRA_HELPER']
end
CASSANDRA_HOME = "#{ENV['HOME']}/cassandra"
-DIST_URL = "http://github.com/downloads/ryanking/cassandra/apache-cassandra-incubating-0.5.0.2010-02-21-bin.tar.gz"
+DIST_URL = "http://apache.osuosl.org/incubator/cassandra/0.6.0/apache-cassandra-0.6.0-beta2-bin.tar.gz"
DIST_FILE = DIST_URL.split('/').last
directory CASSANDRA_HOME
@@ -26,9 +26,9 @@ desc "Start Cassandra"
task :cassandra => [:java, File.join(CASSANDRA_HOME, 'server'), File.join(CASSANDRA_HOME, 'test', 'data')] do
env = ""
if !ENV["CASSANDRA_INCLUDE"]
- env << "CASSANDRA_INCLUDE=#{Dir.pwd}/conf/cassandra.in.sh "
+ env << "CASSANDRA_INCLUDE=#{File.expand_path(Dir.pwd)}/conf/cassandra.in.sh "
env << "CASSANDRA_HOME=#{CASSANDRA_HOME}/server "
- env << "CASSANDRA_CONF=#{Dir.pwd}/conf"
+ env << "CASSANDRA_CONF=#{File.expand_path(Dir.pwd)}/conf"
end
Dir.chdir(File.join(CASSANDRA_HOME, 'server')) do
@@ -39,7 +39,10 @@ end
file File.join(CASSANDRA_HOME, 'server') => File.join(CASSANDRA_HOME, DIST_FILE) do
Dir.chdir(CASSANDRA_HOME) do
sh "tar xzvf #{DIST_FILE}"
- sh "mv #{DIST_FILE.split('.')[0..2].join('.')} server"
+ sh "mv #{DIST_FILE.split('.')[0..2].join('.').sub('-bin', '')} server"
+ Dir.chdir('server') do
+ sh "ant ivy-retrieve"
+ end
end
end
View
@@ -18,34 +18,30 @@
CASSANDRA_CONF=$CASSANDRA_CONF
# This can be the path to a jar file, or a directory containing the
-# compiled classes.
+# compiled classes. NOTE: This isn't needed by the startup script,
+# it's just used here in constructing the classpath.
cassandra_bin=$CASSANDRA_HOME/build/classes
# The java classpath (required)
-CLASSPATH=$CASSANDRA_CONF:$cassandra_bin
+CLASSPATH=$CASSANDRA_CONF:$CASSANDRA_BIN
-for jar in $CASSANDRA_HOME/lib/*.jar; do
+for jar in $CASSANDRA_HOME/lib/*.jar $CASSANDRA_HOME/build/lib/jars/*.jar; do
CLASSPATH=$CLASSPATH:$jar
done
-echo "CASSANDRA_HOME: $CASSANDRA_HOME"
-echo "CASSANDRA_CONF: $CASSANDRA_CONF"
-
# Arguments to pass to the JVM
JVM_OPTS=" \
-ea \
- -Xdebug \
- -Xrunjdwp:transport=dt_socket,server=y,address=8888,suspend=n \
- -Xms512M \
+ -Xms128M \
-Xmx1G \
- -XX:SurvivorRatio=8 \
-XX:TargetSurvivorRatio=90 \
-XX:+AggressiveOpts \
-XX:+UseParNewGC \
-XX:+UseConcMarkSweepGC \
- -XX:CMSInitiatingOccupancyFraction=1 \
-XX:+CMSParallelRemarkEnabled \
-XX:+HeapDumpOnOutOfMemoryError \
+ -XX:SurvivorRatio=128 \
+ -XX:MaxTenuringThreshold=0 \
-Dcom.sun.management.jmxremote.port=8080 \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false"
Oops, something went wrong.

0 comments on commit 9584bdf

Please sign in to comment.