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

cqlsh on Windows? #99

Open
only-cliches opened this issue Oct 2, 2017 · 5 comments
Open

cqlsh on Windows? #99

only-cliches opened this issue Oct 2, 2017 · 5 comments

Comments

@only-cliches
Copy link

only-cliches commented Oct 2, 2017

Installation details
Scylla version (or git commit hash): scylla --version produces 2017.1.1-20170815.8c155c3
Cluster size: 1
OS (RHEL/CentOS/Ubuntu/AWS AMI): CentOS 7

Platform (physical/VM/cloud instance type/docker): VirtualBox

I can't connect to ScyllaDB running in a Virtualbox instance no matter what I try.

Running nodetool status in the VM produces a positive output showing a single rack running which owns 100% of the database. I can also run cqlsh on the VM with success and get it to connect and work correctly.

I can't, however, find a way to connect to the Scylla instance running in VirtualBox from my host machine (Win 10 x64).

My port forwarding in virtualbox looks like this:
Imgur

I attempted to download Cassandra 2.2.10 and 3.0.14 and use the included CQLSH tool in there. Initially I got errors like this:

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',)})

But I figure out how to edit the cqlsh.py file for both versions and set the appropriate variables for the protocol version, port and host.

Now when I type cqlsh.bat to run the program in the command prompt nothing happens, it just hangs there forever. I've tried the included cqlsh tool from both versions of cassandra above with identical results.

I can't find an official CQLSH tool for Scylla meant to run on Windows, even trying the cqlsh provided in this git repo.

Edit: I've also tried disabling the windows firewall without any success.

@only-cliches only-cliches changed the title cqlsh on windows? cqlsh on Windows? Oct 2, 2017
@penberg
Copy link

penberg commented Oct 3, 2017

@ClickSimply The version you're using only support CQL binary protocol 3 so you'd need to either use cqlsh from Apache Cassandra 2.1 series or the one packaged with the specific ScyllaDB version you're using.

We indeed don't have tools package for Windows. Maybe we should?

/cc @avikivity @tzach

@only-cliches
Copy link
Author

Thanks for the response! CQLSH from Cassandra 2.1 wasn't successful either. At this point I'm just going to install the linux subsystem for windows and get this running on Ubuntu.

@penberg
Copy link

penberg commented Oct 11, 2017

@ClickSimply What was the problem with Cassandra 2.1 cqlsh?

@yassine-y
Copy link

haven't this been solved yet?!!

Getting tons of Syntax errors when trying to install cqlsh to windows 10. :/

@mykaul mykaul transferred this issue from scylladb/scylladb Aug 26, 2024
@fruch
Copy link
Collaborator

fruch commented Aug 26, 2024

cqlsh isn't tested with windows (and isn't going to be tested with windows)
the python-driver is tested to some degree with windows.

anyhow the issue mentioned here, seems to python-driver related and not cqlsh itself.

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

No branches or pull requests

4 participants