You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by "Tiwari, Dushyant" <Du...@morganstanley.com> on 2012/03/21 12:02:59 UTC

Exceptions related to thrift transport

Hi Cassandra Users,

A couple of questions on the server side exceptions that I see sometimes -


1.       org.apache.thrift.TException: Message length exceeded: 134218240

n  How to configure message length?


2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?

-          How to rectify this exception?

Some related client side Exceptions are -


1.       org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe



2.       me.prettyprint.hector.api.exceptions.HectorTransportException: org.apache.thrift.transport.TTransportException



Caused by: org.apache.thrift.transport.TTransportException: null

        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)

Using Hector as client. The queries are writes to CF with indexes.

The frequency of these exceptions are very low.


Thanks,
Dushyant

--------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.

RE: Exceptions related to thrift transport

Posted by "Tiwari, Dushyant" <Du...@morganstanley.com>.
No the clients are fixed However sometimes the queries can be huge like this.
To summarize I will have the following in my TODO list to rectify this:
Try reducing the batch commit size.
<Please add some more checks here>

Thanks,
Dushyant

From: Ben Coverston [mailto:ben.coverston@datastax.com]
Sent: Thursday, March 22, 2012 1:32 AM
To: user@cassandra.apache.org
Subject: Re: Exceptions related to thrift transport

With the crazy message size, the version exception, and the frequency, is there a service that is connecting to the thrift port on occasion and sending garbage (port scan or something else of that nature). Can you rule that out?
On Wed, Mar 21, 2012 at 11:15 AM, aaron morton <aa...@thelastpickle.com>> wrote:
1.       org.apache.thrift.TException: Message length exceeded: 134218240
thrift_mas_message_length_in_mb
https://github.com/apache/cassandra/blob/cassandra-1.0/conf/cassandra.yaml#L243

