Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jbussdieker/vagrant-cassandra
https://github.com/jbussdieker/vagrant-cassandra
cassandra puppet vagrant
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/jbussdieker/vagrant-cassandra
- Owner: jbussdieker
- Created: 2014-09-13T07:42:51.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-13T07:53:48.000Z (over 10 years ago)
- Last Synced: 2024-04-14T05:54:59.983Z (10 months ago)
- Topics: cassandra, puppet, vagrant
- Language: Ruby
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vagrant Cassandra
## Install Dependencies
$ bundle
$ bundle exec librarian-puppet install## Start virtual machine
$ vagrant up
## TADA!
$ vagrant ssh
(vagrant) $ cqlsh
(vagrant) cqlsh> CREATE KEYSPACE demodb WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'datacenter1' : 3 };
(vagrant) cqlsh> USE demodb;
(vagrant) cqlsh:demodb> CREATE TABLE list (item varchar, PRIMARY KEY (item));
(vagrant) cqlsh:demodb> INSERT INTO list (item) values ('item1');
(vagrant) cqlsh:demodb> INSERT INTO list (item) values ('item2');
(vagrant) cqlsh:demodb> INSERT INTO list (item) values ('item3');
(vagrant) cqlsh:demodb> SELECT * FROM list;item
-------
item1
item3
item2(3 rows)