Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerized cassandra cannot be connected from external cqlsh #98

Open
felixgao opened this issue Oct 5, 2016 · 3 comments
Open

Dockerized cassandra cannot be connected from external cqlsh #98

felixgao opened this issue Oct 5, 2016 · 3 comments

Comments

@felixgao
Copy link
Contributor

felixgao commented Oct 5, 2016

Using docker for mac 1.12.1

bin/wasabi.sh start:cassandra,mysql
93dce6dbd610534dd588806a7df34e1345d0822c78d1e35e2c85cd49eb63d63a
chill'ax 🍺 🍺 🍺 🍺 🍺 🍺 🍺 🍺 🍺 🍺
151b03b792705e52f1fc23e9dfc5fb649b63291eae529622b03afe7073eef860
chill'ax 🍺 🍺 🍺 🍺 🍺 🍺 🍺 🍺 🍺 🍺
Warning: Using a password on the command line interface can be insecure.
docker ps
CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                                                                     NAMES
151b03b79270        mysql:5.6           "docker-entrypoint.sh"   34 minutes ago      Up 10 seconds       0.0.0.0:3306->3306/tcp                                                    wasabi-mysql
93dce6dbd610        cassandra:2.1       "/docker-entrypoint.s"   34 minutes ago      Up 41 seconds       7000-7001/tcp, 0.0.0.0:9042->9042/tcp, 7199/tcp, 0.0.0.0:9160->9160/tcp   wasabi-cassandra

on mac:

cqlsh
Connection error: ('Unable to connect to any servers', {'127.0.0.1': DriverException('ProtocolError returned from server while using explicitly set client protocol_version 4',)})
@shoeffner
Copy link
Member

It seems to be a [well known][jira] problem with cqlsh and our old cassandra version (and it's "resolved", although I don't really understand the solutions listed there).

You can downgrade your cqlsh (pip uninstall cqlsh && pip install cqlsh==4.0.1) to get it to work though.

Connected to Test Cluster at localhost:9160.
[cqlsh 4.0.1 | Cassandra 2.1.15 | CQL spec 3.1.1 | Thrift protocol 19.39.0]

@felixgao
Copy link
Contributor Author

felixgao commented Oct 7, 2016

interesting. Can you also share the jira link? I would like to read the comments chain

@shoeffner
Copy link
Member

Oh dear, I did not read that I missed out on that: https://issues.apache.org/jira/browse/CASSANDRA-9467 and (linked therein) https://issues.apache.org/jira/browse/CASSANDRA-12150

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants