Skip to content

Instantly share code, notes, and snippets.

@eric
Created October 22, 2009 20:04
Show Gist options
  • Save eric/216249 to your computer and use it in GitHub Desktop.
Save eric/216249 to your computer and use it in GitHub Desktop.
# Want to use your own storage-conf.xml instead of the one included with
# the cassandra gem?
#
# Copy files from <cassandra-gem-root>/conf to a directory
# in your project ("cassandra/conf" is used in this example).
#
# Then run "rake cassandra"
#
CASSANDRA_HOME = "#{ENV['HOME']}/cassandra/server"
desc "Start Cassandra"
task :cassandra do
ENV['CASSANDRA_INCLUDE'] = "#{File.expand_path(File.dirname(__FILE__))}/cassandra/conf/cassandra.in.sh"
ENV['CASSANDRA_HOME'] = "#{CASSANDRA_HOME}"
ENV['CASSANDRA_CONF'] = "#{File.expand_path(File.dirname(__FILE__))}/cassandra/conf"
exec("cassandra_helper cassandra")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment