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
$ 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>
from cassandra.cqlengine import connection
connection.setup(['127.0.0.1'], "demo", port=19042, cql_version='3.1.7')