cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Lebresne <sylv...@datastax.com>
Subject Re: CQL binary protocol error
Date Fri, 25 Jan 2013 11:00:23 GMT
cqlsh does not use the native protocol (It may and hopefully will someday
but it's not the case right now).

--
Sylvain


On Fri, Jan 25, 2013 at 11:49 AM, Vivek Mishra <mishra.vivs@gmail.com>wrote:

> I have enabled *start_native_transport: true*  in cassandra.yaml and then
> tried to connect from cqlsh as:
>
> */home/vivek/vivek/apache-cassandra-1.2.0/bin/cqlsh -3 localhost 9042*
>
> But i am getting below error:
>
> *
> vivek@vivek-pc ~/source/apache-cassandra-1.2.0-src $
> /home/vivek/vivek/apache-cassandra-1.2.0/bin/cqlsh -3 localhost 9042
> Traceback (most recent call last):
>   File "/home/vivek/vivek/apache-cassandra-1.2.0/bin/cqlsh", line 2247, in
> <module>
>     main(*read_options(sys.argv[1:], os.environ))
>   File "/home/vivek/vivek/apache-cassandra-1.2.0/bin/cqlsh", line 2233, in
> main
>     display_float_precision=options.float_precision)
>   File "/home/vivek/vivek/apache-cassandra-1.2.0/bin/cqlsh", line 482, in
> __init__
>     cql_version=cqlver, transport=transport)
>   File
> "/home/vivek/vivek/apache-cassandra-1.2.0/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py",
> line 143, in connect
>   File
> "/home/vivek/vivek/apache-cassandra-1.2.0/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/connection.py",
> line 59, in __init__
>   File
> "/home/vivek/vivek/apache-cassandra-1.2.0/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/thrifteries.py",
> line 159, in establish_connection
>   File
> "/home/vivek/vivek/apache-cassandra-1.2.0/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py",
> line 1255, in describe_version
>   File
> "/home/vivek/vivek/apache-cassandra-1.2.0/bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py",
> line 1265, in recv_describe_version
>   File
> "/home/vivek/vivek/apache-cassandra-1.2.0/bin/../lib/thrift-python-internal-only-0.7.0.zip/thrift/protocol/TBinaryProtocol.py",
> line 126, in readMessageBegin
>   File
> "/home/vivek/vivek/apache-cassandra-1.2.0/bin/../lib/thrift-python-internal-only-0.7.0.zip/thrift/protocol/TBinaryProtocol.py",
> line 203, in readI32
>   File
> "/home/vivek/vivek/apache-cassandra-1.2.0/bin/../lib/thrift-python-internal-only-0.7.0.zip/thrift/transport/TTransport.py",
> line 63, in readAll
> EOFError
> *
>
> Any idea?
>
> -Vivek
>

Mime
View raw message