2013-10-09 95 views
1

我們最近使用cqlsh 4.0.1升級到了cassandra 2.0.1。我在使用cqlsh客戶端時看到超時錯誤/管道損壞。請參閱下面的錯誤跟蹤。我已經使用nodetool驗證羣集已啓動,並且可以使用mapreduce進行讀取/寫入。請指教。cassandra 2.0.1上的cqlsh錯誤

感謝, Prateek

Traceback (most recent call last): 
    File "./bin/cqlsh", line 897, in perform_statement_untraced 
    self.cursor.execute(statement, decoder=decoder) 
    File "./bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cursor.py", line 80, in execute 
    response = self.get_response(prepared_q, cl) 
    File "./bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/thrifteries.py", line 77, in get_response 
    return self.handle_cql_execution_errors(doquery, compressed_q, compress, cl) 
    File "./bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/thrifteries.py", line 96, in handle_cql_execution_errors 
    return executor(*args, **kwargs) 
    File "./bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 1782, in execute_cql3_query 
    self.send_execute_cql3_query(query, compression, consistency) 
    File "./bin/../lib/cql-internal-only-1.4.0.zip/cql-1.4.0/cql/cassandra/Cassandra.py", line 1793, in send_execute_cql3_query 
    self._oprot.trans.flush() 
    File "./bin/../lib/thrift-python-internal-only-0.9.1.zip/thrift/transport/TTransport.py", line 292, in flush 
    self.__trans.write(buf) 
    File "./bin/../lib/thrift-python-internal-only-0.9.1.zip/thrift/transport/TSocket.py", line 128, in write 
    plus = self.handle.send(buff) 
error: [Errno 32] Broken pipe 
+0

你是否重新啓動cassandra,然後重新啓動cqlsh? –

回答

1

如果你有一個開放的cqlsh會話,它總是給你ERRNO 32如果卡桑德拉實例它連接到被停止,甚至只是重新啓動。您必須重新啓動cqlsh才能重新建立到服務器的連接。

如果您在未停止或重新啓動Cassandra服務器的情況下發現此問題,請提供有關導致此錯誤的條件的其他詳細信息。

相關問題