cassandra设置shell或python查询的timeout

时间:2021-07-05 04:50:30
  1. 设置cassandra.yaml
  2. python-driver的设置:http://datastax.github.io/python-driver/api/cassandra.html#cassandra.OperationTimedOut
  3. 更改default_timeout:http://datastax.github.io/python-driver/api/cassandra/cluster.html#cassandra.cluster.Session.default_timeout
  4. python执行sql时设置:http://datastax.github.io/python-driver/api/cassandra/cluster.html#cassandra.cluster.Session.execute
  5. shell:更改安装目录下bin/cqlsh.py的DEFAULT_REQUEST_TIMEOUT_SECONDS