简体   繁体   中英

cassandra on ubuntu installation error

I'm trying to install Cassandra 3.7 . when i check bin/nodetool -f it shows

Status=Up/Down
|/ State=Normal/Leaving/Joining/Moving
--  Address    Load       Tokens       Owns (effective)  Host ID                               Rack
UN  127.0.0.1  129.3 KiB  256          100.0%            40170e85-795e-43b1-bd57-68da9267ecc5  rack1

but when i try to run bin/cqlsh this shows the error

Connection error: ('Unable to connect to any servers', {'127.0.0.1': TypeError('ref() does not take keyword arguments',)})

please help me.

I am not sure which operating system you are using, however we faced similar kind of issue with Ubuntu Server 16.04 LTS. Things were working fine when we were using Ubuntu Server 14.04 LTS. Then I got pointer on IRC channel of Cassandra. This was actually reported as bug CASSANDRA-11850 . If you follow through the work-around mentioned in comments, you can resolve this issue.

For quick reference, I am summarizing steps.
1) Update python Cassandra drivers from Cassandra Drivers
2) Before connecting to Cassandra using 'cqlsh' export CQLSH_NO_BUNDLED=true. Then run 'cqlsh'.

This should solve your problem.

Let me know if this helps.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM