Skip to content

gengwg/cassandra-vagrant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cassandra-vagrant

Usage

Start service

vagrant up
vagrant ssh

# allow remote clients
[vagrant@localhost ~]$ sudo vim /etc/cassandra/conf/cassandra.yaml
#rpc_address: localhost
rpc_address: 0.0.0.0
[vagrant@localhost ~]$ sudo service cassandra restart

Connect to cql shell

$ cqlsh 127.0.0.1 19042 --cqlversion='3.1.7'
Connected to Test Cluster at 127.0.0.1:19042.
[cqlsh 5.0.1 | Cassandra 2.0.12 | CQL spec 3.1.7 | Native protocol v2]
Use HELP for help.
cqlsh>

Connect using Python

from cassandra.cqlengine import connection
connection.setup(['127.0.0.1'], "demo", port=19042, cql_version='3.1.7')

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published