tjake / Solandra

Solandra = Solr + Cassandra
Apache License 2.0
882 stars 150 forks source link

SolandraDaemon (Working Version) #135

Closed levmatta-umanni closed 13 years ago

levmatta-umanni commented 13 years ago

This class was made to conform with the CassandraDaemon Interface, so I can use Solandra in production (I use Ubuntu) using the Apache Cassandra PPA. To do that I do:

git clone git://github.com/tjake/Solandra.git
mkdir tmp
mkdir tmp/bin
cp /usr/sbin/cassandra tmp/bin/cassandra
cd Solandra
ant
ant -Dcassandra=/root/tmp/ cassandra-dist
cd ../tmp
cp conf/* /etc/cassandra/
\# Verify if override
cp -i lib/* /usr/share/cassandra/lib/
cp bin/solandra /usr/sbin/solandra

After that I edited the /etc/init.d/cassandra script to point to solandra.SolandraDaemon

Personally I believe this is all very simple, and valid to run solandra as a daemon and with the correct structure on Ubuntu.

tjake commented 13 years ago

Looks good, thanks!