if you turn off framed mode (by setting the the transport size to 0)
then you need to use the unframed option with cli

On Thu, Aug 12, 2010 at 10:20 PM, Mark <static.void....@gmail.com> wrote:
> On 8/12/10 9:14 PM, Jonathan Ellis wrote:
>>
>> Works fine here.
>>
>> bin/cassandra-cli --host localhost --port 9160
>> Connected to: "Test Cluster" on localhost/9160
>> Welcome to cassandra CLI.
>>
>> On Thu, Aug 12, 2010 at 2:18 PM, Mark<static.void....@gmail.com>  wrote:
>>
>>>
>>> On 8/12/10 8:29 AM, Mark wrote:
>>>
>>>>
>>>> On 8/11/10 10:11 PM, Jonathan Ellis wrote:
>>>>
>>>>>
>>>>> you have to use an up to date CLI, the old one used broken options w/
>>>>> its framed mode
>>>>>
>>>>> On Wed, Aug 11, 2010 at 6:39 PM, Mark<static.void....@gmail.com>
>>>>>  wrote:
>>>>>
>>>>>>
>>>>>> "org.apache.thrift.protocol.TProtocolException: Missing version in
>>>>>> readMessageBegin, old client?"
>>>>>>
>>>>>> Is the CLI not supported when using TSocket? I don't believe this was
>>>>>> the
>>>>>> same in 0.6.
>>>>>>
>>>>>> Can someone explain the differences between TFramedTransport vs
>>>>>> TSocket.
>>>>>> I
>>>>>> tried searching but I couldn't find much information on either one.
>>>>>> Thanks
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>> Where can I find an updated cli? I just downloaded the nightly build
>>>> (apache-cassandra-2010-08-12_13-11-16-bin.tar.gz) and I am still seeing
>>>> the
>>>> same thing. Thanks
>>>>
>>>
>>> Same thing with cassandra-0.7.0-beta1
>>>
>>>
>>
>>
>>
>
> Jon
>
> I am using apache-cassandra-0.7.0-beta1
> (http://people.apache.org/~eevans/apache-cassandra-0.7.0-beta1-bin.tar.gz)
> with pretty much all the defaults besides :
> "thrift_framed_transport_size_in_mb:"
>
> cluster_name: MyCluster
> auto_bootstrap: true
> hinted_handoff_enabled: true
> authenticator: org.apache.cassandra.auth.AllowAllAuthenticator
> partitioner: org.apache.cassandra.dht.RandomPartitioner
> data_file_directories:
>    - /var/lib/cassandra/data
> seeds:
>    - localhost
> disk_access_mode: mmap_index_only
> concurrent_reads: 8
> concurrent_writes: 32
> sliced_buffer_size_in_kb: 64
> storage_port: 7000
> listen_address: localhost
> rpc_address: localhost
> rpc_port: 9160
> thrift_framed_transport_size_in_mb: 15
> thrift_max_message_length_in_mb: 16
> snapshot_before_compaction: false
> binary_memtable_throughput_in_mb: 256
> memtable_flush_after_mins: 60
> memtable_throughput_in_mb: 64
> memtable_operations_in_millions: 0.3
> column_index_size_in_kb: 64
> in_memory_compaction_limit_in_mb: 64
> commitlog_directory: /var/lib/cassandra/commitlog
> commitlog_rotation_threshold_in_mb: 128
> commitlog_sync: periodic
> commitlog_sync_period_in_ms: 10000
> rpc_timeout_in_ms: 10000
> endpoint_snitch: org.apache.cassandra.locator.SimpleSnitch
> dynamic_snitch: true
> request_scheduler: org.apache.cassandra.scheduler.NoScheduler
> request_scheduler_id: keyspace
> keyspaces:
>    - name: MyKeyspace
>      replica_placement_strategy:
> org.apache.cassandra.locator.RackUnawareStrategy
>      replication_factor: 1
>      column_families:
>        - name: Foo
>          compare_with: BytesType
>
> If I change "thrift_framed_transport_size_in_mb" back to the default value
> of 15 then the CLI will work, otherwise I receiving the following error
> messages:
>
> CLI
> $ bin/cassandra-cli --host localhost --port 9160
> Exception retrieving information about the cassandra node, check you have
> connected to the thrift port.
> Welcome to cassandra CLI.
>
> Cassandra
> ERROR 22:12:06,235 Thrift error occurred during processing of message.
> org.apache.thrift.protocol.TProtocolException: Missing version in
> readMessageBegin, old client?
>    at
> org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:211)
>    at
> org.apache.cassandra.thrift.Cassandra$Processor.process(Cassandra.java:2487)
>    at
> org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.run(CustomTThreadPoolServer.java:167)
>    at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>    at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>    at java.lang.Thread.run(Thread.java:637)
>
>
>
>



-- 
Jonathan Ellis
Project Chair, Apache Cassandra
co-founder of Riptano, the source for professional Cassandra support
http://riptano.com

Reply via email to