warning: Creating default object from empty value in /home/brianmok/public_html/modules/taxonomy/ on line 33.

Installing Cassandra as a Windows Service

Recently, I have been using Cassandra on some big data processing projects. While running it in the foreground was fine for early development, I needed to get it running as a Windows service for more mature development use. Luckily, this is easier than it first seems if you look closely. Here is a list of steps for Cassandra 1.0.X:

  1. I assume you have Cassandra working fine on Windows, but if you do not, it probably has something to do with the Unix-style paths in conf\Cassandra.yaml.
  2. Download Apache Common Daemon -- Procrun. I suggest getting the Native Binaries, which are a little tricky to find from the website, but can be found directly at
  3. Unzip the file on your hard drive.
  4. Create an environment variable called PRUNSRV and point it to the full path of prunsrv.exe from the previous step. IMPORTANT NOTE: If you are running Windows 64 bit, make sure you reference the prunsrv.exe in the amd64 subdirectory! Otherwise, the service will fail to start.
  5. Navigate to the bin\ directory in your Cassandra installation.
  6. At a command prompt, type cassandra.bat install
  7. Open the Services application under Administrator Settings. You should see an entry called cassandra. Start that service.
  8. Use the cassandra-cli to test that Cassandra is working.


  • If the service fails to start and you are running 64 bit Windows, see the note above about using the amd64\prunsrv.exe. If you look in Cassandra\bin\daemon\commons-daemon.log and see the line Commons Daemon procrun ( 32-bit) started, you are using the wrong one.
  • Make sure you are using the proper 32 or 64 bit JVM.
  • I'll add more as I encounter them.



My ideal developer machine running RHEL 5.5 and Windows 7

UPDATED 12/9/2010: As I suspected, I do have some file writing corruption writing large files and folders to the NTFS partition via the Windows 7 virtual machine. I added the details below

Syndicate content