Re: Broken pipe with Thrift

2013-12-30 Thread Aaron Morton
 One question, which is confusing , it's a server side issue or client side?
Check the server log for errors to make sure it’s not a server side issue. 
Also check if there could be something in network that is killing long lived 
connections. 
Check the thrift lib the client is using is the same as the one in the 
cassandra lib on the server. 

Can you do some simple tests using cqlsh from the client machine? That would 
eliminate the client driver. 

Hope that helps.


-
Aaron Morton
New Zealand
@aaronmorton

Co-Founder  Principal Consultant
Apache Cassandra Consulting
http://www.thelastpickle.com

On 25/12/2013, at 4:35 am, Steven A Robenalt srobe...@stanford.edu wrote:

 In our case, the issue was on the server side, but since you're on the 1.2.x 
 branch, it's not likely to be the same issue. Hopefully, somone else who is 
 using the 1.2.x branch will have more insight than I do.
 
 
 On Mon, Dec 23, 2013 at 11:52 PM, Vivek Mishra mishra.v...@gmail.com wrote:
 Hi Steven,
 One question, which is confusing , it's a server side issue or client side?
 
 -Vivek
 
 
 
 
 On Tue, Dec 24, 2013 at 12:30 PM, Vivek Mishra mishra.v...@gmail.com wrote:
 Hi Steven,
 Thanks for your reply. We are using version 1.2.9.
 
 -Vivek
 
 
 On Tue, Dec 24, 2013 at 12:27 PM, Steven A Robenalt srobe...@stanford.edu 
 wrote:
 Hi Vivek,
 
 Which release are you using? We had an issue with 2.0.2 that was solved by a 
 fix in 2.0.3.
 
 
 On Mon, Dec 23, 2013 at 10:47 PM, Vivek Mishra mishra.v...@gmail.com wrote:
 Also to add. It works absolutely fine on single node.
 
 -Vivek
 
 
 On Tue, Dec 24, 2013 at 12:15 PM, Vivek Mishra mishra.v...@gmail.com wrote:
 Hi,
 I have a 6 node, 2DC cluster setup. I have configured consistency level to 
 QUORUM.  But very often i am getting Broken pipe
 com.impetus.client.cassandra.CassandraClientBase
 (CassandraClientBase.java:1926) - Error while executing native CQL
 query Caused by: .
 org.apache.thrift.transport.TTransportExceptionjava.net.SocketException: 
 Broken pipe
at
 org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransportjava:147)
 at 
 org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.java:156)
 at
 org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
 at
 org.apache.cassandra.thrift.Cassandra$Client.send_execute_cql3_query(Cassandra.java:1556)
 at
 org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(Cassandra.java:1546)
 
 
 I am simply reading few records from a column family(not huge amount of data)
 
 Connection pooling and socket time out is properly configured. I have even 
 modified 
 read_request_timeout_in_ms
 request_timeout_in_ms
 write_request_timeout_in_ms  in cassandra.yaml to higher value.
 
 
 any idea? Is it an issue at server side or with client API?
 
 -Vivek
 
 
 
 
 -- 
 Steve Robenalt
 Software Architect
 HighWire | Stanford University 
 425 Broadway St, Redwood City, CA 94063 
 
 srobe...@stanford.edu 
 http://highwire.stanford.edu 
 
 
 
 
 
 
 
 
 
 
 -- 
 Steve Robenalt
 Software Architect
 HighWire | Stanford University 
 425 Broadway St, Redwood City, CA 94063 
 
 srobe...@stanford.edu 
 http://highwire.stanford.edu 
 
 
 
 
 



Re: Broken pipe with Thrift

2013-12-24 Thread Steven A Robenalt
In our case, the issue was on the server side, but since you're on the
1.2.x branch, it's not likely to be the same issue. Hopefully, somone else
who is using the 1.2.x branch will have more insight than I do.


On Mon, Dec 23, 2013 at 11:52 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Hi Steven,
 One question, which is confusing , it's a server side issue or client side?

 -Vivek




 On Tue, Dec 24, 2013 at 12:30 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Hi Steven,
 Thanks for your reply. We are using version 1.2.9.

 -Vivek


 On Tue, Dec 24, 2013 at 12:27 PM, Steven A Robenalt 
 srobe...@stanford.edu wrote:

 Hi Vivek,

 Which release are you using? We had an issue with 2.0.2 that was solved
 by a fix in 2.0.3.


 On Mon, Dec 23, 2013 at 10:47 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Also to add. It works absolutely fine on single node.

 -Vivek


 On Tue, Dec 24, 2013 at 12:15 PM, Vivek Mishra 
 mishra.v...@gmail.comwrote:

 Hi,
 I have a 6 node, 2DC cluster setup. I have configured consistency
 level to QUORUM.  But very often i am getting Broken pipe
 com.impetus.client.cassandra.CassandraClientBase
 (CassandraClientBase.java:1926) - Error while executing native CQL
 query Caused by: .
 org.apache.thrift.transport.TTransportExceptionjava.net.SocketException:
 Broken pipe
