avalanche123 / cassandra-web

A web interface for Apache Cassandra
http://avalanche123.com/cassandra-web/
MIT License
135 stars 52 forks source link

Host x.x.x.x doesn't support protocol version #5

Closed christopher-t-mooney closed 7 years ago

christopher-t-mooney commented 7 years ago

Hi!

I'm trying to use cassandra-web with the servers in my cassandra cluster. But when I try to start it I get the following output (I removed the actual ip addresses):

cassandra-web --hosts 'x.x.x.x,y.y.y.y,z.z.z.z'

INFO -- : Establishing control connection INFO -- : Host x.x.x.x doesn't support protocol version 2, downgrading WARN -- : Host x.x.x.x refused all connections Cassandra::Errors::ProtocolError: Invalid or unsupported protocol version (1); the lowest supported version is 3 and the greatest is 4

If I run cqlsh, here is the information it gives: [cqlsh 5.0.1 | Cassandra 3.9 | CQL spec 3.4.2 | Native protocol v4]

avalanche123 commented 7 years ago

what version of the cassandra-driver are you using?

christopher-t-mooney commented 7 years ago

How would i find that out?

avalanche123 commented 7 years ago
require 'cassandra/version'

p Cassandra::VERSION

how are you installing this project? what is the contents of your gemfile.lock

christopher-t-mooney commented 7 years ago

Ah, well, I am creating a docker container for it, so essentially, I use the official ruby image for docker and use the following command in the dockerfile to install it:

RUN gem install cassandra-web

Which builds the whole thing for me (looks like the cassandra driver might be 1.2.0?):

Successfully installed ione-1.2.4 Building native extensions. This could take a while... Successfully installed cassandra-driver-1.2.0 Successfully installed rack-1.6.5 Building native extensions. This could take a while... Successfully installed eventmachine-1.2.1 Successfully installed daemons-1.2.4 Building native extensions. This could take a while... Successfully installed thin-1.7.0 Successfully installed rack-cors-0.4.0 Successfully installed rack-parser-0.7.0 Successfully installed tilt-2.0.5 Successfully installed rack-protection-1.5.3 Successfully installed sinatra-1.4.7 Building native extensions. This could take a while... Successfully installed lz4-ruby-0.3.3 Successfully installed cassandra-web-0.3.0 13 gems installed

avalanche123 commented 7 years ago

ok I've just pushed a bumped version of this gem that uses a newer driver

christopher-t-mooney commented 7 years ago

Dude! you rock! It works perfectly now!

Thank you! Especially for being so quick to respond.

avalanche123 commented 7 years ago

no problem, enjoy!