2013-10-09 2 views
1

최근에 cqlsh 4.0.1로 cassandra 2.0.1로 업그레이드했습니다. cqlsh 클라이언트를 사용하는 동안 시간 초과 오류/깨진 파이프가 나타납니다. 아래의 오류 추적을 참조하십시오. 클러스터가 nodetool을 사용하여 Up되어 있고 mapreduce를 사용하여 읽고 쓸 수 있음을 확인했습니다. 제발 조언.cassandra에서의 Cqlsh 오류 2.0.1

감사합니다, 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

cqlsh를 재시작하지 않고 cassandra를 다시 시작 하시겠습니까? –

답변

1

당신이 열려있는 cqlsh 세션이있는 경우, 그것은 항상 연결하는 카산드라의 인스턴스가 중지 또는 단지 다시 시작되었다 할 경우 32 errno를 제공 할 것입니다. 서버에 대한 연결을 다시 설정하려면 cqlsh를 다시 시작해야합니다.

Cassandra 서버를 중지하거나 다시 시작하지 않고이 문제가 나타나면이 오류가 발생하는 조건에 대한 정보와 추가 정보를 제공하십시오.