Cassandra Installer
This package is a utility that provides the ability to use Cassandra in an embedded way for your node.js applications. The process works as follows:
- Select the package version of cassandra
- Download Cassandra (It will fetch from the nearest mirror)
- Install cassandra
- Start Cassandra
- Stop Cassandra
- Configure your logger instance for the module
Example Usage
'use strict'; const CassandraInstaller = winston = ; /* Create the logging levels, if none provided it will revert to the default console logger */ var transports = new winstontransportsConsole new winstontransportsFile filename: '/tmp/cassandra-installer.log' ; var options = destination : '/tmp' version : '3.5' dbName : 'test_db' transports : transports; /* Create a new installer that will download cassandra 3.4 in /tmp */ var installer = options; /* Download cassandra */installer
Note : Make sure you have the Java runtime 1.8.x installed so that Cassandra runs.
This module works on MacOS X and all flavors of *nix