Then only possible way is via creating own java program to connect/execute?
And then restart again in Thrift mode to connect via cqlsh/cassandra-cli ?

-Vivek

On Fri, Jan 25, 2013 at 4:30 PM, Sylvain Lebresne <[email protected]>wrote:

> 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 <[email protected]>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
>>
>
>

Reply via email to