Operation Time Out Error in cqlsh console of cassandra

前端 未结 7 743
悲&欢浪女
悲&欢浪女 2020-12-10 12:44

I have a three nodes Cassandra Cluster and I have created one table which has more than 2,000,000 rows.

When I execute this (select count(*) from userdetails

7条回答
  •  天涯浪人
    2020-12-10 13:26

    I'm using Cassandra 3.4 and cqlsh to get record counts. It appears that there has been a code change in 3.4. cqlsh just calls cqlsh.py. Inside of cqlsh.py there is a DEFAULT_REQUEST_TIMEOUT_SECONDS variable that defaults to 10 (seconds). I changed it to 3600 (1 hour) and now my SELECT count(*) queries work.

提交回复
热议问题