at
 org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport
 java:147)
 at
 org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.jav
 a:156)
 at
 org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
 at
 org.apache.cassandra.thrift.Cassandra$Client.send_execute_cql3_query(Ca
 ssandra.java:1556)
 at
 org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(Cassand
 ra.java:1546)


 I am simply reading few records from a column family(not huge amount
 of data)

 Connection pooling and socket time out is properly configured. I have
 even modified
 read_request_timeout_in_ms
 request_timeout_in_ms
 write_request_timeout_in_ms  in cassandra.yaml to higher value.


 any idea? Is it an issue at server side or with client API?

 -Vivek





 --
 Steve Robenalt
 Software Architect
  HighWire | Stanford University
 425 Broadway St, Redwood City, CA 94063

 srobe...@stanford.edu
 http://highwire.stanford.edu










-- 
Steve Robenalt
Software Architect
HighWire | Stanford University
425 Broadway St, Redwood City, CA 94063

srobe...@stanford.edu
http://highwire.stanford.edu


Broken pipe with Thrift

2013-12-23 Thread Vivek Mishra
Hi,
I have a 6 node, 2DC cluster setup. I have configured consistency level to
QUORUM.  But very often i am getting Broken pipe
com.impetus.client.cassandra.CassandraClientBase
(CassandraClientBase.java:1926) - Error while executing native CQL
query Caused by: .
org.apache.thrift.transport.TTransportExceptionjava.net.SocketException:
Broken pipe
   at
org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport
java:147)
at org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.java
:156)
at
org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
at
org.apache.cassandra.thrift.Cassandra$Client.send_execute_cql3_query(Cas
sandra.java:1556)
at
org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(Cassandr
a.java:1546)


I am simply reading few records from a column family(not huge amount of
data)

Connection pooling and socket time out is properly configured. I have even
modified
read_request_timeout_in_ms
request_timeout_in_ms
write_request_timeout_in_ms  in cassandra.yaml to higher value.


any idea? Is it an issue at server side or with client API?

-Vivek


Re: Broken pipe with Thrift

2013-12-23 Thread Vivek Mishra
Also to add. It works absolutely fine on single node.

-Vivek


On Tue, Dec 24, 2013 at 12:15 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Hi,
 I have a 6 node, 2DC cluster setup. I have configured consistency level to
 QUORUM.  But very often i am getting Broken pipe
 com.impetus.client.cassandra.CassandraClientBase
 (CassandraClientBase.java:1926) - Error while executing native CQL
 query Caused by: .
 org.apache.thrift.transport.TTransportExceptionjava.net.SocketException:
 Broken pipe
at
 org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport
 java:147)
 at org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.jav
 a:156)
 at
 org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
 at
 org.apache.cassandra.thrift.Cassandra$Client.send_execute_cql3_query(Cas
 sandra.java:1556)
 at
 org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(Cassandr
 a.java:1546)


 I am simply reading few records from a column family(not huge amount of
 data)

 Connection pooling and socket time out is properly configured. I have even
 modified
 read_request_timeout_in_ms
 request_timeout_in_ms
 write_request_timeout_in_ms  in cassandra.yaml to higher value.


 any idea? Is it an issue at server side or with client API?

 -Vivek



Re: Broken pipe with Thrift

2013-12-23 Thread Steven A Robenalt
Hi Vivek,

Which release are you using? We had an issue with 2.0.2 that was solved by
a fix in 2.0.3.


On Mon, Dec 23, 2013 at 10:47 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Also to add. It works absolutely fine on single node.

 -Vivek


 On Tue, Dec 24, 2013 at 12:15 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Hi,
 I have a 6 node, 2DC cluster setup. I have configured consistency level
 to QUORUM.  But very often i am getting Broken pipe
 com.impetus.client.cassandra.CassandraClientBase
 (CassandraClientBase.java:1926) - Error while executing native CQL
 query Caused by: .
 org.apache.thrift.transport.TTransportExceptionjava.net.SocketException:
 Broken pipe
