joeljacobson / vagrant-ansible-cassandra

Easily provision a 3 node DataStax Enterprise Cassandra cluster with OpsCenter using Ansible and Vagrant.
http://joeljacobson.github.io/vagrant-ansible-cassandra
26 stars 13 forks source link

Problems connecting to the Cluster #1

Closed tonymurphy closed 9 years ago

tonymurphy commented 9 years ago

Thanks for vagrant script - worked well

However, when trying to connect from my Mac (having downloaded tarball from downloaded from cassandra.apache.org), I get following error

➜ apache-cassandra-2.2.0 ./bin/cqlsh 192.168.56.10 9160 Connection error: ('Unable to connect to any servers', {'192.168.56.10': ConnectionShutdown('Connection <AsyncoreConnection(4323860240) 192.168.56.10:9160 (closed)> is already closed',)})

looking on stack overflow - suggests incompatibility between apache and datastax versions?

I did try port 9042 - that had problems also

➜ apache-cassandra-2.2.0 ./bin/cqlsh 192.168.56.10 9042 Connection error: ('Unable to connect to any servers', {'192.168.56.10': ProtocolError("cql_version '3.3.0' is not supported by remote (w/ native protocol). Supported versions: [u'3.2.0']",)})

Download mac version of dev centre worked ok

Would you mind adding some instructions on how to connect to the cluster using cqlsh for example? Thanks

joeljacobson commented 9 years ago

So you are swapping out the DataStax Enterprise download in the script just for the Apache distro?

If I am using all the defaults in this project, ie. Just using 'vagrant up' to build the whole cluster i would then 'vagrant ssh node(1,2,3)' then enter cqlsh 192.168.56.xx to get the CQL shell for that node.

tonymurphy commented 9 years ago

Yes I first used the Apache Distro, and it didn't work.

Once I installed the DataStax version, it worked

Thanks