(134218240 is 128MB, which is a lot of data(

2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
What version of hector are you using  ?

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 22/03/2012, at 12:02 AM, Tiwari, Dushyant wrote:


Hi Cassandra Users,

A couple of questions on the server side exceptions that I see sometimes -

1.       org.apache.thrift.TException: Message length exceeded: 134218240
*  How to configure message length?

2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
-          How to rectify this exception?

Some related client side Exceptions are -

1.       org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe

2.       me.prettyprint.hector.api.exceptions.HectorTransportException: org.apache.thrift.transport.TTransportException

Caused by: org.apache.thrift.transport.TTransportException: null
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)

Using Hector as client. The queries are writes to CF with indexes.

The frequency of these exceptions are very low.


Thanks,
Dushyant
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.




--
Ben Coverston
DataStax -- The Apache Cassandra Company


--------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.

Re: Exceptions related to thrift transport

Posted by Ben Coverston <be...@datastax.com>.
With the crazy message size, the version exception, and the frequency, is
there a service that is connecting to the thrift port on occasion and
sending garbage (port scan or something else of that nature). Can you rule
that out?

On Wed, Mar 21, 2012 at 11:15 AM, aaron morton <aa...@thelastpickle.com>wrote:

>  1.       org.apache.thrift.TException: Message length exceeded: 134218240
>
> thrift_mas_message_length_in_mb
>
> https://github.com/apache/cassandra/blob/cassandra-1.0/conf/cassandra.yaml#L243
>
> (134218240 is 128MB, which is a lot of data(
>
>  2.       org.apache.thrift.protocol.TProtocolException: Missing version
> in readMessageBegin, old client?****
>
> What version of hector are you using  ?
>
>  Cheers
>
>   -----------------
> Aaron Morton
> Freelance Developer
> @aaronmorton
> http://www.thelastpickle.com
>
> On 22/03/2012, at 12:02 AM, Tiwari, Dushyant wrote:
>
>  Hi Cassandra Users,****
> ** **
> A couple of questions on the server side exceptions that I see sometimes –
> ****
> ** **
> 1.       org.apache.thrift.TException: Message length exceeded: 134218240*
> ***
> n  How to configure message length?****
> ** **
> 2.       org.apache.thrift.protocol.TProtocolException: Missing version
> in readMessageBegin, old client?****
> -          How to rectify this exception?****
> ** **
> Some related client side Exceptions are –****
> ** **
> 1.       org.apache.thrift.transport.TTransportException:
> java.net.SocketException: Broken pipe****
> ** **
> 2.       me.prettyprint.hector.api.exceptions.HectorTransportException:
> org.apache.thrift.transport.TTransportException****
> ** **
> Caused by: org.apache.thrift.transport.TTransportException: null****
>         at
> org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
> ****
> ** **
> Using Hector as client. The queries are writes to CF with indexes.****
> ** **
> The frequency of these exceptions are very low.****
> ** **
> ** **
> Thanks,****
> Dushyant****
> ------------------------------
> NOTICE: Morgan Stanley is not acting as a municipal advisor and the
> opinions or views contained herein are not intended to be, and do not
> constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall
> Street Reform and Consumer Protection Act. If you have received this
> communication in error, please destroy all electronic and paper copies and
> notify the sender immediately. Mistransmission is not intended to waive
> confidentiality or privilege. Morgan Stanley reserves the right, to the
> extent permitted under applicable law, to monitor electronic
> communications. This message is subject to terms available at the following
> link: http://www.morganstanley.com/disclaimers. If you cannot access
> these links, please notify us by reply message and we will send the
> contents to you. By messaging with Morgan Stanley you consent to the
> foregoing.
>
>
>


-- 
Ben Coverston
DataStax -- The Apache Cassandra Company

Re: Exceptions related to thrift transport

Posted by aaron morton <aa...@thelastpickle.com>.
Can you provide the full error message ? 

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 22/03/2012, at 9:54 PM, Tiwari, Dushyant wrote:

> Yes the queries are batch mutate. I can understand this for exception#1 but not sure what is causing exception#2 (server side).
>  
> From: Guy Incognito [mailto:dnd1066@gmail.com] 
> Sent: Thursday, March 22, 2012 1:06 PM
> To: user@cassandra.apache.org
> Subject: Re: Exceptions related to thrift transport
>  
> are you perhaps trying to send a large batch mutate?  i've seen broken pipes etc in cassandra 0.7 (currently in the process of upgrading to 1.0.8) when a large batch mutate is sent.
> 
> On 22/03/2012 07:09, Tiwari, Dushyant wrote:
> Hector version 1.0-3
> What is the reason for the second exception, BTW?
>  
> Thanks,
> Dushyant
>  
> From: aaron morton [mailto:aaron@thelastpickle.com] 
> Sent: Wednesday, March 21, 2012 10:46 PM
> To: user@cassandra.apache.org
> Subject: Re: Exceptions related to thrift transport
>  
> 1.       org.apache.thrift.TException: Message length exceeded: 134218240
> thrift_mas_message_length_in_mb 
> https://github.com/apache/cassandra/blob/cassandra-1.0/conf/cassandra.yaml#L243
>  
> (134218240 is 128MB, which is a lot of data(
>  
> 2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
> What version of hector are you using  ?
>  
> Cheers
>  
> -----------------
> Aaron Morton
> Freelance Developer
> @aaronmorton
> http://www.thelastpickle.com
>  
> On 22/03/2012, at 12:02 AM, Tiwari, Dushyant wrote:
> 
> 
> 
> Hi Cassandra Users,
>  
> A couple of questions on the server side exceptions that I see sometimes –
>  
> 1.       org.apache.thrift.TException: Message length exceeded: 134218240
> n  How to configure message length?
>  
> 2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
> -          How to rectify this exception?
>  
> Some related client side Exceptions are –
>  
> 1.       org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe
>  
> 2.       me.prettyprint.hector.api.exceptions.HectorTransportException: org.apache.thrift.transport.TTransportException
>  
> Caused by: org.apache.thrift.transport.TTransportException: null
>         at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
>  
> Using Hector as client. The queries are writes to CF with indexes.
>  
> The frequency of these exceptions are very low.
>  
>  
> Thanks,
> Dushyant
> NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
>  
> NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link:http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.
>  
> NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link:http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.


RE: Exceptions related to thrift transport

Posted by "Tiwari, Dushyant" <Du...@morganstanley.com>.
Yes the queries are batch mutate. I can understand this for exception#1 but not sure what is causing exception#2 (server side).

From: Guy Incognito [mailto:dnd1066@gmail.com]
Sent: Thursday, March 22, 2012 1:06 PM
To: user@cassandra.apache.org
Subject: Re: Exceptions related to thrift transport

are you perhaps trying to send a large batch mutate?  i've seen broken pipes etc in cassandra 0.7 (currently in the process of upgrading to 1.0.8) when a large batch mutate is sent.

On 22/03/2012 07:09, Tiwari, Dushyant wrote:
Hector version 1.0-3
What is the reason for the second exception, BTW?

Thanks,
Dushyant

From: aaron morton [mailto:aaron@thelastpickle.com]
Sent: Wednesday, March 21, 2012 10:46 PM
To: user@cassandra.apache.org<ma...@cassandra.apache.org>
Subject: Re: Exceptions related to thrift transport

1.       org.apache.thrift.TException: Message length exceeded: 134218240
thrift_mas_message_length_in_mb
https://github.com/apache/cassandra/blob/cassandra-1.0/conf/cassandra.yaml#L243

(134218240 is 128MB, which is a lot of data(

2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
What version of hector are you using  ?

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 22/03/2012, at 12:02 AM, Tiwari, Dushyant wrote:



Hi Cassandra Users,

A couple of questions on the server side exceptions that I see sometimes -

1.       org.apache.thrift.TException: Message length exceeded: 134218240
*  How to configure message length?

2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
-          How to rectify this exception?

Some related client side Exceptions are -

1.       org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe

2.       me.prettyprint.hector.api.exceptions.HectorTransportException: org.apache.thrift.transport.TTransportException

Caused by: org.apache.thrift.transport.TTransportException: null
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)

Using Hector as client. The queries are writes to CF with indexes.

The frequency of these exceptions are very low.


Thanks,
Dushyant
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.

________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.


--------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.

Re: Exceptions related to thrift transport

Posted by Guy Incognito <dn...@gmail.com>.
are you perhaps trying to send a large batch mutate?  i've seen broken 
pipes etc in cassandra 0.7 (currently in the process of upgrading to 
1.0.8) when a large batch mutate is sent.

On 22/03/2012 07:09, Tiwari, Dushyant wrote:
>
> Hector version 1.0-3
>
> What is the reason for the second exception, BTW?
>
> Thanks,
>
> Dushyant
>
> *From:*aaron morton [mailto:aaron@thelastpickle.com]
> *Sent:* Wednesday, March 21, 2012 10:46 PM
> *To:* user@cassandra.apache.org
> *Subject:* Re: Exceptions related to thrift transport
>
>     1.org.apache.thrift.TException: Message length exceeded: 134218240
>
> thrift_mas_message_length_in_mb
>
> https://github.com/apache/cassandra/blob/cassandra-1.0/conf/cassandra.yaml#L243
>
> (134218240 is 128MB, which is a lot of data(
>
>     2.org.apache.thrift.protocol.TProtocolException: Missing version
>     in readMessageBegin, old client?
>
> What version of hector are you using  ?
>
> Cheers
>
> -----------------
>
> Aaron Morton
>
> Freelance Developer
>
> @aaronmorton
>
> http://www.thelastpickle.com
>
> On 22/03/2012, at 12:02 AM, Tiwari, Dushyant wrote:
>
>
>
> Hi Cassandra Users,
>
> A couple of questions on the server side exceptions that I see 
> sometimes --
>
> 1.org.apache.thrift.TException: Message length exceeded: 134218240
>
> nHow to configure message length?
>
> 2.org.apache.thrift.protocol.TProtocolException: Missing version in 
> readMessageBegin, old client?
>
> -How to rectify this exception?
>
> Some related client side Exceptions are --
>
> 1.org.apache.thrift.transport.TTransportException: 
> java.net.SocketException: Broken pipe
>
> 2.me.prettyprint.hector.api.exceptions.HectorTransportException: 
> org.apache.thrift.transport.TTransportException
>
> Caused by: org.apache.thrift.transport.TTransportException: null
>
>         at 
> org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
>
> Using Hector as client. The queries are writes to CF with indexes.
>
> The frequency of these exceptions are very low.
>
> Thanks,
>
> Dushyant
>
> ------------------------------------------------------------------------
>
> NOTICE:Morgan Stanley is not acting as a municipal advisor and the 
> opinions or views contained herein are not intended to be, and do not 
> constitute, advice within the meaning of Section 975 of the Dodd-Frank 
> Wall Street Reform and Consumer Protection Act.If you have received 
> this communication in error, please destroy all electronic and paper 
> copies and notify the sender immediately. Mistransmission is not 
> intended to waive confidentiality or privilege. Morgan Stanley 
> reserves the right, to the extent permitted under applicable law, to 
> monitor electronic communications. This message is subject to terms 
> available at the following 
> link:http://www.morganstanley.com/disclaimers. If you cannot access 
> these links, please notify us by reply message and we will send the 
> contents to you. By messaging with Morgan Stanley you consent to the 
> foregoing.
>
> ------------------------------------------------------------------------
> NOTICE: Morgan Stanley is not acting as a municipal advisor and the 
> opinions or views contained herein are not intended to be, and do not 
> constitute, advice within the meaning of Section 975 of the Dodd-Frank 
> Wall Street Reform and Consumer Protection Act. If you have received 
> this communication in error, please destroy all electronic and paper 
> copies and notify the sender immediately. Mistransmission is not 
> intended to waive confidentiality or privilege. Morgan Stanley 
> reserves the right, to the extent permitted under applicable law, to 
> monitor electronic communications. This message is subject to terms 
> available at the following link: 
> http://www.morganstanley.com/disclaimers. If you cannot access these 
> links, please notify us by reply message and we will send the contents 
> to you. By messaging with Morgan Stanley you consent to the foregoing.


RE: Exceptions related to thrift transport

Posted by "Tiwari, Dushyant" <Du...@morganstanley.com>.
Hector version 1.0-3
What is the reason for the second exception, BTW?

Thanks,
Dushyant

From: aaron morton [mailto:aaron@thelastpickle.com]
Sent: Wednesday, March 21, 2012 10:46 PM
To: user@cassandra.apache.org
Subject: Re: Exceptions related to thrift transport

1.       org.apache.thrift.TException: Message length exceeded: 134218240
thrift_mas_message_length_in_mb
https://github.com/apache/cassandra/blob/cassandra-1.0/conf/cassandra.yaml#L243

(134218240 is 128MB, which is a lot of data(

2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
What version of hector are you using  ?

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 22/03/2012, at 12:02 AM, Tiwari, Dushyant wrote:


Hi Cassandra Users,

A couple of questions on the server side exceptions that I see sometimes -

1.       org.apache.thrift.TException: Message length exceeded: 134218240
*  How to configure message length?

2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
-          How to rectify this exception?

Some related client side Exceptions are -

1.       org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe

2.       me.prettyprint.hector.api.exceptions.HectorTransportException: org.apache.thrift.transport.TTransportException

Caused by: org.apache.thrift.transport.TTransportException: null
        at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)

Using Hector as client. The queries are writes to CF with indexes.

The frequency of these exceptions are very low.


Thanks,
Dushyant
________________________________
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.


--------------------------------------------------------------------------
NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.

Re: Exceptions related to thrift transport

Posted by aaron morton <aa...@thelastpickle.com>.
> 1.       org.apache.thrift.TException: Message length exceeded: 134218240
thrift_mas_message_length_in_mb 
https://github.com/apache/cassandra/blob/cassandra-1.0/conf/cassandra.yaml#L243

(134218240 is 128MB, which is a lot of data(

> 2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
What version of hector are you using  ?

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 22/03/2012, at 12:02 AM, Tiwari, Dushyant wrote:

> Hi Cassandra Users,
>  
> A couple of questions on the server side exceptions that I see sometimes –
>  
> 1.       org.apache.thrift.TException: Message length exceeded: 134218240
> n  How to configure message length?
>  
> 2.       org.apache.thrift.protocol.TProtocolException: Missing version in readMessageBegin, old client?
> -          How to rectify this exception?
>  
> Some related client side Exceptions are –
>  
> 1.       org.apache.thrift.transport.TTransportException: java.net.SocketException: Broken pipe
>  
> 2.       me.prettyprint.hector.api.exceptions.HectorTransportException: org.apache.thrift.transport.TTransportException
>  
> Caused by: org.apache.thrift.transport.TTransportException: null
>         at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:132)
>  
> Using Hector as client. The queries are writes to CF with indexes.
>  
> The frequency of these exceptions are very low.
>  
>  
> Thanks,
> Dushyant
> NOTICE: Morgan Stanley is not acting as a municipal advisor and the opinions or views contained herein are not intended to be, and do not constitute, advice within the meaning of Section 975 of the Dodd-Frank Wall Street Reform and Consumer Protection Act. If you have received this communication in error, please destroy all electronic and paper copies and notify the sender immediately. Mistransmission is not intended to waive confidentiality or privilege. Morgan Stanley reserves the right, to the extent permitted under applicable law, to monitor electronic communications. This message is subject to terms available at the following link: http://www.morganstanley.com/disclaimers. If you cannot access these links, please notify us by reply message and we will send the contents to you. By messaging with Morgan Stanley you consent to the foregoing.