at
 org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport
 java:147)
 at
 org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.java
 :156)
 at
 org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
 at
 org.apache.cassandra.thrift.Cassandra$Client.send_execute_cql3_query(Cas
 sandra.java:1556)
 at
 org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(Cassandr
 a.java:1546)


 I am simply reading few records from a column family(not huge amount of
 data)

 Connection pooling and socket time out is properly configured. I have
 even modified
 read_request_timeout_in_ms
 request_timeout_in_ms
 write_request_timeout_in_ms  in cassandra.yaml to higher value.


 any idea? Is it an issue at server side or with client API?

 -Vivek





-- 
Steve Robenalt
Software Architect
HighWire | Stanford University
425 Broadway St, Redwood City, CA 94063

srobe...@stanford.edu
http://highwire.stanford.edu


Re: Broken pipe with Thrift

2013-12-23 Thread Vivek Mishra
Hi Steven,
Thanks for your reply. We are using version 1.2.9.

-Vivek


On Tue, Dec 24, 2013 at 12:27 PM, Steven A Robenalt
srobe...@stanford.eduwrote:

 Hi Vivek,

 Which release are you using? We had an issue with 2.0.2 that was solved by
 a fix in 2.0.3.


 On Mon, Dec 23, 2013 at 10:47 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Also to add. It works absolutely fine on single node.

 -Vivek


 On Tue, Dec 24, 2013 at 12:15 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Hi,
 I have a 6 node, 2DC cluster setup. I have configured consistency level
 to QUORUM.  But very often i am getting Broken pipe
 com.impetus.client.cassandra.CassandraClientBase
 (CassandraClientBase.java:1926) - Error while executing native CQL
 query Caused by: .
 org.apache.thrift.transport.TTransportExceptionjava.net.SocketException:
 Broken pipe
at
 org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport
 java:147)
 at
 org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.java
 :156)
 at
 org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
 at
 org.apache.cassandra.thrift.Cassandra$Client.send_execute_cql3_query(Cas
 sandra.java:1556)
 at
 org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(Cassandr
 a.java:1546)


 I am simply reading few records from a column family(not huge amount of
 data)

 Connection pooling and socket time out is properly configured. I have
 even modified
 read_request_timeout_in_ms
 request_timeout_in_ms
 write_request_timeout_in_ms  in cassandra.yaml to higher value.


 any idea? Is it an issue at server side or with client API?

 -Vivek





 --
 Steve Robenalt
 Software Architect
 HighWire | Stanford University
 425 Broadway St, Redwood City, CA 94063

 srobe...@stanford.edu
 http://highwire.stanford.edu








Re: Broken pipe with Thrift

2013-12-23 Thread Vivek Mishra
Hi Steven,
One question, which is confusing , it's a server side issue or client side?

-Vivek




On Tue, Dec 24, 2013 at 12:30 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Hi Steven,
 Thanks for your reply. We are using version 1.2.9.

 -Vivek


 On Tue, Dec 24, 2013 at 12:27 PM, Steven A Robenalt srobe...@stanford.edu
  wrote:

 Hi Vivek,

 Which release are you using? We had an issue with 2.0.2 that was solved
 by a fix in 2.0.3.


 On Mon, Dec 23, 2013 at 10:47 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Also to add. It works absolutely fine on single node.

 -Vivek


 On Tue, Dec 24, 2013 at 12:15 PM, Vivek Mishra mishra.v...@gmail.comwrote:

 Hi,
 I have a 6 node, 2DC cluster setup. I have configured consistency level
 to QUORUM.  But very often i am getting Broken pipe
 com.impetus.client.cassandra.CassandraClientBase
 (CassandraClientBase.java:1926) - Error while executing native CQL
 query Caused by: .
 org.apache.thrift.transport.TTransportExceptionjava.net.SocketException:
 Broken pipe
at
 org.apache.thrift.transport.TIOStreamTransport.write(TIOStreamTransport
 java:147)
 at
 org.apache.thrift.transport.TFramedTransport.flush(TFramedTransport.jav
 a:156)
 at
 org.apache.thrift.TServiceClient.sendBase(TServiceClient.java:65)
 at
 org.apache.cassandra.thrift.Cassandra$Client.send_execute_cql3_query(Ca
 ssandra.java:1556)
 at
 org.apache.cassandra.thrift.Cassandra$Client.execute_cql3_query(Cassand
 ra.java:1546)


 I am simply reading few records from a column family(not huge amount of
 data)

 Connection pooling and socket time out is properly configured. I have
 even modified
 read_request_timeout_in_ms
 request_timeout_in_ms
 write_request_timeout_in_ms  in cassandra.yaml to higher value.


 any idea? Is it an issue at server side or with client API?

 -Vivek





 --
 Steve Robenalt
 Software Architect
  HighWire | Stanford University
 425 Broadway St, Redwood City, CA 94063

 srobe...@stanford.edu
 http://highwire.stanford.edu