Cannot connect with CQL to Cassandra 2.0.10 -
Cannot connect with CQL to Cassandra 2.0.10 -
in server config, i've disabled thrift (start_rpc: false
), because presumably legacy. server starts fine:
info 12:23:09,658 starting listening cql clients on localhost/127.0.0.1:9042... info 12:23:09,668 not starting rpc server requested. utilize jmx (storageservice->startrpcserver()) or nodetool (enablethrift) start
if seek start cql, error:
c:\program files\datastax community\apache-cassandra\bin> .\cqlsh.bat connection error: not connect localhost:9160
port 9160 thrift port. under assumption cql supposed run on native format.
if seek forcefulness port:
c:\program files\datastax community\apache-cassandra\bin> .\cqlsh.bat localhost 9042
i this:
traceback (most recent phone call last): file "c:\program files\datastax community\apache-cassandra\bin\..\..\apache-cassandra\bin\cqlsh", line 2092, in <module> main(*read_options(sys.argv[1:], os.environ)) file "c:\program files\datastax community\apache-cassandra\bin\..\..\apache-cassandra\bin\cqlsh", line 2075, in main single_statement=options.execute) file "c:\program files\datastax community\apache-cassandra\bin\..\..\apache-cassandra\bin\cqlsh", line 490, in __init__ password=password, cql_version=cqlver, transport=transport) file "c:\program files\datastax community\apache-cassandra\bin\..\lib\cql-internal-only-1.4.1.zip\cql-1.4.1\cql\connection.py", line 143, in connect file "c:\program files\datastax community\apache-cassandra\bin\..\lib\cql-internal-only-1.4.1.zip\cql-1.4.1\cql\connection.py", line 59, in __init__ file "c:\program files\datastax community\apache-cassandra\bin\..\lib\cql-internal-only-1.4.1.zip\cql-1.4.1\cql\thrifteries.py", line 159, in establish_connection file "c:\program files\datastax community\apache-cassandra\bin\..\lib\cql-internal-only-1.4.1.zip\cql-1.4.1\cql\cassandra\cassandra.py", line 1265, in describe_version file "c:\program files\datastax community\apache-cassandra\bin\..\lib\cql-internal-only-1.4.1.zip\cql-1.4.1\cql\cassandra\cassandra.py", line 1275, in recv_describe_version file "c:\program files\datastax community\apache-cassandra\bin\..\lib\thrift-python-internal-only-0.9.1.zip\thrift\protocol\tbinaryprotocol.py", line 126, in readmessagebegin file "c:\program files\datastax community\apache-cassandra\bin\..\lib\thrift-python-internal-only-0.9.1.zip\thrift\protocol\tbinaryprotocol.py", line 206, in readi32 file "c:\program files\datastax community\apache-cassandra\bin\..\lib\thrift-python-internal-only-0.9.1.zip\thrift\transport\ttransport.py", line 63, in readall eoferror
cqlsh cassandra 2.0.x uses thrift communicate server.
https://issues.apache.org/jira/browse/cassandra-6307
cassandra cql cassandra-2.0 cql3 datastax
Comments
Post a Comment